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
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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 ` rguenth at gcc dot gnu dot org
2010-03-28 20:34 ` eric dot cabret at gmail dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-28 17:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-03-28 17:20 -------
Works for me (thus I suggest to file a bug with Ubuntu).
Which optimization options? Please attach preprocessed source.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from eric dot cabret at gmail dot com 2010-03-28 20:34 -------
Created an attachment (id=20234)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20234&action=view)
Preprocessed source not OK with "gcc -E main.c"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from eric dot cabret at gmail dot com 2010-03-28 20:34 -------
Created an attachment (id=20235)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20235&action=view)
Preprocessed source OK with "gcc -E main.c"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (2 preceding siblings ...)
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
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from eric dot cabret at gmail dot com 2010-03-28 20:35 -------
Created an attachment (id=20236)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20236&action=view)
a.out OK obtained by command "gcc main.c"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (3 preceding siblings ...)
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
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from eric dot cabret at gmail dot com 2010-03-28 20:36 -------
Created an attachment (id=20237)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20237&action=view)
a.out not OK obtained by command "gcc main.c"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (4 preceding siblings ...)
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
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from eric dot cabret at gmail dot com 2010-03-28 20:37 -------
Here are new files (preprocessed sources OK and not OK) and binaries obtained
only with command "gcc main.c"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (5 preceding siblings ...)
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
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from eric dot cabret at gmail dot com 2010-03-28 20:45 -------
Created an attachment (id=20238)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20238&action=view)
a.out OK obtained by command "gcc -g main.c" (with debug infos on 64bit ubuntu)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (6 preceding siblings ...)
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
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from eric dot cabret at gmail dot com 2010-03-28 20:45 -------
Created an attachment (id=20239)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20239&action=view)
a.out not OK obtained by command "gcc -g main.c" (with debug infos on 64bit
ubuntu)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (7 preceding siblings ...)
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
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from eric dot cabret at gmail dot com 2010-03-28 20:52 -------
Created an attachment (id=20241)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20241&action=view)
File obtained with command "strace -s 1024 ./a_nok_withdebug.out >
strace_s1024_a_nok.txt 2>&1"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (8 preceding siblings ...)
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
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 20:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from eric dot cabret at gmail dot com 2010-03-28 20:52 -------
Created an attachment (id=20240)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20240&action=view)
File obtained with command "strace -s 1024 ./a_ok_withdebug.out >
strace_s1024_a_ok.txt 2>&1"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (9 preceding siblings ...)
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
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-28 21:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from eric dot cabret at gmail dot com 2010-03-28 21:01 -------
Created an attachment (id=20242)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20242&action=view)
File obtained with command "strace -s 1024 ./a_nok_withdebug.out >
strace_s1024_a_nok.txt 2>&1" (executed on the SAME SYSTEM than file attachment
#20240 that was OK)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (10 preceding siblings ...)
2010-03-28 21:02 ` eric dot cabret at gmail dot com
@ 2010-03-29 0:58 ` 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
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-29 0:58 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (11 preceding siblings ...)
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
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-29 20:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #24 from eric dot cabret at gmail dot com 2010-03-29 20:44 -------
I checked on my Ubuntu 64bit Lucid Lynx system that generates bad binary :
1) binutils (2.20.1-3ubuntu1) is installed
2) binutils-gold (2.20-0ubuntu2) is NOT installed
(In reply to comment #23)
> only seen with gold (2.20.1). gold from the trunk does work.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43556
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/43556] Ubuntu : segmentation fault in strchr() obtained with gcc4.4.3 and not with gcc4.4.1
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
` (12 preceding siblings ...)
2010-03-29 20:44 ` eric dot cabret at gmail dot com
@ 2010-03-29 21:48 ` eric dot cabret at gmail dot com
13 siblings, 0 replies; 15+ messages in thread
From: eric dot cabret at gmail dot com @ 2010-03-29 21:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #25 from eric dot cabret at gmail dot com 2010-03-29 21:48 -------
I've reported this problem to Ubuntu at this following URL :
https://bugs.launchpad.net/ubuntu/+bug/551245
--
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).