public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43556]  New: Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
@ 2010-03-28 17:09 eric dot cabret at gmail dot com
  2010-03-28 17:20 ` [Bug c/43556] " rguenth at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 17:09 UTC (permalink / raw)
  To: gcc-bugs

My system is Ubuntu 64 bits Lucid Lynx.
with this following small program, I obtain a crazy segmentation fault in
strchr() with gcc4.4.3-4ubuntu5 AND NOT with gcc4.4.1-4ubuntu9 (with same glibc
in both case) :

// gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 -> execution gives a "segmentation fault"
// gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1 -> execution is fully OK
#include <stdio.h>
#include <string.h>

char t[]="It: is a gcc4.4.3 bug";

main() {
char *p;

puts(t);
p = strchr(t, ':');
printf("p='%s'\n", p);

return 0;
}

Many best regards.
Eric.


-- 
           Summary: Ubuntu : segmentation fault in strchr() obtained with
                    gcc4.4.3 and not with gcc4.4.1
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eric dot cabret at gmail dot com


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-03-29 21:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-28 17:09 [Bug c/43556] New: Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1 eric dot cabret at gmail dot com
2010-03-28 17:20 ` [Bug c/43556] " rguenth at gcc dot gnu dot org
2010-03-28 20:34 ` eric dot cabret at gmail dot com
2010-03-28 20:34 ` eric dot cabret at gmail dot com
2010-03-28 20:36 ` eric dot cabret at gmail dot com
2010-03-28 20:36 ` eric dot cabret at gmail dot com
2010-03-28 20:37 ` eric dot cabret at gmail dot com
2010-03-28 20:45 ` eric dot cabret at gmail dot com
2010-03-28 20:45 ` eric dot cabret at gmail dot com
2010-03-28 20:52 ` eric dot cabret at gmail dot com
2010-03-28 20:52 ` eric dot cabret at gmail dot com
2010-03-28 21:02 ` eric dot cabret at gmail dot com
2010-03-29  0:58 ` [Bug middle-end/43556] " pinskia at gcc dot gnu dot org
2010-03-29 20:44 ` eric dot cabret at gmail dot com
2010-03-29 21:48 ` eric dot cabret at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).