public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4
@ 2004-12-27 21:30 bsdfan3 at users dot sourceforge dot net
  2004-12-27 21:32 ` [Bug c/19171] " bsdfan3 at users dot sourceforge dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-27 21:30 UTC (permalink / raw)
  To: gcc-bugs

Files that include <sys/reent.h> on i686-pc-cygwin can cause GCC 4 (10-26-04) to
bomb out due to a segfault in the compiler itself. I don't have a backtrace (I
don't know how to get one if the ICE occurs during the bootstrap process itself,
which it does).

-- 
           Summary: <sys/reent.h> causes segfault ICE in GCC 4
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bsdfan3 at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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


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

* [Bug c/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
@ 2004-12-27 21:32 ` bsdfan3 at users dot sourceforge dot net
  2004-12-27 22:08 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-27 21:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-27 21:32 -------
Created an attachment (id=7832)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7832&action=view)
Preprocessed source of the header file in question

This is a preprocessed copy of a file that did nothing else but include
<sys/reent.h>.

-- 


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


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

* [Bug c/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
  2004-12-27 21:32 ` [Bug c/19171] " bsdfan3 at users dot sourceforge dot net
@ 2004-12-27 22:08 ` pinskia at gcc dot gnu dot org
  2004-12-28  1:19 ` [Bug middle-end/19171] " bsdfan3 at users dot sourceforge dot net
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-27 22:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 22:07 -------
10-26-04 is very old, I cannot reproduce it with a cross compiler with today's compiler, can you try a 
new snapshot.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
  2004-12-27 21:32 ` [Bug c/19171] " bsdfan3 at users dot sourceforge dot net
  2004-12-27 22:08 ` pinskia at gcc dot gnu dot org
@ 2004-12-28  1:19 ` bsdfan3 at users dot sourceforge dot net
  2004-12-28  1:20 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-28  1:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-28 01:18 -------
This bug still exists with GCC 4 as of 10-27-04, and I miscategorized this bug.
 It occurs during bootstrap in builds hosted on i686-pc-cygwin.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |middle-end


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (2 preceding siblings ...)
  2004-12-28  1:19 ` [Bug middle-end/19171] " bsdfan3 at users dot sourceforge dot net
@ 2004-12-28  1:20 ` pinskia at gcc dot gnu dot org
  2004-12-28  1:23 ` bsdfan3 at users dot sourceforge dot net
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28  1:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-28 01:20 -------
Do you mean 12-27-04 or 10-27-04?

-- 


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (3 preceding siblings ...)
  2004-12-28  1:20 ` pinskia at gcc dot gnu dot org
@ 2004-12-28  1:23 ` bsdfan3 at users dot sourceforge dot net
  2004-12-28  1:28 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-28  1:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-28 01:23 -------
(In reply to comment #4)
> Do you mean 12-27-04 or 10-27-04?
Sorry, I meant 12-27-04.  The 10 was a typo.



-- 


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (4 preceding siblings ...)
  2004-12-28  1:23 ` bsdfan3 at users dot sourceforge dot net
@ 2004-12-28  1:28 ` pinskia at gcc dot gnu dot org
  2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28  1:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-28 01:28 -------
Mark as unconfirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (5 preceding siblings ...)
  2004-12-28  1:28 ` pinskia at gcc dot gnu dot org
@ 2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
  2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28  1:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (6 preceding siblings ...)
  2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
@ 2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
  2004-12-28  1:31 ` bsdfan3 at users dot sourceforge dot net
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28  1:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-28 01:28 -------
Ok, then I will close this as invalid to ...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (7 preceding siblings ...)
  2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
@ 2004-12-28  1:31 ` bsdfan3 at users dot sourceforge dot net
  2004-12-28  1:59 ` bsdfan3 at users dot sourceforge dot net
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-28  1:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-28 01:31 -------
(In reply to comment #7)
> Mark as unconfirmed.

Ok, does anyone else have Cygwin?

-- 


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (8 preceding siblings ...)
  2004-12-28  1:31 ` bsdfan3 at users dot sourceforge dot net
@ 2004-12-28  1:59 ` bsdfan3 at users dot sourceforge dot net
  2004-12-28  5:02 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-28  1:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-28 01:59 -------
I finally figured out how to get a backtrace from the stage2 compiler, so here
it is (this is from running the posted testcase thru cc1):

--backtrace starts--
Starting program: /home/Lucas/b-gcc/gcc/cc1.exe /home/Lucas/test.i

Program received signal SIGSEGV, Segmentation fault.
0x00583da6 in emit_insn (x=0x101d19a0) at ../../gcc/gcc/emit-rtl.c:4375
4375      rtx last = last_insn;
(gdb) bt
#0  0x00583da6 in emit_insn (x=0x101d19a0) at ../../gcc/gcc/emit-rtl.c:4375
#1  0x00646f9c in ix86_handle_cdecl_attribute (node=0x22e614,
    name=0x101d7a48, args=0x0, flags=0, no_add_attrs=0x22e61b "")
    at ../../gcc/gcc/config/i386/i386.c:1716
#2  0x0040965f in decl_attributes (node=0x22e6f0, attributes=0x101da870,
    flags=0) at ../../gcc/gcc/attribs.c:253
#3  0x00405d9e in yyparse () at c-parse.y:1723
#4  0x004087c2 in c_parse_file () at c-parse.y:2922
#5  0x0047bf62 in c_common_parse_file (set_yydebug=0)
    at ../../gcc/gcc/c-opts.c:1092
#6  0x0049ec9b in compile_file () at ../../gcc/gcc/toplev.c:992
#7  0x004a079e in do_compile () at ../../gcc/gcc/toplev.c:2085
#8  0x004a0801 in toplev_main (argc=2, argv=0x10100f08)
    at ../../gcc/gcc/toplev.c:2117
#9  0x004972e0 in main (argc=2, argv=0x10100f08) at ../../gcc/gcc/main.c:35
--backtrace ends--

-- 


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (9 preceding siblings ...)
  2004-12-28  1:59 ` bsdfan3 at users dot sourceforge dot net
@ 2004-12-28  5:02 ` pinskia at gcc dot gnu dot org
  2004-12-28 14:27 ` bsdfan3 at users dot sourceforge dot net
  2004-12-30  1:25 ` bsdfan3 at users dot sourceforge dot net
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28  5:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-28 05:02 -------
(In reply to comment #9)
> I finally figured out how to get a backtrace from the stage2 compiler, so here
> it is (this is from running the posted testcase thru cc1):

This backtrace does not makes sense as ix86_handle_cdecl_attribute does not call emit_insn,
are you sure you don't have an extra patch which is applied wrong?

-- 


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (10 preceding siblings ...)
  2004-12-28  5:02 ` pinskia at gcc dot gnu dot org
@ 2004-12-28 14:27 ` bsdfan3 at users dot sourceforge dot net
  2004-12-30  1:25 ` bsdfan3 at users dot sourceforge dot net
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-28 14:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-28 14:27 -------
(In reply to comment #10)
> (In reply to comment #9)
> > I finally figured out how to get a backtrace from the stage2 compiler, so here
> > it is (this is from running the posted testcase thru cc1):
> 
> This backtrace does not makes sense as ix86_handle_cdecl_attribute does not
call emit_insn,
> are you sure you don't have an extra patch which is applied wrong?

OK, I updated my CVS to 10-28-04 and I still get this error (same place, too:
the  libgcc2 build is what's failing).  I'll try doing a fresh co.

-- 


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


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

* [Bug middle-end/19171] <sys/reent.h> causes segfault ICE in GCC 4
  2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
                   ` (11 preceding siblings ...)
  2004-12-28 14:27 ` bsdfan3 at users dot sourceforge dot net
@ 2004-12-30  1:25 ` bsdfan3 at users dot sourceforge dot net
  12 siblings, 0 replies; 14+ messages in thread
From: bsdfan3 at users dot sourceforge dot net @ 2004-12-30  1:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bsdfan3 at users dot sourceforge dot net  2004-12-30 01:25 -------
Fresh co as of 10-28-04 works.  It was a patching glitch. =P Thanks!

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

end of thread, other threads:[~2004-12-30  1:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-27 21:30 [Bug c/19171] New: <sys/reent.h> causes segfault ICE in GCC 4 bsdfan3 at users dot sourceforge dot net
2004-12-27 21:32 ` [Bug c/19171] " bsdfan3 at users dot sourceforge dot net
2004-12-27 22:08 ` pinskia at gcc dot gnu dot org
2004-12-28  1:19 ` [Bug middle-end/19171] " bsdfan3 at users dot sourceforge dot net
2004-12-28  1:20 ` pinskia at gcc dot gnu dot org
2004-12-28  1:23 ` bsdfan3 at users dot sourceforge dot net
2004-12-28  1:28 ` pinskia at gcc dot gnu dot org
2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
2004-12-28  1:29 ` pinskia at gcc dot gnu dot org
2004-12-28  1:31 ` bsdfan3 at users dot sourceforge dot net
2004-12-28  1:59 ` bsdfan3 at users dot sourceforge dot net
2004-12-28  5:02 ` pinskia at gcc dot gnu dot org
2004-12-28 14:27 ` bsdfan3 at users dot sourceforge dot net
2004-12-30  1:25 ` bsdfan3 at users dot sourceforge dot net

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).