[plt-scheme] call stack display

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jul 27 15:00:38 EDT 2002

> We'd like to users to be able to give us some information when our
> application (a C extension) catches SIGSEG or SIGBUS.  Is there a
> routine (in scheme or C) which displays the current scheme call stack?

No. MzScheme doesn't provide any introspection for the current Scheme
context, except though explicit uses of `with-continuation-mark' in the

To get context information for DrScheme, we instrument programs by
inserting `with-continuation-mark' expressions.

Your application might do something similar, and then extract the
current continuation marks on a signal. The "errortrace" collection
provides some tools for doing that.


Posted on the users mailing list.