[Bug c/39166] strlen() crashes with sigsegv on ubuntu 8.10

2009-02-12 Thread ajrobb at bigfoot dot com
--- Comment #3 from ajrobb at bigfoot dot com 2009-02-13 04:05 --- Many apologies. The bug was in line 66 of my code: should read: while (src < end && dst < lim) { This was polluting the stack - hardly surprising it crashed! -- ajrobb at bigfoot dot com changed: What

[Bug c/39166] strlen() crashes with sigsegv on ubuntu 8.10

2009-02-12 Thread ajrobb at bigfoot dot com
--- Comment #2 from ajrobb at bigfoot dot com 2009-02-12 11:26 --- I have tested the assembler outputs from the two compilers. Both assembler files were generated with: gcc -g soundex.c -S -o soundex.s I then compiled both on the failing platform: gcc -g soundex.s -o soundex If I compi

[Bug c/39166] strlen() crashes with sigsegv on ubuntu 8.10

2009-02-12 Thread ajrobb at bigfoot dot com
--- Comment #1 from ajrobb at bigfoot dot com 2009-02-12 10:58 --- Created an attachment (id=17285) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17285&action=view) small test file run as: ./soundex burroughs ashcraft brc mcknight mcnaught mcknawt The optimised code produces: str