[Swan] No problem with syslog in a threaded context on Fedora 18

Philippe Vouters philippe.vouters at laposte.net
Thu Mar 7 18:12:32 EET 2013


Testing for C runtimes thread-safe calls is now documented at 
http://vouters.dyndns.org/tima/All-OS-pthread-How_to_prove_you_suffer_from_a_non_thread-safe-call.html

Philippe Vouters (Fontainebleau/France)
URL: http://vouters.dyndns.org/
SIP: sip:Vouters at sip.linphone.org

Le 07/03/2013 16:54, Paul Wouters a écrit :
> On Thu, 7 Mar 2013, Philippe Vouters wrote:
>
>> If I execute this code on my dual core processor running Fedora 18, I 
>> incur strictly no hang. Would this mean the syslog call is actually 
>> thread-safe ?
>
> Thanks for testing this! Indeed according to "man pthreads" syslog is
> thread safe, and it appears that this is just where we die due to bad
> memory management earlier in execution, possible related to the string
> building in libreswan_log() that causes us to call malloc() which when
> trying to cleanup a bit finds the corrupted memory. (*** glibc detected
> corrupted dluble linked list ***)
>
> Paul
>



More information about the Swan mailing list