http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60830
--- Comment #15 from Kai Tietz <ktietz at gcc dot gnu.org> --- (In reply to Denis Excoffier from comment #14) > I'm now using plain cygwin-1.7.29-2, the cygwin1.dbg now matches with > cygwin1.dll. I've alto tried to recompile without -O2. I'm not so familiar > with gdb, i've produced a session where i break at __call_exitprocs (in > cygwin1.dll), that shows that the destructors are not called more than once. > But i now obtain 2 SEGV. Hope this helps. See attachment 32600 [details]. Thanks, the second SIGSEGV is the "Second Chance exception". Nothing to wonder here. There seems to be no handler catching the SIGSEGV's first chance exception.