Add debug info to stacktrace in search of bug #68.

Consider this temporary code, but hopefully it will help track down #68.