The garbage collector is closing stdout on powerpc-linux-gnu...

Matt Brandt justmattb at walkingdog.net
Fri Mar 16 08:46:09 PDT 2007


After a bit of experimentation I've tracked this problem down to the fact that I compiled my libgphobos as a shared library. If I move the shared library aside so that libgphobos.a is used to link statically then everything works as expected.

I'm guessing that this really boils down to the garbage collector not assigning root to some of the data areas in the shared library, but not knowing much about the garbage collector code it will be a slow ride to victory. If anyone out there is familiar with the garbage collector enough to help debug this problem I'll be happy to provide my makefile for building a shared libgphobos so you can duplicate the effect. I doubt that it is really architecture specific...

Matt



More information about the D.gnu mailing list