Internal error: Segmentation fault (program cc1plus)
Marc Oude Kotte
moudekotte@khaeon.nl
Tue Mar 29 11:58:00 GMT 2005
Hi Ian,
Thanks for your reply. I removed the .gch files, and to be sure added -H
to get a list of all used header files. The list contained a whooping
557 header files for a single cpp file, but contained no gch files.
Still gcc crashes with the exact same error. I then tried changing the
exec-shield-randomize value, but to no avail. So I tried:
- exec-shield-randomize = 1 and PCH
- exec-shield-randomize = 1 and no PCH
- exec-shield-randomize = 0 and PCH
- exec-shield-randomize = 0 and no PCH
but all failed... I guess I better add a bug to bugzilla, though I doubt
if it's any use, since I cannot supply any source code (just a mention
that it crashes). In the meantime, any other suggestions?
Thanks in advance,
Marc
-----Original Message-----
From: Ian Lance Taylor [mailto:ian@airs.com]
Sent: vrijdag 25 maart 2005 20:53
To: Marc Oude Kotte
Cc: gcc-help@gcc.gnu.org
Subject: Re: Internal error: Segmentation fault (program cc1plus)
"Marc Oude Kotte" <moudekotte@khaeon.nl> writes:
> I'm new to this list so I hope I'm posting this on the right list :)
You are.
> Can you guys give me some hints/tips on what I might do to prevent gcc
> from crashing? The output above is the result of trying to compile a
> source file, but when I try to compile a precompiled header gcc
crashes
> with the exact same message.
If the crash only happens when using precompiled headers, then try
turning off exec-shield-randomize, which I believe you do by writing 0
to the file /proc/sys/kernel/exec-shield-randomize or by editing
sysctl.conf. For more information, see:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14206
http://gcc.gnu.org/ml/gcc/2004-03/msg00201.html
If the crash happens when no precompiled headers are seen, then please
file a bug report at http://gcc.gnu.org/bugzilla/. See:
http://gcc.gnu.org/bugs.html
Ian
More information about the Gcc-help
mailing list