Ticket #1126 (closed defect: notabug)

Opened 5 months ago

Last modified 5 months ago

just require-ing package compiled with debug affects other packages

Reported by: vi1 Owned by:
Priority: normal Milestone:
Component: Compiler Version: trunk
Keywords: Cc:

Description

$ ccl -n -l q.lisp

Error: Stack overflow on value stack.

Tail call optimization did not happen.

May be I miss something...

Attachments

debug.asd Download (75 bytes) - added by vi1 5 months ago.
debug.lisp Download (150 bytes) - added by vi1 5 months ago.
q.lisp Download (137 bytes) - added by vi1 5 months ago.

Change History

Changed 5 months ago by vi1

Changed 5 months ago by vi1

Changed 5 months ago by vi1

comment:1 Changed 5 months ago by rme

  • Status changed from new to closed
  • Resolution set to notabug

Top-level declaim has load-time effects.

See:

 http://www.clozure.com/pipermail/openmcl-devel/2009-August/010168.html  http://clozure.com/pipermail/openmcl-devel/2010-March/011335.html

So, when lisp loads debug.lisp (or debug.fasl), the debug level becomes 3 globally. And at debug 3, tail-call optimization is not performed.

comment:2 Changed 5 months ago by vi1

Top-level declaim has load-time effects.

Yikes, what a Pandora box. thanks

comment:3 Changed 5 months ago by gb

See also the discussion of CCL:*LOAD-PRESERVES-OPTIMIZATION-SETTINGS* in http://trac.clozure.com/ccl/wiki/ReleaseNotes/1.9

comment:4 Changed 5 months ago by vi1

Thanks, this one goes to my init file.

Note: See TracTickets for help on using tickets.