5 msgRe: PATCH COMMITTED: Don't break tests for enum...
2 msghash_rtx and volatile subexpressions
2 msgAny interest in i586-pc-interix3 configuration ...
11 msg[rfc] Moving bbs back to pools
1 msggcc-4.2-20070606 is now available
1 msgdataflow branch merge plans.
4 msg[bug] undefined symbols with -Woverloaded-virtu...
2 msghow to build executable instructions blocks dyn...
1 msggcj java help
4 msgCreating a patch ready for gcc-patches list
29 msguse of %n in genmodes.c causes trouble on Vista
2 msglinking problem with boost

segmentation fault
\ fred.cotton (5 Jun 2007)
. \ Ben Elliston (6 Jun 2007)
. \ Dave Korn (6 Jun 2007)

10 msgSomething weird with cp/decl.c switch statement
3 msgvector compare
3 msgBootstrap failure on ppc64
7 msglibjava is a train wreck.
1 msgRe: Comments for empty for-loop parts (was Re: ...
1 msggcc-4.1-20070604 is now available
6 msgtestsuite trigraphs.c failure due to cygwin <...
Subject:RE: segmentation fault
Group:Gcc
From:Dave Korn
Date:6 Jun 2007


On 05 June 2007 16:49, fred.cotton wrote:

> With apologies for being new:
> In porting a hardware configuration from gcc-3.4.1 to gcc-4.2.0, I'm
> getting the following error message:
>
> In file included from /cygdrive/c/gcc-4.2.0/gcc/crtstuff.c:68:
> /cygdrive/c/gcc-4.2.0/gcc/tsystem.h:53: internal compiler error:
> Segmentation fault.
>
> Lines 52-54 of tsystem.h are:
>
> #ifndef malloc
> extern void *malloc (size_t);
> #endif
>
> If I remove these lines, all the other extern statements fail also.
> What precisely does Segmentation fault mean in this context? Is it
> referring to the underlying Windows XP?

It's a memory-protection error, usually indicating you have dereferenced a NULL pointer or otherwise tried to access an unmapped memory address.


> What sort of compiler, configuration or operating system parameters could
> be the cause?
> Where should I be looking?

Almost certainly your backend is dereferencing a pointer without realising it's NULL at the time. Given the association with extern decls, do you implement a TARGET_ENCODE_SECTION_INFO macro?


cheers,
DaveK
--
Can't think of a witty .sigline today....



© 2004-2008 readlist.com