[Gc] race? leads to segfault in GC_suspend_all's call to
jim at meyering.net
Fri May 6 07:00:48 PDT 2011
Ivan Maidanski wrote:
> Run the app under debugger and watch where are that broken stackptr
> and stack_end values set.
>>I use libgc in iwhd (http://git.fedorahosted.org/git/?p=iwhd.git)
>>and have been very happy with it so far.
>>However, when I generate many parallel requests to
>>the iwhd daemon, I see this segfault during garbage collection:
Thanks for the quick feedback.
I dug into it and discovered that it was indeed my fault.
I had had to explicitly GC_register two threads, but had not arranged
for them to be unregistered:
Unregistering, as required, solved the problem.
More information about the Gc