Red Hat Bugzilla – Bug 71656
Segmentation fault occur for large (generated) C programs
Last modified: 2007-04-18 12:45:35 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):
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
Steps to Reproduce:
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.
You dont include the header it references
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.