Package: gcc-3.3
Version: 1:3.3.2-0pre3
Severity: normal
Tags: upstream

When trying to executing a binary with the __thread keywork, the program
segfaults. Below is the output.

[pts/0]
[EMAIL PROTECTED]:~$ cat tls.c
__thread int a;

int 
main (void)
{
        return a;
}
[pts/0]
[EMAIL PROTECTED]:~$ gcc-3.3 -Wall -o tls tls.c
[pts/0]
[EMAIL PROTECTED]:~$ ./tls
Segmentation fault (core dumped)
[pts/0]
[EMAIL PROTECTED]:~$ gdb tls core
GNU gdb 5.3.90_2003-08-24-cvs-debian
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...
Core was generated by `./tls'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done

Reply via email to