[erlang-questions] Segmentation fault in tests
Sverker Eriksson
sverker.eriksson@REDACTED
Mon Mar 18 15:04:55 CET 2013
Manuel A. Rubio "Bombadil" wrote:
> Hi Sverker,
>
> El 2013-03-18 11:29, Sverker Eriksson escribió:
>> Looking at exmpp I see that it contains a linked-in driver. I would
>> consider that as prime suspect.
>>
>> Enable core dump generation:
>>
>> [bash]> ulimit -c unlimited
>>
>> Run test to generate core dump file.
>> Look at core dump:
>>
>>> gdb /path/to/otp-release/erts-x.y.z/beam.smp -c core.xxx
>
> Done.
>
> I've attached the result. The main suspect is confirmed... but I don't
> know how to fix it :-/
>
> Thanks.
> Manuel Rubio.
Try call
driver_lock_driver(port);
at the end of exmpp_tls_openssl_start() in exmpp_tls_openssl.c
This will keep the driver in memory when exmpp is stopped and prevent
the driver from re-initialize OpenSSL which seems to be the problem.
/Sverker
More information about the erlang-questions
mailing list