public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006
@ 2014-11-08 3:26 pthaugen at gcc dot gnu.org
2014-11-09 11:33 ` [Bug tree-optimization/63778] [5 Regression] " rguenth at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: pthaugen at gcc dot gnu.org @ 2014-11-08 3:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778
Bug ID: 63778
Summary: Segfault with r217178 building 416.gamess from cpu2006
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pthaugen at gcc dot gnu.org
CC: bergner at gcc dot gnu.org, dje.gcc at gmail dot com,
rguenth at gcc dot gnu.org
Host: powerpc64-unknown-linux-gnu
Target: powerpc64-unknown-linux-gnu
Build: powerpc64-unknown-linux-gnu
Created attachment 33920
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33920&action=edit
reduced testcase
Following segfault started with r217178.
> gfortran -c -O3 -ffast-math zheev.f
...
f951: internal compiler error: Segmentation fault
0x107ac467 crash_signal
/home/pthaugen/src/gcc/trunk/gcc/gcc/toplev.c:358
0x1050ec44 gimple_code
/home/pthaugen/src/gcc/trunk/gcc/gcc/gimple.h:1412
0x1050ec44 is_gimple_assign
/home/pthaugen/src/gcc/trunk/gcc/gcc/gimple.h:2124
0x1050ec44 gimple_simplify
/home/pthaugen/work/build/gcc/trunk/gcc/gimple-match.c:493
0x1050e587 gimple_resimplify1
/home/pthaugen/src/gcc/trunk/gcc/gcc/gimple-match-head.c:125
0x10507cbb fold_stmt_1
/home/pthaugen/src/gcc/trunk/gcc/gcc/gimple-fold.c:3074
...
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org @ 2014-11-09 11:33 ` rguenth at gcc dot gnu.org 2014-11-09 15:35 ` hjl.tools at gmail dot com ` (7 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-09 11:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2014-11-09 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Target Milestone|--- |5.0 Summary|Segfault with r217178 |[5 Regression] Segfault |building 416.gamess from |with r217178 building |cpu2006 |416.gamess from cpu2006 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I believe this was fixed with r217214 and thus is a dup of PR63770. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org 2014-11-09 11:33 ` [Bug tree-optimization/63778] [5 Regression] " rguenth at gcc dot gnu.org @ 2014-11-09 15:35 ` hjl.tools at gmail dot com 2014-11-10 9:34 ` rguenth at gcc dot gnu.org ` (6 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: hjl.tools at gmail dot com @ 2014-11-09 15:35 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc64-unknown-linux-gnu | Status|WAITING |NEW Host|powerpc64-unknown-linux-gnu | Build|powerpc64-unknown-linux-gnu | --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- I can reproduce it on Linux/x86-64 with r217256. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org 2014-11-09 11:33 ` [Bug tree-optimization/63778] [5 Regression] " rguenth at gcc dot gnu.org 2014-11-09 15:35 ` hjl.tools at gmail dot com @ 2014-11-10 9:34 ` rguenth at gcc dot gnu.org 2014-11-10 9:40 ` rguenth at gcc dot gnu.org ` (5 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-10 9:34 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- I can't reproduce it on x86_64-linux, neither with unreduced zheev.F -DSPEC_CPU nor with -march=native added. Trying a cross to ppc64-linux (BE). HJ, please provide more detailed instructions (I'm on r217281 now). ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org ` (2 preceding siblings ...) 2014-11-10 9:34 ` rguenth at gcc dot gnu.org @ 2014-11-10 9:40 ` rguenth at gcc dot gnu.org 2014-11-10 14:52 ` hjl.tools at gmail dot com ` (4 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-10 9:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Works for me with the reduced testcase and a cross to ppc64-linux both -m32/-m64. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org ` (3 preceding siblings ...) 2014-11-10 9:40 ` rguenth at gcc dot gnu.org @ 2014-11-10 14:52 ` hjl.tools at gmail dot com 2014-11-10 15:33 ` rguenth at gcc dot gnu.org ` (3 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: hjl.tools at gmail dot com @ 2014-11-10 14:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 --- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Richard Biener from comment #3) > I can't reproduce it on x86_64-linux, neither with unreduced zheev.F > -DSPEC_CPU > nor with -march=native added. Trying a cross to ppc64-linux (BE). > > HJ, please provide more detailed instructions (I'm on r217281 now). It is fixed by r217260. Should we add a testcase for this? ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org ` (4 preceding siblings ...) 2014-11-10 14:52 ` hjl.tools at gmail dot com @ 2014-11-10 15:33 ` rguenth at gcc dot gnu.org 2014-11-10 15:33 ` rguenther at suse dot de ` (2 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-11-10 15:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org ` (5 preceding siblings ...) 2014-11-10 15:33 ` rguenth at gcc dot gnu.org @ 2014-11-10 15:33 ` rguenther at suse dot de 2014-11-10 17:48 ` hjl.tools at gmail dot com 2014-11-10 18:08 ` hjl at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: rguenther at suse dot de @ 2014-11-10 15:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 --- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 10 Nov 2014, hjl.tools at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 > > --- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- > (In reply to Richard Biener from comment #3) > > I can't reproduce it on x86_64-linux, neither with unreduced zheev.F > > -DSPEC_CPU > > nor with -march=native added. Trying a cross to ppc64-linux (BE). > > > > HJ, please provide more detailed instructions (I'm on r217281 now). > > It is fixed by r217260. Should we add a testcase for this? Probably - can you reduce sth? It's fixed by the hunk Index: genmatch.c =================================================================== --- genmatch.c (revision 217259) +++ genmatch.c (revision 217260) @@ -1726,6 +1726,7 @@ dt_node::gen_kids (FILE *f, bool gimple) if (exprs_len || fns_len) { fprintf (f, "case SSA_NAME:\n"); + fprintf (f, "if (do_valueize (valueize, %s) != NULL_TREE)\n", kid_opname) ; fprintf (f, "{\n"); fprintf (f, "gimple def_stmt = SSA_NAME_DEF_STMT (%s);\n", kid_opname); ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org ` (6 preceding siblings ...) 2014-11-10 15:33 ` rguenther at suse dot de @ 2014-11-10 17:48 ` hjl.tools at gmail dot com 2014-11-10 18:08 ` hjl at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: hjl.tools at gmail dot com @ 2014-11-10 17:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 --- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> --- [hjl@gnu-mic-2 delta-fortran]$ cat foo.f SUBROUTINE ZUNG2L( M, N, K, A, LDA, TAU, WORK, INFO ) COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * ) IF( M.LT.0 ) THEN END IF CALL ZLARF( 'LEFT', M-N+II, II-1, A( 1, II ), 1, TAU( I ), A, $ LDA, WORK ) CALL ZSCAL( M-N+II-1, -TAU( I ), A( 1, II ), 1 ) A( M-N+II, II ) = ONE - TAU( I ) END SUBROUTINE ZLARF( SIDE, M, N, V, INCV, TAU, C, LDC, WORK ) CHARACTER SIDE(*) LOGICAL LSAME COMPLEX*16 C( LDC, * ), V(*), WORK(*), TAU IF( LSAME( SIDE, 'L' ) ) THEN IF( TAU.NE.ZERO ) THEN CALL ZGEMV( 'CONJUGATE TRANSPOSE', M, N, ONE, C, LDC, V, $ INCV, ZERO, WORK, 1 ) END IF END IF END LOGICAL FUNCTION LSAME( CA, CB ) CHARACTER CA(*), CB(*) END SUBROUTINE ZGEMV ( TRANS, M, N, ALPHA, A, LDA, X, INCX, $ BETA, Y, INCY ) COMPLEX*16 A( LDA, * ), X( * ), Y( * ) CHARACTER TRANS(*) LOGICAL LSAME IF( LSAME( TRANS, 'N' ) )THEN IF( INCY.EQ.1 )THEN IF( X( JX ).NE.ZERO )THEN Y( I ) = Y( I ) + TEMP*A( I, J ) END IF END IF END IF END SUBROUTINE ZSCAL(N,ZA,ZX,INCX) COMPLEX*16 ZA,ZX(1) IF( N.LE.0 .OR. INCX.LE.0 )RETURN 20 DO 30 I = 1,N ZX(I) = ZA*ZX(I) 30 CONTINUE END [hjl@gnu-mic-2 delta-fortran]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -S -O3 -ffast-math foo.f f951: internal compiler error: Segmentation fault 0xd34f3a crash_signal /export/gnu/import/git/gcc/gcc/toplev.c:358 0xa7b28f gimple_code /export/gnu/import/git/gcc/gcc/gimple.h:1412 0xa7b46c is_gimple_assign /export/gnu/import/git/gcc/gcc/gimple.h:2124 0xa7f816 gimple_simplify /export/build/gnu/gcc/build-x86_64-linux/gcc/gimple-match.c:493 0xa7bcbe gimple_resimplify1 /export/gnu/import/git/gcc/gcc/gimple-match-head.c:125 0xa7d6f0 gimple_simplify(gimple_statement_base*, code_helper*, tree_node**, gimple_statement_base**, tree_node* (*)(tree_node*)) /export/gnu/import/git/gcc/gcc/gimple-match-head.c:651 0xa711c4 fold_stmt_1 /export/gnu/import/git/gcc/gcc/gimple-fold.c:3074 0xa71ad0 fold_stmt(gimple_stmt_iterator*) /export/gnu/import/git/gcc/gcc/gimple-fold.c:3253 0xaaa65c maybe_fold_stmt /export/gnu/import/git/gcc/gcc/gimplify.c:2258 0xab3f64 gimplify_modify_expr /export/gnu/import/git/gcc/gcc/gimplify.c:4682 0xac0d43 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) /export/gnu/import/git/gcc/gcc/gimplify.c:7693 0xab68ae gimplify_stmt(tree_node**, gimple_statement_base**) /export/gnu/import/git/gcc/gcc/gimplify.c:5434 0xaa4a03 gimplify_and_add(tree_node*, gimple_statement_base**) /export/gnu/import/git/gcc/gcc/gimplify.c:397 0xaa5104 internal_get_tmp_var /export/gnu/import/git/gcc/gcc/gimplify.c:542 0xaa5145 get_formal_tmp_var(tree_node*, gimple_statement_base**) /export/gnu/import/git/gcc/gcc/gimplify.c:563 0xac3e4d gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) /export/gnu/import/git/gcc/gcc/gimplify.c:8592 0xac7613 force_gimple_operand_1(tree_node*, gimple_statement_base**, bool (*)(tree_node*), tree_node*) /export/gnu/import/git/gcc/gcc/gimplify-me.c:93 0xac76cc force_gimple_operand_gsi_1(gimple_stmt_iterator*, tree_node*, bool (*)(tree_node*), tree_node*, bool, gsi_iterator_update) /export/gnu/import/git/gcc/gcc/gimplify-me.c:130 0xac7777 force_gimple_operand_gsi(gimple_stmt_iterator*, tree_node*, bool, tree_node*, bool, gsi_iterator_update) /export/gnu/import/git/gcc/gcc/gimplify-me.c:159 0xd7da7a gimplify_build2(gimple_stmt_iterator*, tree_code, tree_node*, tree_node*, tree_node*) /export/gnu/import/git/gcc/gcc/tree-cfg.c:8223 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. [hjl@gnu-mic-2 delta-fortran]$ ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/63778] [5 Regression] Segfault with r217178 building 416.gamess from cpu2006 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org ` (7 preceding siblings ...) 2014-11-10 17:48 ` hjl.tools at gmail dot com @ 2014-11-10 18:08 ` hjl at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: hjl at gcc dot gnu.org @ 2014-11-10 18:08 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63778 --- Comment #9 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> --- Author: hjl Date: Mon Nov 10 18:08:00 2014 New Revision: 217304 URL: https://gcc.gnu.org/viewcvs?rev=217304&root=gcc&view=rev Log: Add a testcase for PR tree-optimization/63778 PR tree-optimization/63778 * gfortran.dg/pr63778.f: New test. Added: trunk/gcc/testsuite/gfortran.dg/pr63778.f Modified: trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-11-10 18:08 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-11-08 3:26 [Bug tree-optimization/63778] New: Segfault with r217178 building 416.gamess from cpu2006 pthaugen at gcc dot gnu.org 2014-11-09 11:33 ` [Bug tree-optimization/63778] [5 Regression] " rguenth at gcc dot gnu.org 2014-11-09 15:35 ` hjl.tools at gmail dot com 2014-11-10 9:34 ` rguenth at gcc dot gnu.org 2014-11-10 9:40 ` rguenth at gcc dot gnu.org 2014-11-10 14:52 ` hjl.tools at gmail dot com 2014-11-10 15:33 ` rguenth at gcc dot gnu.org 2014-11-10 15:33 ` rguenther at suse dot de 2014-11-10 17:48 ` hjl.tools at gmail dot com 2014-11-10 18:08 ` hjl 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).