[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenBSD 3.3 Python dumps core



On Sat, May 03, 2003 at 03:34:09PM +0300, Casper Gripenberg wrote:

> And then run:
> > python ipcheck.py

Works fine on macppc, segfaults on i386.

Unfortunately, my i386 box is too broken by the recent changes (but not
ELF yet) that I can't rebuild libc (with debug info).

__atexit_register_cleanup() is called to register a function to be
called at termination (to close file handles, etc.). It's no surprise
that fgets() initially calls it, but the same cleanup function will be
registered in any program that does file IO. If you can step through
libc atexit.c, you might find the cause (or the line where it
segfaults). If __atexit_invalid or __atexit were not initialized, that
would lead to a segfault.

Daniel