Bug 19974

Summary: cpp -A segfaults
Product: [Retired] Red Hat Linux Reporter: Dmitry V. Levin <redhat>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-30 15:47:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dmitry V. Levin 2000-10-28 23:26:44 UTC
$ 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 15:47:06 UTC
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.