[RFC] libgfortran dll i/o redirection lossage caused by order-of-termination issue

Dave Korn dave.korn.cygwin@googlemail.com
Mon Jul 27 11:06:00 GMT 2009


Corinna Vinschen wrote:
> Hi Dave,
> 
> On Jul 20 16:05, Dave Korn wrote:
>> Christopher Faylor wrote:
>>
>>>>  That's with the Cygwin DLL simply patched to schedule an atexit call to
>>>> dll_global_dtors directly after the exe's global dtors get run.
>>> So, you've removed the call from do_exit() then?  If so, please also remove the
>>> ES_GLOBAL_DTORS definition.
>>   Not yet.  Wanted to see what happens if I leave it in there as a last-chance
>> fallback.
> 
> Any news?  A patch, maybe?
> 

  Progress not brilliant.  Attached is the patch I've been running with in my
local build of the DLL since July 19th.  My original plan was to run the GCC
testsuites for C++, Fortran and Java since they're all heavy users of c/dtors,
and make sure nothing regressed there.  However I've been plagued by power
cuts, BSoDs and BLODA(*) meaning that I haven't yet managed to complete
anything except the fortran run (which as we saw looked good) - everything
else has been interrupted part way through losing a-day-or-more's partial
results.  Sigh.

  I appear to have worked around my BLODA for the moment and have a testrun
progressing nicely now, with g++ completed and java nearly done.  Let's wait
and see how the libstdc++ tests go, sometime tomorrow.

    cheers,
      DaveK

-- 
(*) - http://cygwin.com/ml/cygwin-talk/2009-q3/msg00032.html, although I don't
think I can blame it for the power cut.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atexit-dtors.diff
Type: text/x-c
Size: 989 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20090727/8466bf22/attachment.bin>


More information about the Cygwin-developers mailing list