public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37913]  New: internal compiler error: Segmentation fault
@ 2008-10-25  8:55 mhx-perl at gmx dot net
  2008-10-25  8:57 ` [Bug c/37913] " mhx-perl at gmx dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mhx-perl at gmx dot net @ 2008-10-25  8:55 UTC (permalink / raw)
  To: gcc-bugs

mhx@r2d2 $ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.4-20081024/configure --program-suffix=-4.4
--prefix=/home/mhx/gcc/gcc-4.4-20081024 --enable-languages=c,c++ --disable-nls
Thread model: posix
gcc version 4.4.0 20081024 (experimental) (GCC) 

mhx@r2d2 $ gcc -c test.i

mhx@r2d2 $ gcc -O2 -c test.i
IO.c: In function 'XS_IO__Handle_setvbuf':
IO.c:835: 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.


-- 
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mhx-perl at gmx dot net
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c/37913] internal compiler error: Segmentation fault
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
@ 2008-10-25  8:57 ` mhx-perl at gmx dot net
  2008-10-25  9:48 ` [Bug middle-end/37913] [4.4 Regression] " ubizjak at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mhx-perl at gmx dot net @ 2008-10-25  8:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mhx-perl at gmx dot net  2008-10-25 08:56 -------
Created an attachment (id=16539)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16539&action=view)
Preprocessed source that triggers ICE/segfault


-- 


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


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

* [Bug middle-end/37913] [4.4 Regression] internal compiler error: Segmentation fault
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
  2008-10-25  8:57 ` [Bug c/37913] " mhx-perl at gmx dot net
@ 2008-10-25  9:48 ` ubizjak at gmail dot com
  2008-10-25 10:15 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2008-10-25  9:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ubizjak at gmail dot com  2008-10-25 09:46 -------
Confirmed on x86_64-pc-linux-gnu:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004c6e04 in link_block (b=0x7fa2cf6fba20, after=0x7fa2cf6fb840) at
../../gcc-svn/trunk/gcc/cfg.c:153
\x1a\x1a/home/uros/gcc-svn/trunk/gcc/cfg.c:153:4316:beg:0x4c6e04
Missing separate debuginfos, use: debuginfo-install glibc.x86_64
(gdb) bt
#0  0x00000000004c6e04 in link_block (b=0x7fa2cf6fba20, after=0x7fa2cf6fb840)
at ../../gcc-svn/trunk/gcc/cfg.c:153
#1  0x00000000006e9bc6 in create_bb (h=<value optimized out>, e=<value
optimized out>, after=0x7fa2cf6fb840) at ../../gcc-svn/trunk/gcc/tree-cfg.c:401
#2  0x00000000004cd443 in create_basic_block (head=0x7fa2cf6fba20,
end=0x7fa2cf6fb840, after=0x0) at ../../gcc-svn/trunk/gcc/cfghooks.c:611
#3  0x00000000006ec7c5 in gimple_split_block (bb=0x7fa2cf6fba20,
stmt=0x7fa2cf6fb840) at ../../gcc-svn/trunk/gcc/tree-cfg.c:4839
#4  0x00000000004cd4cf in split_block (bb=0x7fa2cf6fb840, i=0x7fa2cf6fb840) at
../../gcc-svn/trunk/gcc/cfghooks.c:432
#5  0x00000000006f8ba1 in split_bbs_on_noreturn_calls () at
../../gcc-svn/trunk/gcc/tree-cfgcleanup.c:492
#6  0x00000000006fa060 in cleanup_tree_cfg () at
../../gcc-svn/trunk/gcc/tree-cfgcleanup.c:572

/* Link block B to chain after AFTER.  */
void
link_block (basic_block b, basic_block after)
{
  b->next_bb = after->next_bb;
  b->prev_bb = after;
  after->next_bb = b;
  b->next_bb->prev_bb = b;    <<< here
}


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |middle-end
     Ever Confirmed|0                           |1
 GCC target triplet|i686-pc-linux-gnu           |
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-25 09:46:53
               date|                            |
            Summary|internal compiler error:    |[4.4 Regression] internal
                   |Segmentation fault          |compiler error: Segmentation
                   |                            |fault


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


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

* [Bug middle-end/37913] [4.4 Regression] internal compiler error: Segmentation fault
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
  2008-10-25  8:57 ` [Bug c/37913] " mhx-perl at gmx dot net
  2008-10-25  9:48 ` [Bug middle-end/37913] [4.4 Regression] " ubizjak at gmail dot com
@ 2008-10-25 10:15 ` ubizjak at gmail dot com
  2008-10-27 10:43 ` [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153 rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2008-10-25 10:15 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]



------- Comment #3 from ubizjak at gmail dot com  2008-10-25 10:14 -------
Minimized testcase:

--cut here--
void Perl_croak (void) __attribute__ ((noreturn));

static int __attribute__ ((noreturn))
not_here (void)
{
  Perl_croak ();
}

void XS_IO__Handle_setvbuf (void)
{
  int i = not_here ();
}
--cut here--

gcc -O2 pr37913.c:

pr37913.c: In function ‘XS_IO__Handle_setvbuf’:
pr37913.c:12: internal compiler error: Segmentation fault
Please submit a full bug report,
<etc>


-- 


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


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

* [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
                   ` (2 preceding siblings ...)
  2008-10-25 10:15 ` ubizjak at gmail dot com
@ 2008-10-27 10:43 ` rguenth at gcc dot gnu dot org
  2008-10-28 13:10 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-27 10:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
                   ` (3 preceding siblings ...)
  2008-10-27 10:43 ` [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153 rguenth at gcc dot gnu dot org
@ 2008-10-28 13:10 ` jakub at gcc dot gnu dot org
  2008-10-29 15:20 ` jakub at gcc dot gnu dot org
  2008-10-29 15:22 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-28 13:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |10/msg01190.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-10-25 09:46:53         |2008-10-28 13:09:04
               date|                            |


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


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

* [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
                   ` (4 preceding siblings ...)
  2008-10-28 13:10 ` jakub at gcc dot gnu dot org
@ 2008-10-29 15:20 ` jakub at gcc dot gnu dot org
  2008-10-29 15:22 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-29 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-10-29 15:19 -------
Subject: Bug 37913

Author: jakub
Date: Wed Oct 29 15:19:24 2008
New Revision: 141426

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141426
Log:
        PR middle-end/37913
        * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
        that haven't been removed yet.

        * gcc.c-torture/compile/pr37913.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr37913.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-cfgcleanup.c


-- 


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


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

* [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153
  2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
                   ` (5 preceding siblings ...)
  2008-10-29 15:20 ` jakub at gcc dot gnu dot org
@ 2008-10-29 15:22 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-29 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-10-29 15:21 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-25  8:55 [Bug c/37913] New: internal compiler error: Segmentation fault mhx-perl at gmx dot net
2008-10-25  8:57 ` [Bug c/37913] " mhx-perl at gmx dot net
2008-10-25  9:48 ` [Bug middle-end/37913] [4.4 Regression] " ubizjak at gmail dot com
2008-10-25 10:15 ` ubizjak at gmail dot com
2008-10-27 10:43 ` [Bug middle-end/37913] [4.4 Regression] ICE: Segmentation fault in link_block, cfg.c:153 rguenth at gcc dot gnu dot org
2008-10-28 13:10 ` jakub at gcc dot gnu dot org
2008-10-29 15:20 ` jakub at gcc dot gnu dot org
2008-10-29 15:22 ` jakub 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).