From: Sidney M. <si...@si...> - 2009-04-06 02:17:23
|
Brent Millare wrote, On 6/4/09 12:41 PM: > Backtrace: > 0: ((LABELS #:WITH-CIRCULARITY-DETECTION-BODY-3980)) > 1: ((LABELS #:WITH-CIRCULARITY-DETECTION-BODY-3948)) > 2: (SB-PRETTY::PPRINT-DEFPACKAGE #<SB-PRETTY:PRETTY-STREAM > {10033C4991}> (DEFPACKAGE :SHEESH NIL))[:EXTERNAL] This is much worse than an issue with macro expansion. You can demonstrate this bug even more easily by typing at the REPL '(defpackage :foo nil) The problem seems to be that pretty-printing a cons with car 'defpackage invokes SB-PRETTY::PPRINT-DEFPACKAGE which is defined in code/pprint.lisp pprint-defpackage assumes that the form being printed is in the form of a valid call to defpackage, which I don't think is at all a good assumption. I would post a patch for pprint-defpackage, but it really looks like someone needs to look at all of the pprint-foo functions in code/pprint.lisp to see which ones have the same problem if handed something that their format calls do not expect. -- sidney |