Hello list,

I'm a new user of the couple Corosync/Pacemaker.
I follow the Debian_Lenny_Howto 
http://www.clusterlabs.org/wiki/Debian_Lenny_HowTo and I use pacakge 
from http://people.debian.org/~madkiss/ha.
Everything works when corrosync success starting...

The problem is that corosync randmonly segfault at the very beginning of 
it's initialisation sequence.
here an example of backtrace :

(gdb) run -f
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/sbin/corosync -f
[Thread debugging using libthread_db enabled]
[New Thread 0xb7bf36b0 (LWP 4299)]
[New Thread 0xb7afc230 (LWP 4300)]
[New Thread 0xb7adab90 (LWP 4301)]
Dec 02 15:18:10 corosync [MAIN  ] Corosync Cluster Engine ('1.1.2'): 
started and ready to provide service.
Dec 02 15:18:10 corosync [MAIN  ] Corosync built-in features: nss
Dec 02 15:18:10 corosync [MAIN  ] Successfully read main configuration 
file '/etc/corosync/corosync.conf'.
Dec 02 15:18:10 corosync [TOTEM ] Initializing transport (UDP/IP).
Dec 02 15:18:10 corosync [TOTEM ] Initializing transmit/receive 
security: libtomcrypt SOBER128/SHA1HMAC (mode 0).
Dec 02 15:18:10 corosync [MAIN  ] Compatibility mode set to whitetank.  
Using V1 and V2 of the synchronization engine.
Dec 02 15:18:10 corosync [TOTEM ] The network interface [172.30.2.2] is 
now up.
Dec 02 15:18:10 corosync [pcmk  ] info: process_ais_conf: Reading configure

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7adab90 (LWP 4301)]
0xb7d8c2c1 in getenv () from /lib/i686/cmov/libc.so.6
(gdb)

In fact it randomly segfault in an getenv() call.

I suspect a concurency problem because :

1. getenv() is definitively not thread_safe and possibly long
2. when assigning to 1 cpu ('taskset -c 0 /usr/sbin/corosync -f'), the 
problem never happen.

Is this fixed in current ?

Note : using getenv in a threaded application is a bad idea.

Regards,

--
Raphael MAZELIER




_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to