From Bugzilla Helper: User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko) Description of problem: // following code compiled with // gcc -g -O3 -ansi -pedantic -save-temps test.c // causes: // Program received signal SIGSEGV, Segmentation fault. // 0x0040d130 in initstate_r () from /lib/tls/libc.so.6 #include<stdio.h> #include<string.h> int main() { char s[255]; sprintf(s, "%s", "ala ma kota"); strfry(s); return 0; } Version-Release number of selected component (if applicable): libc-2.3.5.so How reproducible: Always Steps to Reproduce: 1.compile the description 2.run a.out 3. Additional info: > gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
*** Bug 154506 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 154504 ***