public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37886]  New: [graphite] ICE: Segmentation fault
@ 2008-10-21 20:29 mitul dot thakkar at amd dot com
  2008-10-21 20:30 ` [Bug middle-end/37886] " mitul dot thakkar at amd dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mitul dot thakkar at amd dot com @ 2008-10-21 20:29 UTC (permalink / raw)
  To: gcc-bugs

gcc -c -O2 -floop-block copy_data.c

copy_data.c: In function 'copy_data':
copy_data.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This was tested on the graphite branch. The reduced testcase is attached.


-- 
           Summary: [graphite] ICE: Segmentation fault
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mitul dot thakkar at amd dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/37886] [graphite] ICE: Segmentation fault
  2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
@ 2008-10-21 20:30 ` mitul dot thakkar at amd dot com
  2008-10-22 21:20 ` grosser at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mitul dot thakkar at amd dot com @ 2008-10-21 20:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mitul dot thakkar at amd dot com  2008-10-21 20:29 -------
Created an attachment (id=16522)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16522&action=view)
Reduced Test Case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/37886] [graphite] ICE: Segmentation fault
  2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
  2008-10-21 20:30 ` [Bug middle-end/37886] " mitul dot thakkar at amd dot com
@ 2008-10-22 21:20 ` grosser at gcc dot gnu dot org
  2008-10-23  0:30 ` grosser at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-22 21:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from grosser at gcc dot gnu dot org  2008-10-22 21:18 -------
Here a backtrace for copy_data.c:

#0  0x08194e97 in create_empty_loop_on_edge (entry_edge=0x290c2ac8, 
    initial_value=0x29066ce8, stride=0x29066d04, upper_bound=0x29066d04,
iv=0x29106ec8, 
    iv_before=0xbfbfe780, outer=0x29106d10) at
../../../git/gcc/cfgloopmanip.c:684
#1  0x089d8e5c in graphite_create_new_loop (scop=0x8d320a0,
entry_edge=0x290c2ac8, 
    stmt=0x8d33d00, ivstack=0xbfbfe880, outer=0x29106d10)
    at ../../../git/gcc/graphite.c:3412
#2  0x089da203 in translate_clast (scop=0x8d320a0, context_loop=0x29106d10, 
    stmt=0x8d33d00, next_e=0x290c2ac8, ivstack=0xbfbfe880)
    at ../../../git/gcc/graphite.c:3824
#3  0x089d9fad in translate_clast (scop=0x8d320a0, context_loop=0x29106d10, 
    stmt=0x8d8c5d0, next_e=0x290c2ac8, ivstack=0xbfbfe880)
    at ../../../git/gcc/graphite.c:3777
#4  0x089dc222 in gloog (scop=0x8d320a0, stmt=0x8d8c5d0)
    at ../../../git/gcc/graphite.c:4365
#5  0x089de401 in graphite_transform_loops () at
../../../git/gcc/graphite.c:5267


-- 

grosser at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-22 21:18:54
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/37886] [graphite] ICE: Segmentation fault
  2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
  2008-10-21 20:30 ` [Bug middle-end/37886] " mitul dot thakkar at amd dot com
  2008-10-22 21:20 ` grosser at gcc dot gnu dot org
@ 2008-10-23  0:30 ` grosser at gcc dot gnu dot org
  2008-10-23  1:33 ` sebpop at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-23  0:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from grosser at gcc dot gnu dot org  2008-10-23 00:28 -------
Created an attachment (id=16532)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16532&action=view)
Proposed fix in gloog()

I added a fix for this SEGFAULT. But now we fail with:

copy_data.c: In function 'copy_data':
copy_data.c:1: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:3617

This is handled in Bug 37851.

I would like to commit this fix and close this bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/37886] [graphite] ICE: Segmentation fault
  2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
                   ` (2 preceding siblings ...)
  2008-10-23  0:30 ` grosser at gcc dot gnu dot org
@ 2008-10-23  1:33 ` sebpop at gmail dot com
  2008-10-23 20:05 ` grosser at gcc dot gnu dot org
  2008-10-29  4:38 ` grosser at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: sebpop at gmail dot com @ 2008-10-23  1:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sebpop at gmail dot com  2008-10-23 01:31 -------
Subject: Re:  [graphite] ICE: Segmentation fault

On Wed, Oct 22, 2008 at 7:28 PM, grosser at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
> Proposed fix in gloog()
>
> I added a fix for this SEGFAULT. But now we fail with:
>
> copy_data.c: In function 'copy_data':
> copy_data.c:1: internal compiler error: in expand_scalar_variables_expr, at
> graphite.c:3617
>
> This is handled in Bug 37851.
>
> I would like to commit this fix and close this bug.
>

The fix looks good.  Please apply.

Sebastian


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/37886] [graphite] ICE: Segmentation fault
  2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
                   ` (3 preceding siblings ...)
  2008-10-23  1:33 ` sebpop at gmail dot com
@ 2008-10-23 20:05 ` grosser at gcc dot gnu dot org
  2008-10-29  4:38 ` grosser at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-23 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from grosser at gcc dot gnu dot org  2008-10-23 20:04 -------
Subject: Bug 37886

Author: grosser
Date: Thu Oct 23 20:02:59 2008
New Revision: 141328

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141328
Log:
2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>

        PR middle-end/37886
        * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. 

Modified:
    branches/graphite/gcc/ChangeLog.graphite
    branches/graphite/gcc/graphite.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/37886] [graphite] ICE: Segmentation fault
  2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
                   ` (4 preceding siblings ...)
  2008-10-23 20:05 ` grosser at gcc dot gnu dot org
@ 2008-10-29  4:38 ` grosser at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-29  4:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from grosser at gcc dot gnu dot org  2008-10-29 04:37 -------
Fix committed.


-- 

grosser at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37886


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-29  4:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-21 20:29 [Bug middle-end/37886] New: [graphite] ICE: Segmentation fault mitul dot thakkar at amd dot com
2008-10-21 20:30 ` [Bug middle-end/37886] " mitul dot thakkar at amd dot com
2008-10-22 21:20 ` grosser at gcc dot gnu dot org
2008-10-23  0:30 ` grosser at gcc dot gnu dot org
2008-10-23  1:33 ` sebpop at gmail dot com
2008-10-23 20:05 ` grosser at gcc dot gnu dot org
2008-10-29  4:38 ` grosser 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).