public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/41956] New: Segmentation fault when called by mpicc
@ 2009-11-05 20:32 andrew_newell at ncsu dot edu
2009-11-05 20:34 ` [Bug c/41956] " andrew_newell at ncsu dot edu
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: andrew_newell at ncsu dot edu @ 2009-11-05 20:32 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 731 bytes --]
This problem occurs when compiling part of ParMetis-3.1:
/usr/bin/mpicc -save-temps -O3 -I. -I/opt/local/include -I/usr/include/malloc
-c node_refine.c
node_refine.c: In function KWayNodeRefine__:
node_refine.c:114:6: internal compiler error: Segmentation fault
--
Summary: Segmentation fault when called by mpicc
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: andrew_newell at ncsu dot edu
GCC build triplet: x86_64-apple-darwin10
GCC host triplet: x86_64-apple-darwin10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/41956] Segmentation fault when called by mpicc
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
@ 2009-11-05 20:34 ` andrew_newell at ncsu dot edu
2009-11-05 20:35 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: andrew_newell at ncsu dot edu @ 2009-11-05 20:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from andrew_newell at ncsu dot edu 2009-11-05 20:34 -------
Created an attachment (id=18977)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18977&action=view)
Preprocessed file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/41956] Segmentation fault when called by mpicc
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
2009-11-05 20:34 ` [Bug c/41956] " andrew_newell at ncsu dot edu
@ 2009-11-05 20:35 ` pinskia at gcc dot gnu dot org
2009-11-05 20:39 ` [Bug middle-end/41956] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-05 20:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-11-05 20:35 -------
Can you provide the output of gcc -v ?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/41956] Segmentation fault when called by mpicc
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
2009-11-05 20:34 ` [Bug c/41956] " andrew_newell at ncsu dot edu
2009-11-05 20:35 ` pinskia at gcc dot gnu dot org
@ 2009-11-05 20:39 ` pinskia at gcc dot gnu dot org
2009-11-05 20:40 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-05 20:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-11-05 20:39 -------
Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20090910/configure --enable-languages=fortran,c++
--host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10
Thread model: posix
gcc version 4.5.0 20090910 (experimental) (GCC)
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
GCC target triplet| |x86_64-apple-darwin10
Version|4.2.1 |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/41956] Segmentation fault when called by mpicc
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (2 preceding siblings ...)
2009-11-05 20:39 ` [Bug middle-end/41956] " pinskia at gcc dot gnu dot org
@ 2009-11-05 20:40 ` pinskia at gcc dot gnu dot org
2009-11-06 10:06 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-05 20:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2009-11-05 20:40 -------
This is likely a dup of bug 41891.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/41956] Segmentation fault when called by mpicc
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (3 preceding siblings ...)
2009-11-05 20:40 ` pinskia at gcc dot gnu dot org
@ 2009-11-06 10:06 ` rguenth at gcc dot gnu dot org
2009-12-29 17:42 ` fxcoudert at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-06 10:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-11-06 10:06 -------
hm, works for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/41956] Segmentation fault when called by mpicc
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (4 preceding siblings ...)
2009-11-06 10:06 ` rguenth at gcc dot gnu dot org
@ 2009-12-29 17:42 ` fxcoudert at gcc dot gnu dot org
2009-12-30 10:16 ` [Bug middle-end/41956] Segfault in vectorizer irar at il dot ibm dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-12-29 17:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from fxcoudert at gcc dot gnu dot org 2009-12-29 17:42 -------
I can confirm the segfault at -O3 with current trunk (rev. 155505) on
x86_64-apple-darwin10.2.0. I also generated a (much) reduced testcase:
void K (int *gpwgts, int *badminpwgt, int *badmaxpwgt)
{
int i;
for (i = 0; i < 10; i += 2) {
badminpwgt[i] = badminpwgt[i+1] = gpwgts[i]+gpwgts[i];
badmaxpwgt[i] = badmaxpwgt[i+1] = gpwgts[i]+gpwgts[i];
}
}
The segfault backtrace is:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
vect_analyze_slp (loop_vinfo=<value temporarily unavailable, due to
optimizations>, bb_vinfo=<value temporarily unavailable, due to optimizations>)
at gimple.h:33
33 DEF_VEC_P(gimple);
(gdb) bt
#0 vect_analyze_slp (loop_vinfo=<value temporarily unavailable, due to
optimizations>, bb_vinfo=<value temporarily unavailable, due to optimizations>)
at gimple.h:33
#1 0x00000001007bce67 in vect_analyze_loop (loop=<value temporarily
unavailable, due to optimizations>) at ../../trunk/gcc/tree-vect-loop.c:1433
#2 0x00000001007ca08a in vectorize_loops () at
../../trunk/gcc/tree-vectorizer.c:219
#3 0x000000010058d7ae in execute_one_pass (pass=0x100c3ca00) at
../../trunk/gcc/passes.c:1561
#4 0x000000010058da7d in execute_pass_list (pass=0x100c3ca00) at
../../trunk/gcc/passes.c:1616
#5 0x000000010058da8f in execute_pass_list (pass=0x100c3c820) at
../../trunk/gcc/passes.c:1617
#6 0x000000010058da8f in execute_pass_list (pass=0x100c3be60) at
../../trunk/gcc/passes.c:1617
#7 0x00000001006b86e8 in tree_rest_of_compilation (fndecl=0x141609900) at
../../trunk/gcc/tree-optimize.c:413
#8 0x00000001008731e3 in cgraph_expand_function (node=<value temporarily
unavailable, due to optimizations>) at ../../trunk/gcc/cgraphunit.c:1544
#9 0x00000001008760da in cgraph_optimize () at
../../trunk/gcc/cgraphunit.c:1623
#10 0x00000001008766bd in cgraph_finalize_compilation_unit () at
../../trunk/gcc/cgraphunit.c:1093
#11 0x000000010001f2a2 in c_write_global_declarations () at
../../trunk/gcc/c-decl.c:9490
#12 0x000000010064e322 in toplev_main (argc=4, argv=0x7fff5fbff5d0) at
../../trunk/gcc/toplev.c:1061
#13 0x00000001000008b4 in start ()
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Known to fail| |4.5.0
Last reconfirmed|0000-00-00 00:00:00 |2009-12-29 17:42:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/41956] Segfault in vectorizer
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (5 preceding siblings ...)
2009-12-29 17:42 ` fxcoudert at gcc dot gnu dot org
@ 2009-12-30 10:16 ` irar at il dot ibm dot com
2009-12-30 12:53 ` [Bug tree-optimization/41956] " irar at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: irar at il dot ibm dot com @ 2009-12-30 10:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from irar at il dot ibm dot com 2009-12-30 10:16 -------
The bug is in SLP load permutation analysis. I am testing a patch.
--
irar at il dot ibm dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |irar at il dot ibm dot com
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-12-29 17:42:02 |2009-12-30 10:16:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/41956] Segfault in vectorizer
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (6 preceding siblings ...)
2009-12-30 10:16 ` [Bug middle-end/41956] Segfault in vectorizer irar at il dot ibm dot com
@ 2009-12-30 12:53 ` irar at gcc dot gnu dot org
2009-12-31 11:21 ` fxcoudert at gcc dot gnu dot org
2010-01-04 12:46 ` irar at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: irar at gcc dot gnu dot org @ 2009-12-30 12:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from irar at gcc dot gnu dot org 2009-12-30 12:53 -------
Subject: Bug 41956
Author: irar
Date: Wed Dec 30 12:53:18 2009
New Revision: 155523
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155523
Log:
PR tree-optimization/41956
* tree-vect-slp.c (vect_supported_load_permutation_p): Add check that
the load indices differ.
Added:
trunk/gcc/testsuite/gcc.dg/vect/pr41956.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-slp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/41956] Segfault in vectorizer
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (7 preceding siblings ...)
2009-12-30 12:53 ` [Bug tree-optimization/41956] " irar at gcc dot gnu dot org
@ 2009-12-31 11:21 ` fxcoudert at gcc dot gnu dot org
2010-01-04 12:46 ` irar at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-12-31 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2009-12-31 11:21 -------
Confirmed as fixed on x86_64-apple-darwin10 at rev. 155523.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/41956] Segfault in vectorizer
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
` (8 preceding siblings ...)
2009-12-31 11:21 ` fxcoudert at gcc dot gnu dot org
@ 2010-01-04 12:46 ` irar at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: irar at gcc dot gnu dot org @ 2010-01-04 12:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from irar at gcc dot gnu dot org 2010-01-04 12:46 -------
Subject: Bug 41956
Author: irar
Date: Mon Jan 4 12:45:46 2010
New Revision: 155614
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155614
Log:
PR tree-optimization/41956
* tree-vect-analyze.c (vect_supported_load_permutation_p): Add check
that the load indices differ.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/vect/pr41956.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-vect-analyze.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41956
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-01-04 12:46 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-05 20:32 [Bug c/41956] New: Segmentation fault when called by mpicc andrew_newell at ncsu dot edu
2009-11-05 20:34 ` [Bug c/41956] " andrew_newell at ncsu dot edu
2009-11-05 20:35 ` pinskia at gcc dot gnu dot org
2009-11-05 20:39 ` [Bug middle-end/41956] " pinskia at gcc dot gnu dot org
2009-11-05 20:40 ` pinskia at gcc dot gnu dot org
2009-11-06 10:06 ` rguenth at gcc dot gnu dot org
2009-12-29 17:42 ` fxcoudert at gcc dot gnu dot org
2009-12-30 10:16 ` [Bug middle-end/41956] Segfault in vectorizer irar at il dot ibm dot com
2009-12-30 12:53 ` [Bug tree-optimization/41956] " irar at gcc dot gnu dot org
2009-12-31 11:21 ` fxcoudert at gcc dot gnu dot org
2010-01-04 12:46 ` irar 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).