public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/12753] New: Memory corruption in cpp on bad input
@ 2003-10-24  6:48 hjl at lucon dot org
  2003-10-24  7:39 ` [Bug preprocessor/12753] " hjl at lucon dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: hjl at lucon dot org @ 2003-10-24  6:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Memory corruption in cpp on bad input
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

# /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.


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

* [Bug preprocessor/12753] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
@ 2003-10-24  7:39 ` hjl at lucon dot org
  2003-10-24 12:55 ` [Bug preprocessor/12753] [3.3,3.4 regression] " ehrhardt at mathematik dot uni-ulm dot de
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: hjl at lucon dot org @ 2003-10-24  7:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From hjl at lucon dot org  2003-10-24 06:48 -------
Created an attachment (id=4986)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4986&action=view)
A testcase (foo.c)

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


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

* [Bug preprocessor/12753] [3.3,3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
  2003-10-24  7:39 ` [Bug preprocessor/12753] " hjl at lucon dot org
@ 2003-10-24 12:55 ` ehrhardt at mathematik dot uni-ulm dot de
  2003-10-24 16:48 ` [Bug preprocessor/12753] [3.3/3.4 " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ehrhardt at mathematik dot uni-ulm dot de @ 2003-10-24 12:55 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


ehrhardt at mathematik dot uni-ulm dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-24 11:23:17
               date|                            |
            Summary|Memory corruption in cpp on |[3.3,3.4 regression] Memory
                   |bad input                   |corruption in cpp on bad
                   |                            |input


------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  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.


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

* [Bug preprocessor/12753] [3.3/3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
  2003-10-24  7:39 ` [Bug preprocessor/12753] " hjl at lucon dot org
  2003-10-24 12:55 ` [Bug preprocessor/12753] [3.3,3.4 regression] " ehrhardt at mathematik dot uni-ulm dot de
@ 2003-10-24 16:48 ` pinskia at gcc dot gnu dot org
  2003-12-20 20:23 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-24 16:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3,3.4 regression] Memory |[3.3/3.4 regression] Memory
                   |corruption in cpp on bad    |corruption in cpp on bad
                   |input                       |input


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-24 16:47 -------
>From Phil's regression hunter: Search converges between 2002-06-02-trunk (#80) and 2002-07
-14-trunk (#81).


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

* [Bug preprocessor/12753] [3.3/3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2003-10-24 16:48 ` [Bug preprocessor/12753] [3.3/3.4 " pinskia at gcc dot gnu dot org
@ 2003-12-20 20:23 ` pinskia at gcc dot gnu dot org
  2003-12-24 21:31 ` gdr at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-20 20:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.3


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


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

* [Bug preprocessor/12753] [3.3/3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2003-12-20 20:23 ` pinskia at gcc dot gnu dot org
@ 2003-12-24 21:31 ` gdr at gcc dot gnu dot org
  2003-12-24 21:37 ` zack at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gdr at gcc dot gnu dot org @ 2003-12-24 21:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2003-12-24 21:19 -------
CPP maintainers --
Do any of you think this worth fixing in 3.3.x?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neil at daikokuya dot co dot
                   |                            |uk, zack at codesourcery dot
                   |                            |com


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


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

* [Bug preprocessor/12753] [3.3/3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (4 preceding siblings ...)
  2003-12-24 21:31 ` gdr at gcc dot gnu dot org
@ 2003-12-24 21:37 ` zack at gcc dot gnu dot org
  2003-12-28  0:24 ` stl at caltech dot edu
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: zack at gcc dot gnu dot org @ 2003-12-24 21:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  2003-12-24 21:28 -------
Yes, I do.

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

-- 


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


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

* [Bug preprocessor/12753] [3.3/3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2003-12-24 21:37 ` zack at gcc dot gnu dot org
@ 2003-12-28  0:24 ` stl at caltech dot edu
  2003-12-28  0:25 ` zack at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: stl at caltech dot edu @ 2003-12-28  0:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From stl at caltech dot edu  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>

-- 


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


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

* [Bug preprocessor/12753] [3.3/3.4 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (6 preceding siblings ...)
  2003-12-28  0:24 ` stl at caltech dot edu
@ 2003-12-28  0:25 ` zack at gcc dot gnu dot org
  2004-01-21  4:16 ` [Bug preprocessor/12753] [3.3/3.4/3.5 " gdr at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: zack at gcc dot gnu dot org @ 2003-12-28  0:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  2003-12-27 23:23 -------
Mine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |zack at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug preprocessor/12753] [3.3/3.4/3.5 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (7 preceding siblings ...)
  2003-12-28  0:25 ` zack at gcc dot gnu dot org
@ 2004-01-21  4:16 ` gdr at gcc dot gnu dot org
  2004-01-21  4:27 ` zack at codesourcery dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-01-21  4:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  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


-- 


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


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

* [Bug preprocessor/12753] [3.3/3.4/3.5 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (8 preceding siblings ...)
  2004-01-21  4:16 ` [Bug preprocessor/12753] [3.3/3.4/3.5 " gdr at gcc dot gnu dot org
@ 2004-01-21  4:27 ` zack at codesourcery dot com
  2004-02-15 12:36 ` gdr at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: zack at codesourcery dot com @ 2004-01-21  4:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at codesourcery dot com  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


-- 


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


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

* [Bug preprocessor/12753] [3.3/3.4/3.5 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (9 preceding siblings ...)
  2004-01-21  4:27 ` zack at codesourcery dot com
@ 2004-02-15 12:36 ` gdr at gcc dot gnu dot org
  2004-03-21 18:50 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-02-15 12:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-02-15 12:36 -------
Adjust milestone

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.3                       |3.3.4


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


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

* [Bug preprocessor/12753] [3.3/3.4/3.5 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (10 preceding siblings ...)
  2004-02-15 12:36 ` gdr at gcc dot gnu dot org
@ 2004-03-21 18:50 ` mmitchel at gcc dot gnu dot org
  2004-06-01  4:26 ` zack at gcc dot gnu dot org
  2004-06-09 19:22 ` mmitchel at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-21 18:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  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.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at integrable-solutions
                   |                            |dot net
   Target Milestone|3.3.4                       |3.4.1


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


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

* [Bug preprocessor/12753] [3.3/3.4/3.5 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (11 preceding siblings ...)
  2004-03-21 18:50 ` mmitchel at gcc dot gnu dot org
@ 2004-06-01  4:26 ` zack at gcc dot gnu dot org
  2004-06-09 19:22 ` mmitchel at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-06-01  4:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  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.

-- 


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


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

* [Bug preprocessor/12753] [3.3/3.4/3.5 regression] Memory corruption in cpp on bad input
  2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
                   ` (12 preceding siblings ...)
  2004-06-01  4:26 ` zack at gcc dot gnu dot org
@ 2004-06-09 19:22 ` mmitchel at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-09 19:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-09 19:21 -------
Already fixed -- at least for me.  Reopen if this still occurs.

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


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


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

end of thread, other threads:[~2004-06-09 19:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24  6:48 [Bug preprocessor/12753] New: Memory corruption in cpp on bad input hjl at lucon dot org
2003-10-24  7:39 ` [Bug preprocessor/12753] " hjl at lucon dot org
2003-10-24 12:55 ` [Bug preprocessor/12753] [3.3,3.4 regression] " ehrhardt at mathematik dot uni-ulm dot de
2003-10-24 16:48 ` [Bug preprocessor/12753] [3.3/3.4 " pinskia at gcc dot gnu dot org
2003-12-20 20:23 ` pinskia at gcc dot gnu dot org
2003-12-24 21:31 ` gdr at gcc dot gnu dot org
2003-12-24 21:37 ` zack at gcc dot gnu dot org
2003-12-28  0:24 ` stl at caltech dot edu
2003-12-28  0:25 ` zack at gcc dot gnu dot org
2004-01-21  4:16 ` [Bug preprocessor/12753] [3.3/3.4/3.5 " gdr at gcc dot gnu dot org
2004-01-21  4:27 ` zack at codesourcery dot com
2004-02-15 12:36 ` gdr at gcc dot gnu dot org
2004-03-21 18:50 ` mmitchel at gcc dot gnu dot org
2004-06-01  4:26 ` zack at gcc dot gnu dot org
2004-06-09 19:22 ` mmitchel 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).