public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
@ 2011-09-01 7:22 Joost.VandeVondele at pci dot uzh.ch
2011-09-01 9:00 ` [Bug middle-end/50260] [4.7 Regression] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2011-09-01 7:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
Bug #: 50260
Summary: internal compiler error: Segmentation fault at
../../gcc/gcc/tree-ssa-live.c:88
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: Joost.VandeVondele@pci.uzh.ch
this started failing in the last 48h or so, with the following stack trace
Program received signal SIGSEGV, Segmentation fault.
var_map_base_init (map=0x16bb070) at ../../gcc/gcc/tree-ssa-live.c:88
88 if (!ann->base_var_processed)
(gdb) bt
#0 var_map_base_init (map=0x16bb070) at ../../gcc/gcc/tree-ssa-live.c:88
#1 0x00000000009dd3f2 in coalesce_ssa_name () at
../../gcc/gcc/tree-ssa-coalesce.c:1397
#2 0x00000000009909a9 in remove_ssa_form (sa=0x14adce0) at
../../gcc/gcc/tree-outof-ssa.c:909
#3 rewrite_out_of_ssa (sa=0x14adce0) at ../../gcc/gcc/tree-outof-ssa.c:1143
#4 0x000000000066173b in gimple_expand_cfg () at
../../gcc/gcc/cfgexpand.c:4152
#5 0x000000000088a3b7 in execute_one_pass (pass=0x149e7e0) at
../../gcc/gcc/passes.c:2063
#6 0x000000000088a725 in execute_pass_list (pass=0x149e7e0) at
../../gcc/gcc/passes.c:2118
#7 0x000000000098e01e in tree_rest_of_compilation (fndecl=0x7ffff5b49300) at
../../gcc/gcc/tree-optimize.c:420
#8 0x00000000006812c6 in cgraph_expand_function (node=0x7ffff7e7fea0) at
../../gcc/gcc/cgraphunit.c:1797
#9 0x000000000068300b in cgraph_expand_all_functions () at
../../gcc/gcc/cgraphunit.c:1856
#10 cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:2126
#11 0x000000000068369a in cgraph_finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:1310
#12 0x000000000083e8fd in write_global_declarations () at
../../gcc/gcc/langhooks.c:303
#13 0x000000000092bf22 in compile_file (argc=15, argv=0x7fffffffdb38) at
../../gcc/gcc/toplev.c:564
#14 do_compile (argc=15, argv=0x7fffffffdb38) at ../../gcc/gcc/toplev.c:1886
#15 toplev_main (argc=15, argv=0x7fffffffdb38) at ../../gcc/gcc/toplev.c:1962
#16 0x00007ffff63c5b7d in __libc_start_main () from /lib64/libc.so.6
#17 0x000000000050317d in _start () at ../sysdeps/x86_64/elf/start.S:113
testcase:
MODULE cp_parser_methods
INTEGER, PARAMETER :: default_string_length=80
INTEGER, PARAMETER :: default_path_length=250
TYPE ilist_type
LOGICAL :: in_use
END TYPE ilist_type
TYPE cp_parser_type
CHARACTER(LEN=default_path_length) :: ifn
INTEGER :: icol,icol1,icol2
TYPE(ilist_type), POINTER :: ilist
END TYPE cp_parser_type
TYPE cp_error_type
END TYPE cp_error_type
CONTAINS
FUNCTION cts(i) RESULT(res)
CHARACTER(len=6) :: res
END FUNCTION cts
FUNCTION parser_location(parser,error) RESULT(res)
TYPE(cp_parser_type), POINTER :: parser
TYPE(cp_error_type), INTENT(inout) :: error
CHARACTER(len=default_path_length+default_string_length) :: res
LOGICAL :: failure
IF (.NOT. failure) THEN
res="file:'"//TRIM(parser%ifn)//"' line:"//cts(parser%icol)
END IF
END FUNCTION parser_location
SUBROUTINE parser_get_integer(parser,at_end, error)
TYPE(cp_parser_type), POINTER :: parser
TYPE(cp_error_type), INTENT(inout) :: error
LOGICAL :: failure, my_at_end
IF (.NOT.failure) THEN
IF (.NOT.parser%ilist%in_use) THEN
CALL cp_assert("A"// TRIM(parser_location(parser,error)))
END IF
END IF
END SUBROUTINE parser_get_integer
SUBROUTINE parser_get_string(parser,at_end,error)
TYPE(cp_parser_type), POINTER :: parser
LOGICAL, INTENT(out), OPTIONAL :: at_end
TYPE(cp_error_type), INTENT(inout) :: error
LOGICAL :: failure, my_at_end
IF (.NOT.failure) THEN
IF (PRESENT(at_end)) THEN
CALL cp_assert("s"//TRIM(parser_location(parser,error)))
END IF
END IF
END SUBROUTINE parser_get_string
END MODULE cp_parser_methods
fails at
gfortran -O3 bug.f90
compiles at
gfortran -O2 bug.f90
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
@ 2011-09-01 9:00 ` rguenth at gcc dot gnu.org
2011-09-01 19:30 ` hubicka at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-09-01 9:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-09-01
CC| |matz at gcc dot gnu.org
Target Milestone|--- |4.7.0
Summary|internal compiler error: |[4.7 Regression] internal
|Segmentation fault at |compiler error:
|../../gcc/gcc/tree-ssa-live |Segmentation fault at
|.c:88 |../../gcc/gcc/tree-ssa-live
| |.c:88
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-01 08:59:54 UTC ---
Confirmed. The PARM_DECL never has its var_ann allocated (it's the string
result length). It's also unused which is why it doesn't have an annotation.
Probably Michas change triggered this.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
2011-09-01 9:00 ` [Bug middle-end/50260] [4.7 Regression] " rguenth at gcc dot gnu.org
@ 2011-09-01 19:30 ` hubicka at gcc dot gnu.org
2011-09-01 20:34 ` pthaugen at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-09-01 19:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-09-01 19:30:20 UTC ---
Also reproduces on Mozilla build with C++ code.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
2011-09-01 9:00 ` [Bug middle-end/50260] [4.7 Regression] " rguenth at gcc dot gnu.org
2011-09-01 19:30 ` hubicka at gcc dot gnu.org
@ 2011-09-01 20:34 ` pthaugen at gcc dot gnu.org
2011-09-02 7:28 ` Joost.VandeVondele at pci dot uzh.ch
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pthaugen at gcc dot gnu.org @ 2011-09-01 20:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
--- Comment #3 from Pat Haugen <pthaugen at gcc dot gnu.org> 2011-09-01 20:34:00 UTC ---
This also shows up on PowerPC in the 3 cpu2000 benchmarks 178.galgel, 191.fma3d
and 200.sixtrack.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
` (2 preceding siblings ...)
2011-09-01 20:34 ` pthaugen at gcc dot gnu.org
@ 2011-09-02 7:28 ` Joost.VandeVondele at pci dot uzh.ch
2011-09-02 9:32 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2011-09-02 7:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
--- Comment #4 from Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> 2011-09-02 07:27:30 UTC ---
Patch posted at:
http://gcc.gnu.org/ml/gcc-patches/2011-09/msg00052.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
` (3 preceding siblings ...)
2011-09-02 7:28 ` Joost.VandeVondele at pci dot uzh.ch
@ 2011-09-02 9:32 ` rguenth at gcc dot gnu.org
2011-09-02 18:32 ` matz at gcc dot gnu.org
2011-09-02 18:43 ` matz at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-09-02 9:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dominiq at lps dot ens.fr
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-02 09:32:07 UTC ---
*** Bug 50265 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
` (4 preceding siblings ...)
2011-09-02 9:32 ` rguenth at gcc dot gnu.org
@ 2011-09-02 18:32 ` matz at gcc dot gnu.org
2011-09-02 18:43 ` matz at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: matz at gcc dot gnu.org @ 2011-09-02 18:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
--- Comment #6 from Michael Matz <matz at gcc dot gnu.org> 2011-09-02 18:31:56 UTC ---
Author: matz
Date: Fri Sep 2 18:31:47 2011
New Revision: 178489
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178489
Log:
PR middle-end/50260
* ipa-split.c (split_function): Call add_referenced_var.
* tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
(cond_if_else_store_replacement_1): Ditto.
* tree-ssa-pre.c (get_representative_for): Ditto.
(create_expression_by_pieces): Ditto.
(insert_into_preds_of_block): Ditto.
* tree-sra.c (create_access_replacement): Ditto.
(get_replaced_param_substitute): Ditto.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-split.c
trunk/gcc/tree-sra.c
trunk/gcc/tree-ssa-phiopt.c
trunk/gcc/tree-ssa-pre.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/50260] [4.7 Regression] internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
` (5 preceding siblings ...)
2011-09-02 18:32 ` matz at gcc dot gnu.org
@ 2011-09-02 18:43 ` matz at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: matz at gcc dot gnu.org @ 2011-09-02 18:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50260
Michael Matz <matz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Michael Matz <matz at gcc dot gnu.org> 2011-09-02 18:42:24 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-09-02 18:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01 7:22 [Bug middle-end/50260] New: internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88 Joost.VandeVondele at pci dot uzh.ch
2011-09-01 9:00 ` [Bug middle-end/50260] [4.7 Regression] " rguenth at gcc dot gnu.org
2011-09-01 19:30 ` hubicka at gcc dot gnu.org
2011-09-01 20:34 ` pthaugen at gcc dot gnu.org
2011-09-02 7:28 ` Joost.VandeVondele at pci dot uzh.ch
2011-09-02 9:32 ` rguenth at gcc dot gnu.org
2011-09-02 18:32 ` matz at gcc dot gnu.org
2011-09-02 18:43 ` matz at gcc dot gnu.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).