Bug 19974 - cpp -A segfaults
cpp -A segfaults
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-10-28 19:26 EDT by Dmitry V. Levin
Modified: 2007-04-18 12:29 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-30 10:47:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dmitry V. Levin 2000-10-28 19:26:44 EDT
$ cpp -A blabla </dev/null
cpp: Internal error: Segmentation fault (program cpp0)

Problem in gcc/cpplib.c, function do_assert,
dereferencing null pointer.

Bug still exists in current CVS tree.
I'm not gcc hacker, so reporting here.
Comment 1 Jakub Jelinek 2000-10-30 10:47:06 EST
Actually, it seems this segfault went away in CVS with 2000-10-28
CPP lexer rewrite.
As I don't trust that shiny new lever yet though, I wrote a fix for this
for the old lexer and will be testing it with other changes in gcc-2.96-62.

Note You need to log in before you can comment on or make changes to this bug.