This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

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



------- 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:
strlen("burroughs")
B620 burroughs
strlen("ashcraft")
A261 ashcraft
strlen("brc")
B620 brc
strlen("mcknight")
M252 mcknight
strlen("mcnaught")
M252 mcnaught
strlen("mcknawt")
M253 mcknawt

The debug code produces:
strlen("burroughs")
B620 burroughs
strlen("ashcraft")
Segmentation fault


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39166


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