[Ecls-list] ecl with old libc: deadlock in gc due to signal handling

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Thu Jan 20 11:55:00 UTC 2011


On Thu, Jan 20, 2011 at 12:31 PM, Anton Vodonosov <avodonosov at yandex.ru>wrote:

>
> It's a good idea, thanks. I will only need to think about race conditions,
> like if GC starts after the sigwait returns, but before we called
> GC_register_my_thread. Or this code doesn't allocate any heap memory and
> should not be protected by GC?
>
>
Code in the library is itself protected, so one should not worry about it.

I just realized that there might be another problem. When ECL exits it tries
to do so in an organized way, sending a termination signal to each of the
threads. If the library does not allow the sigwait thread to be terminated,
ECL might just hang waiting for it.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110120/2e58f115/attachment.html>


More information about the ecl-devel mailing list