[Gc] Re: Boehm GC + Thread Building Blocks
alexander.herz at mytum.de
Fri Jun 29 02:12:47 PDT 2012
Ivan Maidanski <ivmai at ...> writes:
> Hi Alexander,
> What's your target?
> Have you explicitly initialize GC and register threads?
> Tue, 26 Jun 2012 12:47:16 +0000 (UTC) от aherz <alexander.herz <at> mytum.de>:
> > hm..I'm now getting some strange, possibly related problems:
> > Mostly, the ap terminates without any problems. Sometimes,
> > in one of the tbb worker threads, a SIGPWR
> > (wiki says this might be used by boehm gc)
> > is received and afterwards I get a "Collection in unknown thread" error.
> > Maybe tbb's signal handling is interfering with boehm's?
> > Btw: I also get an "Collection in unknown thread" when a stack overflow is
> > triggered.
> > Alex
> > _______________________________________________
> > Gc mailing list
> > Gc at ...
> > https://www.hpl.hp.com/hosted/linux/mail-archives/gc/
my target is a 64bit ubuntu (10.04). I compile the tbb library from source and
added the #define GC_THREADS and #include <gc_cpp.h> to the library.
The garbage collector does work (mostly when I run the application with gc debug
output, I can see that collections happen, so the threads are registered). So
mostly things work ok, only in rare circumstances something goes wrong. I don't
think that the problem is the registration of the threads.
I think the problem is that tbb implements its own exception handling and that
might interfere with boehm gc's signals.
Is there an easy way to make boehm gc dump which threads have been registered to
verify that this is not the problem?
More information about the Gc