Public bug reported: Binary package hint: libc6
system is Ubuntu/Lucid/10.04 alpha2 on amd64, updated febr 06 2010. Probably same bug as bug 518307. The following program crashes (but should not, and works ok on Debian/Sid), when compiled with gcc -Wall teststrcmp.c -o teststrcmp.c (even with -O, or with gcc-4.3, so seems libc6 related). libc6-dev is 2.11.1-0ubuntu2 // file teststrcmp.c #include <string.h> #include <stdio.h> int main(int argc, char**argv) { int c=0; char *s = (argc>1)?argv[1]:"aa"; printf("s=%p=%s\n", s, s); c=strcmp(s, "aa"); printf("c=%d\n", c); return 0; } /// eof teststrcmp.c The crash as reported by gdb is inside strcmp. ** Affects: eglibc (Ubuntu) Importance: Undecided Status: New -- strcmp crashes https://bugs.launchpad.net/bugs/518314 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs