From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: hjl@lucon.org (H.J. Lu) Cc: egcs@cygnus.com Subject: Re: 1008 segfaults in genattr Date: Fri, 21 Nov 1997 21:33:00 -0000 Message-id: <6821.880176816@cygnus.com> References: X-SW-Source: 1997-11/msg00702.html 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