This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Does TLS work with static binary?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]