This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 1008 segfaults in genattr
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: 1008 segfaults in genattr
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 21 Nov 1997 21:33:36 -0800
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <m0xZ7p5-0004ecC@ocean.lucon.org>you write:
> > On some systems, this routine is run more than once from the .fini,
> > when exit is called recursively, so we arrange to remember where in
> > the list we left off processing, and we resume at that point,
> > should we be re-invoked. */
> >
>
> The question is how exit is called recursively for a simple
> "Hello World!" program.
The code in __do_global_dtors_aux is supposed to handle multiple calls
regardless of how they occur!
We've got two possible bugs -- the first is obviously a bug since we now
know __do_global_dtors_aux is supposed to handle multiple calls.
The second might be a bug, then again it might not. Who knows what gross
things are buried deep in the Unixware C library :-)
jeff