First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 12753
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Zack Weinberg <zackw@panix.com>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: H.J. Lu <hjl.tools@gmail.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
foo.c A testcase (foo.c) text/plain 2003-10-24 06:48 18.08 KB Edit
foo2.c Slightly reduced testcase application/octet-stream 2003-12-27 21:33 11.20 KB Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 12753 depends on: Show dependency tree
Show dependency graph
Bug 12753 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2003-10-24 11:23 Opened: 2003-10-24 06:46
# /usr/gcc-3.3/bin/gcc -M -O foo.c
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

------- Comment #1 From H.J. Lu 2003-10-24 06:48 -------
Created an attachment (id=4986) [edit]
A testcase (foo.c)

This is the bad input which causes gcc 3.3.2 to dump core.

------- Comment #2 From Christian Ehrhardt 2003-10-24 11:23 -------
Confirmed with 3.3.2-prerelease and 3.4. This is a regression from 3.2.
The trigger is a missing ")" in a macro invokation.

------- Comment #3 From Andrew Pinski 2003-10-24 16:47 -------
From Phil's regression hunter: Search converges between 2002-06-02-trunk (#80)
and 2002-07
-14-trunk (#81).

------- Comment #4 From Gabriel Dos Reis 2003-12-24 21:19 -------
CPP maintainers --
Do any of you think this worth fixing in 3.3.x?

------- Comment #5 From Zack Weinberg 2003-12-24 21:28 -------
Yes, I do.

I will look at this, but I would really appreciate a reduced testcase if possible.

------- Comment #6 From Stephan T. Lavavej 2003-12-27 21:32 -------
I spent a little time chopping things out of the test case. It seems to be 
very sensitive to the size of the file. I gave up after chopping 20 KB out of 
the file.

C:\Temp>gcc -M foo2.c
cc1.exe: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

C:\Temp>

------- Comment #7 From Stephan T. Lavavej 2003-12-27 21:33 -------
Created an attachment (id=5374) [edit]
Slightly reduced testcase

------- Comment #8 From Zack Weinberg 2003-12-27 23:23 -------
Mine.

------- Comment #9 From Gabriel Dos Reis 2004-01-21 04:16 -------
Zack --
I'm going to make a pre-release within two days, do you
think you'll have something ready by then?

Thanks,

-- Gaby

------- Comment #10 From Zack Weinberg 2004-01-21 04:27 -------
Subject: Re:  [3.3/3.4/3.5 regression] Memory
 corruption in cpp on bad input


Sorry, I've been concentrating on the c-decl.c mess in 3.4.

zw

------- Comment #11 From Gabriel Dos Reis 2004-02-15 12:36 -------
Adjust milestone

------- Comment #12 From Mark Mitchell 2004-03-21 18:50 -------
I cannot reproduce this problem in GCC 3.4.0.

Is there a more reliable way of reproducing it?

In any case, I'm retargeting this at 3.4.1.

Gaby and I have already agreed that the 3.4.x target milestones take precedence
over the 3.3.x milestones.  Gaby, please note that this used to be marked as
targeted at 3.3.4, but is now targeted at 3.4.1.

------- Comment #13 From Zack Weinberg 2004-06-01 04:26 -------
IIRC this one was fixed already...?

Has nothing to do with the c-decl.c rewrite, just for the record.

------- Comment #14 From Mark Mitchell 2004-06-09 19:21 -------
Already fixed -- at least for me.  Reopen if this still occurs.

First Last Prev Next    No search results available      Search page      Enter new bug