[jury gerold <gjury@grips.com>] locale and pthreads do not work together
Andreas Jaeger
aj@suse.de
Wed Feb 7 01:07:00 GMT 2001
I can reproduce the reported problem with 2.2.1, just adding -lpthread
is enough to get this segfault in the strfmon call:
(gdb) r 12345
Starting program: /suse/aj/tmp/./formattest 12345
[New Thread 1024 (LWP 19432)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 19432)]
0x4002f6a9 in pthread_mutex_init () from /lib/libpthread.so.0
(gdb) bt
#0 0x4002f6a9 in pthread_mutex_init () from /lib/libpthread.so.0
#1 0x400ad0e7 in _IO_no_init () from /lib/libc.so.6
#2 0x400ad029 in _IO_init () from /lib/libc.so.6
#3 0x40088674 in strfmon () from /lib/libc.so.6
#4 0x804854f in main (argc=2, argv=0xbffff724) at formattest.c:19
#5 0x4005abaf in __libc_start_main () from /lib/libc.so.6
Andreas
More information about the Libc-alpha
mailing list