public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris
@ 2012-09-30 10:36 ebotcazou at gcc dot gnu.org
2012-09-30 19:05 ` [Bug middle-end/54759] " dehao at google dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-09-30 10:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54759
Bug #: 54759
Summary: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on
Solaris
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ebotcazou@gcc.gnu.org
CC: dehao@gcc.gnu.org
Host: sparc-sun-solaris2.10
Target: sparc-sun-solaris2.10
Build: sparc-sun-solaris2.10
We have a segfault for gcc.dg/vect/pr49093.c on SPARC/Solaris:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0xff0ae9b0 in strlen () from /lib/libc.so.1
(gdb) bt
#0 0xff0ae9b0 in strlen () from /lib/libc.so.1
#1 0xff1134d8 in _ndoprnt () from /lib/libc.so.1
#2 0xff1154a0 in fprintf () from /lib/libc.so.1
#3 0x00743778 in vectorize_loops ()
at /nile.build/botcazou/gcc-head/src/gcc/tree-vectorizer.c:198
#4 0x0067739c in tree_vectorize ()
at /nile.build/botcazou/gcc-head/src/gcc/tree-ssa-loop.c:215
(gdb) frame 3
#3 0x00743778 in vectorize_loops ()
at /nile.build/botcazou/gcc-head/src/gcc/tree-vectorizer.c:198
198 LOC_FILE (vect_location), LOC_LINE (vect_location));
(gdb) list
193
194 vect_location = find_loop_location (loop);
195 if (vect_location != UNKNOWN_LOC
196 && vect_verbosity_level > REPORT_NONE)
197 fprintf (vect_dump, "\nAnalyzing loop at %s:%d\n",
198 LOC_FILE (vect_location), LOC_LINE (vect_location));
199
200 loop_vinfo = vect_analyze_loop (loop);
201 loop->aux = loop_vinfo;
202
(gdb) p vect_location
$1 = 2147483648
(gdb) call expand_location(vect_location)
$4 = {file = 0x0, line = 0, column = 0, data = 0xfb4a5ad0, sysp = false}
This is reproducible with a bare cross-compiler on x86_64-suse-linux:
gdb --args gcc/cc1 -quiet -O1 -ftree-vectorize -fdump-tree-vect-details
-fno-tree-fre -mcpu=v9 pr49093.c
(gdb) b tree-vectorizer.c:197
Breakpoint 1, vectorize_loops ()
at /home/eric/svn/gcc/gcc/tree-vectorizer.c:198
198 LOC_FILE (vect_location), LOC_LINE (vect_location));
(gdb) call expand_location(vect_location)
$4 = {file = 0x0, line = 0, column = 0, data = 0x7ffff68dfaa0, sysp = false}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/54759] [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris
2012-09-30 10:36 [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris ebotcazou at gcc dot gnu.org
@ 2012-09-30 19:05 ` dehao at google dot com
2012-09-30 21:22 ` ebotcazou at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dehao at google dot com @ 2012-09-30 19:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54759
Dehao Chen <dehao at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dehao at google dot com
--- Comment #1 from Dehao Chen <dehao at google dot com> 2012-09-30 19:05:05 UTC ---
Thanks for reporting the bug. I prepared a patch to fix this:
http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01997.html
Could you help verify if it is fixed by this?
Thanks,
Dehao
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/54759] [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris
2012-09-30 10:36 [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris ebotcazou at gcc dot gnu.org
2012-09-30 19:05 ` [Bug middle-end/54759] " dehao at google dot com
@ 2012-09-30 21:22 ` ebotcazou at gcc dot gnu.org
2012-10-01 10:11 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-09-30 21:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54759
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-09-30 21:22:35 UTC ---
> Thanks for reporting the bug. I prepared a patch to fix this:
>
> http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01997.html
>
> Could you help verify if it is fixed by this?
The segfault disappears once the patch is applied, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/54759] [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris
2012-09-30 10:36 [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris ebotcazou at gcc dot gnu.org
2012-09-30 19:05 ` [Bug middle-end/54759] " dehao at google dot com
2012-09-30 21:22 ` ebotcazou at gcc dot gnu.org
@ 2012-10-01 10:11 ` rguenth at gcc dot gnu.org
2012-10-01 16:33 ` dehao at gcc dot gnu.org
2012-10-01 20:20 ` ebotcazou at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-01 10:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54759
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/54759] [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris
2012-09-30 10:36 [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris ebotcazou at gcc dot gnu.org
` (2 preceding siblings ...)
2012-10-01 10:11 ` rguenth at gcc dot gnu.org
@ 2012-10-01 16:33 ` dehao at gcc dot gnu.org
2012-10-01 20:20 ` ebotcazou at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dehao at gcc dot gnu.org @ 2012-10-01 16:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54759
--- Comment #3 from dehao at gcc dot gnu.org 2012-10-01 16:33:35 UTC ---
Author: dehao
Date: Mon Oct 1 16:33:23 2012
New Revision: 191931
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191931
Log:
2012-10-01 Dehao Chen <dehao@google.com>
PR middle-end/54759
* gcc/tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
(slpeel_tree_peel_loop_to_edge): Likewise.
* gcc/tree-vectorizer.c (vectorize_loops): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-vect-loop-manip.c
trunk/gcc/tree-vectorizer.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/54759] [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris
2012-09-30 10:36 [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris ebotcazou at gcc dot gnu.org
` (3 preceding siblings ...)
2012-10-01 16:33 ` dehao at gcc dot gnu.org
@ 2012-10-01 20:20 ` ebotcazou at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-10-01 20:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54759
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-10-01 20:20:28 UTC ---
Thanks for the quick turn around.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-01 20:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-30 10:36 [Bug middle-end/54759] New: [4.8 regression] segfault for gcc.dg/vect/pr49093.c on Solaris ebotcazou at gcc dot gnu.org
2012-09-30 19:05 ` [Bug middle-end/54759] " dehao at google dot com
2012-09-30 21:22 ` ebotcazou at gcc dot gnu.org
2012-10-01 10:11 ` rguenth at gcc dot gnu.org
2012-10-01 16:33 ` dehao at gcc dot gnu.org
2012-10-01 20:20 ` ebotcazou 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).