Does TLS work with static binary?
H. J. Lu
hjl@lucon.org
Mon Jul 15 12:29:00 GMT 2002
I got
# gcc -g ex1.c -lpthread -static
# ./a.out
zsh: 9579 segmentation fault ./a.out
# gdb a.out core
...
Program terminated with signal 11, Segmentation fault.
#0 __pthread_initialize_minimal () at pthread.c:404
404 pthread_descr self = THREAD_SELF;
(gdb) bt
#0 __pthread_initialize_minimal () at pthread.c:404
#1 0x0804dcc0 in __libc_start_main (main=0x8048250 <main>, argc=1,
ubp_av=0xbffffa24, init=0x80480b4 <_init>, fini=0x80ab2a0 <_fini>,
rtld_fini=0, stack_end=0xbffffa1c) at ../sysdeps/generic/libc-start.c:84
Has anyone seen this?
H.J.
More information about the Libc-alpha
mailing list