I have what appears to be a working version of stack dumps (for the det stack, anyway). I'm now considering where to add them to the library or runtime. At the moment, a reasonable place to put it is in require.m, so that (if possible) error/1 can give a stack dump. Any other ideas?