Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 71656 - Segmentation fault occur for large (generated) C programs
Segmentation fault occur for large (generated) C programs
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-08-16 06:10 EDT by Need Real Name
Modified: 2007-04-18 12:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-01 11:57:38 EDT
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 Need Real Name 2002-08-16 06:10:15 EDT
Description of Problem:

Code that can be compiled without optimisation causes a segmentation fault
to occur with optimisation.

The same kind of code, only longer, will eventually also generate a
segmentation fault even without optimisation

Version-Release number of selected component (if applicable):

gcc 2.96

How Reproducible:

With the prompt set to `types XXX>' the following illustrates the problem

types 113> gcc -O -c glue.c
glue.c: In function `__PROC__':
glue.c:1700: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
types 114> gcc -c glue.c
types 115> 

Steps to Reproduce:

Actual Results:

Expected Results:

Additional Information:

The code can be found at


and a bigger version of it in bigglue.c, which causes an ordinary 
compilation to fail.

The symptoms seem to indicate a problem associated with table sizes.

Since the code is generated by a program, it is not attractive to 
break it up in smaller parts.
Comment 1 Alan Cox 2002-12-15 17:39:13 EST
You dont include the header it references
Comment 2 Vladimir Makarov 2004-10-01 11:57:38 EDT
Unfortunately, we did not get header files to reporduce the bug.  Gcc
2.96 is too old now.  Its release cycle was finished long ago. 
Therefore I am closing the bug.  If it is still important the customer
could reopen it.

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