On Tue, 30 Jun 1998, James Turner wrote:
>Has anyone had any experience with getting a clean core file using
>abort() (or any other piece of crashing code) inside a SEGV handler?
[...]
>#0 segvsig (sig=11) at comm.c:1751
>#1 0xbfffc5d4 in ?? ()
Could have been corrupted by the crash. Try using this in the segv
handler if you have GCC:
fprintf(stderr, "%p\n", __builtin_return_address(0));
Then see how that compares to #1. (Although it might be a good idea to use
something other than fprintf...)
--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/ | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST