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]

PATCH: A testcase for static TLS (Re: Does TLS work with static binary?)


On Mon, Jul 15, 2002 at 12:29:05PM -0700, H. J. Lu wrote:
> 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?
> 

Here is a testcase. I got

GCONV_PATH=/export/build/gnu/glibc/build-i686-linux/iconvdata LC_ALL=C /export/build/gnu/glibc/build-i686-linux/linuxthreads/tststatic  > /export/build/gnu/glibc/build-i686-linux/linuxthreads/tststatic.out
make[2]: *** [/export/build/gnu/glibc/build-i686-linux/linuxthreads/tststatic.out] Error 139


H.J.

Attachment: glibc-pthread-static.patch
Description: Text document


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