Bug 45716 - [4.6 regression] ICE: segmentation fault at gcc/tree-ssa-ccp.c:1347
Summary: [4.6 regression] ICE: segmentation fault at gcc/tree-ssa-ccp.c:1347
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-18 07:56 UTC by gee
Modified: 2010-09-23 04:52 UTC (History)
2 users (show)

See Also:
Host: i686-pc-cygwin
Target: i686-pc-cygwin
Build: i686-pc-cygwin
Known to work:
Known to fail:
Last reconfirmed: 2010-09-18 09:26:32


Attachments
preprocessed source (56.40 KB, text/plain)
2010-09-18 07:57 UTC, gee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gee 2010-09-18 07:56:33 UTC
/usr/libexec/gcc/i686-pc-cygwin/4.6.0/cc1.exe -fpreprocessed h264_cabac.i -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -quiet -dumpbase h264_cabac.i -march=core2 -mfpmath=sse -auxbase h264_cabac -g -O4 -std=gnu99 -version -ffast-math -fomit-frame-pointer -fno-common -o tmp.s

(gdb) set args -fpreprocessed h264_cabac.i -march=core2 -mcx16 -msahf -msse4.1
--param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=20
48 -mtune=core2 -quiet -dumpbase h264_cabac.i -march=core2 -mfpmath=sse -auxbas
e h264_cabac -g -O4 -std=gnu99 -version -ffast-math -fomit-frame-pointer -fno-c
ommon -o tmp.s -v
(gdb) r
Starting program: /usr/libexec/gcc/i686-pc-cygwin/4.6.0/cc1.exe -fpreprocessed h
264_cabac.i -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param
 l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -quiet -dumpbase
h264_cabac.i -march=core2 -mfpmath=sse -auxbase h264_cabac -g -O4 -std=gnu99 -ve
rsion -ffast-math -fomit-frame-pointer -fno-common -o tmp.s -v
[New Thread 6004.0xc50]
warning: the debug information found in "/cygdrive/d/cygwin/bin/cygwin1.dbg" doe
s not match "/cygdrive/d/cygwin/bin/cygwin1.dll" (CRC mismatch).

[New Thread 6004.0x112c]
GNU C (GCC) version 4.6.0 20100918 (experimental) (i686-pc-cygwin)
        compiled by GNU C version 4.6.0 20100918 (experimental), GMP version 5.0
.0, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
[New Thread 6004.0x4ec]
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/i686-pc-cygwin/4.6.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.6.0/include-fixed
 /usr/lib/gcc/i686-pc-cygwin/4.6.0/../../../../i686-pc-cygwin/include
End of search list.
GNU C (GCC) version 4.6.0 20100918 (experimental) (i686-pc-cygwin)
        compiled by GNU C version 4.6.0 20100918 (experimental), GMP version 5.0
.0, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 37b591552c4af58bc2f535240f94baa1

Program received signal SIGSEGV, Segmentation fault.
0x00a241fa in get_base_constructor (base=0x7fa6e1c0,
    offset=<value optimized out>) at ../.././gcc/tree-ssa-ccp.c:1347
1347                  && !varpool_get_node (base)->const_value_known))
(gdb) bt
#0  0x00a241fa in get_base_constructor (base=0x7fa6e1c0,
    offset=<value optimized out>) at ../.././gcc/tree-ssa-ccp.c:1347
#1  0x00a2029b in fold_const_aggregate_ref (t=0x7f9451b8)
    at ../.././gcc/tree-ssa-ccp.c:1396
#2  0x00a24248 in get_base_constructor (base=0x7f9451b8,
    offset=<value optimized out>) at ../.././gcc/tree-ssa-ccp.c:1361
#3  0x00a2029b in fold_const_aggregate_ref (t=0x7f945190)
    at ../.././gcc/tree-ssa-ccp.c:1396
#4  0x008d0448 in maybe_fold_reference (expr=0x7f945190, is_lhs=0x0)
    at ../.././gcc/gimple-fold.c:480
#5  0x008d4125 in fold_stmt_1 (gsi=0x4a5c820, inplace=0x0)
    at ../.././gcc/gimple-fold.c:1559
#6  0x009b9882 in optimize_stmt (bb=0x7fa781f0, si=...)
    at ../.././gcc/tree-ssa-dom.c:2120
#7  0x009bac00 in dom_opt_enter_block (walk_data=0x4a5c930, bb=0x7fa781f0)
    at ../.././gcc/tree-ssa-dom.c:1671
#8  0x00b26025 in walk_dominator_tree (walk_data=0x4a5c930, bb=0x7fa781f0)
    at ../.././gcc/domwalk.c:188
#9  0x009b928b in tree_ssa_dominator_optimize ()
    at ../.././gcc/tree-ssa-dom.c:698
#10 0x0065182d in execute_one_pass (pass=0xc4c0e0)
    at ../.././gcc/passes.c:1573
#11 execute_one_pass (pass=0xc4c0e0) at ../.././gcc/passes.c:1516
#12 0x00651ac5 in execute_pass_list (pass=0xc4c0e0)
---Type <return> to continue, or q <return> to quit---
    at ../.././gcc/passes.c:1628
#13 0x00651ad8 in execute_pass_list (pass=0xc4b520)
    at ../.././gcc/passes.c:1629
#14 0x0078d30b in tree_rest_of_compilation (fndecl=0x7fc05600)
    at ../.././gcc/tree-optimize.c:452
#15 0x0065404c in cgraph_expand_function (node=0x7fa5f618)
    at ../.././gcc/cgraphunit.c:1469
#16 0x00656e15 in cgraph_expand_all_functions ()
    at ../.././gcc/cgraphunit.c:1548
#17 cgraph_optimize () at ../.././gcc/cgraphunit.c:1804
#18 0x006573fa in cgraph_finalize_compilation_unit ()
    at ../.././gcc/cgraphunit.c:1012
#19 0x0041c0a8 in c_write_global_declarations () at ../.././gcc/c-decl.c:9732
#20 0x006606d2 in compile_file (argc=0x1f, argv=0x4e9a208)
    at ../.././gcc/toplev.c:967
#21 do_compile (argc=0x1f, argv=0x4e9a208) at ../.././gcc/toplev.c:2394
#22 toplev_main (argc=0x1f, argv=0x4e9a208) at ../.././gcc/toplev.c:2435
#23 0x004a62a0 in main (argc=0x1f, argv=0x4e9a208) at ../.././gcc/main.c:36
(gdb)
(gdb)
Comment 1 gee 2010-09-18 07:57:10 UTC
Created attachment 21827 [details]
preprocessed source
Comment 2 Richard Biener 2010-09-18 09:26:32 UTC
Honza.
Comment 3 gee 2010-09-23 04:52:07 UTC
seems fixed in rev 164528