public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c
@ 2006-03-25 5:54 flash at pobox dot com
2006-03-25 5:56 ` [Bug c/26865] " flash at pobox dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: flash at pobox dot com @ 2006-03-25 5:54 UTC (permalink / raw)
To: gcc-bugs
The attached preprocessed files, 122593_genksyms_min.i and its Delta-reduction
122593_genksyms_min.i, cause a segfault for checking=all builds of GCC 4.1.0 on
both Ubuntu 5.04 and OSX 10.4.5 with -std=c99 and -O1. The original .c and .h
files from the Linux kernel distribution (which I'll also attach) crash on
Ubuntu but not OSX. Ubuntu issues warnings before crashing, whereas OSX
compiles cleanly, which suggests a header problem. A checking=all build of
4.0.2 compiles all three versions of the file with warnings but no error, as
does a checking build of GCC 3.4.3; so this is a regression.
Here's the session:
48> /opt/gcc410-chk-all/bin/gcc -v -std=c99 -O1
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i
Using built-in specs.
Target: powerpc-apple-darwin8.5.0
Configured with: /opt/Gcc-4.1.0-dist/configure --enable-checking=all
--prefix=/opt/gcc410-chk-all --enable-languages=c,c++ --with-comment=PalmSource
checking=all build by Flash Sheridan 3/17/06
Thread model: posix
gcc version 4.1.0
/opt/gcc410-chk-all/libexec/gcc/powerpc-apple-darwin8.5.0/4.1.0/cc1
-fpreprocessed ../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i -fPIC
-quiet -dumpbase 122593_genksyms_min.i -auxbase 122593_genksyms_min -O1
-std=c99 -version -o /var/tmp//cc4PRuEJ.s
GNU C version 4.1.0 (powerpc-apple-darwin8.5.0)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5247).
GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0
Compiler executable checksum: 1116648296470812f723ca4bff2463c0
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:60: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:63: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:66: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:69: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:72: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: In function
'add_symbol':
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:74: warning: implicit
declaration of function 'map_to_ns'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:75: warning: implicit
declaration of function 'strlen'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:75: warning:
incompatible implicit declaration of built-in function 'strlen'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:75: warning: implicit
declaration of function 'memcmp'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:75: warning: implicit
declaration of function 'strcmp'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: At top level:
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:80: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:83: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:86: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:91: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:96: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: In function
'print_list':
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:101: warning: implicit
declaration of function 'alloca'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:101: warning:
assignment makes pointer from integer without a cast
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: At top level:
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:106: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: In function
'expand_and_crc_list':
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:111: warning: implicit
declaration of function 'error_with_pos'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: At top level:
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:120: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:125: warning: return
type defaults to 'int'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:129: warning:
conflicting types for 'error_with_pos'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:111: warning: previous
implicit declaration of 'error_with_pos' was here
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: In function
'genksyms_usage':
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:138: warning: implicit
declaration of function 'fprintf'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:138: warning:
incompatible implicit declaration of built-in function 'fprintf'
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: In function
'print_list':
../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:96: internal compiler
error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
---
PalmSource bug 122593
http://pobox.com/~flash
Quality Lead for Compilers and Debuggers
PalmSource, Inc. Tools Quality Management
--
Summary: Segmentation fault with -std=c99 -O1 on genksyms.c
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: flash at pobox dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
@ 2006-03-25 5:56 ` flash at pobox dot com
2006-03-25 5:56 ` flash at pobox dot com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: flash at pobox dot com @ 2006-03-25 5:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from flash at pobox dot com 2006-03-25 05:56 -------
Created an attachment (id=11120)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11120&action=view)
Preprocessed Delta-reduced source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
2006-03-25 5:56 ` [Bug c/26865] " flash at pobox dot com
@ 2006-03-25 5:56 ` flash at pobox dot com
2006-03-25 5:57 ` flash at pobox dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: flash at pobox dot com @ 2006-03-25 5:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from flash at pobox dot com 2006-03-25 05:56 -------
Created an attachment (id=11121)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11121&action=view)
Pre-processed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (2 preceding siblings ...)
2006-03-25 5:57 ` flash at pobox dot com
@ 2006-03-25 5:57 ` flash at pobox dot com
2006-03-25 7:24 ` [Bug tree-optimization/26865] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: flash at pobox dot com @ 2006-03-25 5:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from flash at pobox dot com 2006-03-25 05:57 -------
Created an attachment (id=11122)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11122&action=view)
Original source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
2006-03-25 5:56 ` [Bug c/26865] " flash at pobox dot com
2006-03-25 5:56 ` flash at pobox dot com
@ 2006-03-25 5:57 ` flash at pobox dot com
2006-03-25 5:57 ` flash at pobox dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: flash at pobox dot com @ 2006-03-25 5:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from flash at pobox dot com 2006-03-25 05:57 -------
Created an attachment (id=11123)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11123&action=view)
Original header
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 on genksyms.c
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (3 preceding siblings ...)
2006-03-25 5:57 ` flash at pobox dot com
@ 2006-03-25 7:24 ` pinskia at gcc dot gnu dot org
2006-03-25 22:09 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-25 7:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-25 07:24 -------
Backtrace:
#0 0x00000000006fa7ae in find_func_aliases (t=0x2aaaab1483c0, ai=0xb1d9b0)
at /home/pinskia/src/gcc-4.1/gcc/gcc/tree-ssa-structalias.c:2932
#1 0x00000000006fad8e in compute_points_to_sets (ai=0xb1d9b0)
at /home/pinskia/src/gcc-4.1/gcc/gcc/tree-ssa-structalias.c:3742
#2 0x000000000047c74e in compute_may_aliases () at
/home/pinskia/src/gcc-4.1/gcc/gcc/tree-ssa-alias.c:263
#3 0x00000000006e5c66 in execute_one_pass (pass=0xa319a0)
at /home/pinskia/src/gcc-4.1/gcc/gcc/passes.c:827
#4 0x00000000006e5d5c in execute_pass_list (pass=0xa319a0)
at /home/pinskia/src/gcc-4.1/gcc/gcc/passes.c:859
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|c |tree-optimization
Keywords| |ice-on-valid-code
Known to fail| |4.1.0 4.2.0
Known to work| |4.2.0 4.0.3
Summary|Segmentation fault with - |[4.1 Regression]
|std=c99 -O1 on genksyms.c |Segmentation fault with -
| |std=c99 -O1 on genksyms.c
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 on genksyms.c
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (4 preceding siblings ...)
2006-03-25 7:24 ` [Bug tree-optimization/26865] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-25 22:09 ` pinskia at gcc dot gnu dot org
2006-04-16 19:09 ` [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca() mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-25 22:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-03-25 22:09 -------
Reduced testcase:
void print_list(void)
{
char *e;
e = alloca(100);
}
-----
I wonder if alloca being turned off as a builtin is causing this.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-25 22:09:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca()
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (5 preceding siblings ...)
2006-03-25 22:09 ` pinskia at gcc dot gnu dot org
@ 2006-04-16 19:09 ` mmitchel at gcc dot gnu dot org
2006-04-19 16:23 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 19:09 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca()
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (6 preceding siblings ...)
2006-04-16 19:09 ` [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca() mmitchel at gcc dot gnu dot org
@ 2006-04-19 16:23 ` jakub at gcc dot gnu dot org
2006-04-19 23:25 ` dtemirbulatov at gmail dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-19 16:23 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2006-
| |04/msg00705.html
Status|NEW |ASSIGNED
Last reconfirmed|2006-03-25 22:09:10 |2006-04-19 16:23:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca()
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (7 preceding siblings ...)
2006-04-19 16:23 ` jakub at gcc dot gnu dot org
@ 2006-04-19 23:25 ` dtemirbulatov at gmail dot com
2006-04-25 9:42 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dtemirbulatov at gmail dot com @ 2006-04-19 23:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dtemirbulatov at gmail dot com 2006-04-19 23:25 -------
this bug could be fixed my backporting this patch:
2005-12-11 Daniel Berlin <dberlin@dberlin.org>
* timevar.def (TV_IPA_PTA): New.
* tree-pass.h (pass_ipa_pta): New
* tree-ssa-structalias.c: Include cgraph.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca()
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (8 preceding siblings ...)
2006-04-19 23:25 ` dtemirbulatov at gmail dot com
@ 2006-04-25 9:42 ` jakub at gcc dot gnu dot org
2006-04-25 9:45 ` jakub at gcc dot gnu dot org
2006-04-26 13:40 ` reichelt at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-25 9:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2006-04-25 09:42 -------
Subject: Bug 26865
Author: jakub
Date: Tue Apr 25 09:42:41 2006
New Revision: 113242
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113242
Log:
PR tree-optimization/26865
* gcc.dg/pr26865.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr26865.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca()
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (9 preceding siblings ...)
2006-04-25 9:42 ` jakub at gcc dot gnu dot org
@ 2006-04-25 9:45 ` jakub at gcc dot gnu dot org
2006-04-26 13:40 ` reichelt at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-25 9:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2006-04-25 09:45 -------
Subject: Bug 26865
Author: jakub
Date: Tue Apr 25 09:45:01 2006
New Revision: 113243
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113243
Log:
PR tree-optimization/26865
* tree-ssa-structalias.c (find_func_aliases): Check that anyoffsetrhs
type is pointer or array type.
* gcc.dg/pr26865.c: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr26865.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/tree-ssa-structalias.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca()
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
` (10 preceding siblings ...)
2006-04-25 9:45 ` jakub at gcc dot gnu dot org
@ 2006-04-26 13:40 ` reichelt at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-26 13:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from reichelt at gcc dot gnu dot org 2006-04-26 13:40 -------
Fixed on mainline and 4.1 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-04-26 13:40 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-25 5:54 [Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c flash at pobox dot com
2006-03-25 5:56 ` [Bug c/26865] " flash at pobox dot com
2006-03-25 5:56 ` flash at pobox dot com
2006-03-25 5:57 ` flash at pobox dot com
2006-03-25 5:57 ` flash at pobox dot com
2006-03-25 7:24 ` [Bug tree-optimization/26865] [4.1 Regression] " pinskia at gcc dot gnu dot org
2006-03-25 22:09 ` pinskia at gcc dot gnu dot org
2006-04-16 19:09 ` [Bug tree-optimization/26865] [4.1 Regression] Segmentation fault with -std=c99 -O1 and alloca() mmitchel at gcc dot gnu dot org
2006-04-19 16:23 ` jakub at gcc dot gnu dot org
2006-04-19 23:25 ` dtemirbulatov at gmail dot com
2006-04-25 9:42 ` jakub at gcc dot gnu dot org
2006-04-25 9:45 ` jakub at gcc dot gnu dot org
2006-04-26 13:40 ` reichelt at gcc dot gnu dot org
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).