[erlang-bugs] async driver in multithread mode - segmentation fault
Dmitriy Kargapolov
dmitry.kargapolov@REDACTED
Mon Jan 22 22:48:08 CET 2007
Hi,
I was trying to implement asynchronous driver which is invoked in a
separate thread. It crashes with "segmentation fail" message when second
call is issued, in driver_async().
I'm attaching dummy short test which shows the problem. I intentionally
removed from the code most of driver_free() calls to reduce potential
problem source.
following command makes it failed:
erl +A4 -noshell -s drv t -s init stop
but no-thread-pool one works fine:
erl -noshell -s drv t -s init stop
Tested in R11-0, R11-2, smp and non-smp Linux.
Any idea / help is appreciated.
Thanks.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drv.c
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20070122/156c7d5a/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drv.erl
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20070122/156c7d5a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20070122/156c7d5a/attachment-0001.ksh>
More information about the erlang-bugs
mailing list