Skip to contentSkip to conversation

Re: [Re: gcc: internal compiler error: program cc1 got fatal signal 11]

Re: gcc: internal compiler error: program cc1 got fatal signal 11 Jesse Pollard 6 participants 10 messages Jun 29, 2001 – Jul 2, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

"This is almost always the result of flakiness in your hardware - either RAM (most likely), or motherboard (less likely). "

I cannot understand this. There are many other
stuffs that I compiled with gcc without any problem. Again compilation is only a application. It only parse and gernerates object files. How can RAM or motherboard makes different

It's most likely flackey memory.

Remember- a single bit that dropps can cause the signal 11. It doesn't have to happen consistently either. I had the same problem until I slowed down memory access (that seemd to cover the borderline chip).

The compiler uses different amounts of memory depending on the source file, number of symbols defined (via include headers). When the multiple passes occur simultaneously, there is higher memory pressure, and more of the free space used. One of the pages may flake out. Compiling the kernel puts more pressure on memory than compiling most applications.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: [email protected]

Any opinions expressed are solely my own.

#1 lore raw

--- Jesse Pollard <[email protected]>

Quoted 24 lines · wrote:
Quoted 3 lines

"This is almost always the result of flakiness in

your hardware - either

Quoted 1 line

RAM (most likely), or motherboard (less likely).

"

Quoted 2 lines

I cannot understand

this. There are many other

Quoted 1 line

stuffs that I compiled with gcc without any

problem. Again compilation is only

Quoted 1 line

a application. It only parse and gernerates

object files. How can RAM or

Quoted 1 line

motherboard makes different

It's most likely flackey memory.

Remember- a single bit that dropps can cause the
signal 11. It doesn't have
to happen consistently either. I had the same
problem until I slowed down
memory access (that seemd to cover the borderline
chip).

Quoted 12 lines

The compiler uses different amounts of memory
depending on the source file,
number of symbols defined (via include headers).
When the multiple passes
occur simultaneously, there is higher memory
pressure, and more of the
free space used. One of the pages may flake out.
Compiling the kernel
puts more pressure on memory than compiling most
applications.

-------------------------------------------------------------------------

Quoted 11 lines

Jesse I Pollard, II
Email: [email protected]

Any opinions expressed are solely my own. -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Almost always ?
It seems like gcc is THE ONLY program which gets signal 11
Why the X server doesn't get signal 11 ? Why others programs don't get signal 11 ?

I remember that once Bill Gates was asked about crashes in windows and he said: It's a hardware problem.
It was also a joke on that subject:
Winerr xxx: Hardware problem (it's not our fault, it's not, it's not, it's not, it's not...)

Seems to me like Micro$oft way of handling problems.

We must agree that gcc is full of bugs (xanim does not

run corectly if it is compiled with gcc 2.95.3 and other programs which use floating point calculations do the same (spice 3f5))

Some time ago I installed Linux (Redhat 6.0) on my pc (Cx486 8M RAM) and gcc had a lot of signal 11 (a couple every hour) I was upgrading
the kernel every time there was a new kernel and from 2.2.12(or 14) no more signal 11 (very rare) Is this still a hardware problem ?
Was a bug in kernel ?

I think the last answer is more obvious.(or the gcc had a bug and the kernel -- a workaround).

Sorry for bothering you but in every piece of linux documentation signal 11 seems to be __identic__ with hardware problem.
Bye

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

#2 lore raw

Re: gcc: internal compiler error: program cc1 got fatal signal 11

Quoted 14 lines · you

Almost always ?
It seems like gcc is THE ONLY program which gets signal 11
Why the X server doesn't get signal 11 ?
Why others programs don't get signal 11 ?

I remember that once Bill Gates was asked about crashes in windows and he said: It's a hardware problem.
It was also a joke on that subject:
Winerr xxx: Hardware problem (it's not our fault, it's not, it's not, it's not, it's not...)

Quoted 6 lines

Seems to me like Micro$oft way of handling problems.

We must agree that gcc is full of bugs (xanim does not run corectly if it is compiled with gcc 2.95.3 and other programs which use floating point calculations do the same (spice 3f5))

All versions of gcc have bugs. They generally show up as incorrect complaints about the source code, as generated code that is less than optimal or that is flat out wrong. With this kind of bug, if you compile the program twice you'll get the same (buggy) result.

Sig 11 is a bit different. With a compiler bug causing the sig 11, the problem will happen EVERY time you compile the given file - because the compiler is busted. This kind of problem is detected early in the compiler's life cycle and gets fixed.

Then there are the intermittent sig 11 errors. If the software was broken, the sig 11 would happen whenever you do the same thing. Being able to compile a bunch of files, get a sig 11, compile a bunch more, sig 11, a bunch more ... is a sign that the problem isn't the compiler. Peoples' experience over the years has shown that symptoms of this type are cause by (intermittent) hardware problems.

Why does this affect gcc more than other programs? Because gcc uses gazillions of pointers and bad memory causes bad pointers causes sig 11.

Hope this helps.

David

P.S. Years ago, installing OS/2 on an apparently 100% working system would show similar problems. OS/2 was the first widely used 32 bit operating system on Intel hardware. It exercised the hardware differently from DOS, Windows, etc and flaky memory would make itself known. The usual reaction was "But my system worked fine before OS/2...." The response was "different software exercises the hardware differently and may reveal unsuspected problems".
--------------------------------------------------------

David Relson                   Osage Software Systems, Inc.
[email protected]       Ann Arbor, MI 48103
www.osagesoftware.com          tel:  734.821.8800
#3 lore raw
In reply to szonyi calin
Quoted 5 lines

Almost always ?
It seems like gcc is THE ONLY program which gets signal 11
Why the X server doesn't get signal 11 ? Why others programs don't get signal 11 ?

...

Quoted 6 lines

Some time ago I installed Linux (Redhat 6.0) on my pc (Cx486 8M RAM) and gcc had a lot of signal 11 (a couple every hour) I was upgrading
the kernel every time there was a new kernel and from 2.2.12(or 14) no more signal 11 (very rare) Is this still a hardware problem ?

It could be. One possible way:

1. your system is clogged with dust
2. gcc runs the CPU hard, generating lots of heat
3. the heat causes crashes
4. a new Linux version that sets a Cyrix-specific power-saving mode
5. your heat problems go away, and so do the crashes

Another possible way:

1. you have buggy motherboard or disk hardware
2. when you swap, gcc gets corrupted by the hardware
3. you get a new Linux kernel that has a bug work-around
4. your problems go away

Yet another way:

1. your room is hot, your computer is near a huge motor...
2. you upgrade to Linux 2.2.12 and move your computer
3. soon you realize that the crashes are gone
4. you credit the kernel, but location was the problem

#4 lore raw
In reply to Jesse Pollard
Followup to:  <[email protected]>
By author:    szonyi calin <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 7 lines

Almost always ?
It seems like gcc is THE ONLY program which gets
signal 11
Why the X server doesn't get signal 11 ?
Why others programs don't get signal 11 ?

gcc happens to be one of the best memory testers known to man -- much better than most other programs. A big reason for that is that it accesses lots of memory in funny patterns, *AND* accesses to it are likely to be fatal.

It is just the way it is. gcc doing the signal 11 is HIGHLY correlated with the hardware you are running on, which means it's *usually* hardware-related.

Quoted 10 lines

[... Lots of M$ flames ignored ...]

Some time ago I installed Linux (Redhat 6.0) on my pc (Cx486 8M RAM) and gcc had a lot of signal 11 (a couple every hour) I was upgrading the kernel every time there was a new kernel and from 2.2.12(or 14) no more signal 11 (very rare) Is this still a hardware problem ? Was a bug in kernel ?

I think the last answer is more obvious.(or the gcc had a bug and the kernel -- a workaround).

Most likely is that your *hardware* had a bug and the new kernel a workaround (this is quite common), but without more detail it is very hard to know.

-hpa

Signature · 3 lines
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
#5 lore raw

Hi HPA.

Quoted 6 lines
Quoted 5 lines

Some time ago I installed Linux (Redhat 6.0) on my pc (Cx486 8M RAM) and gcc had a lot of signal 11 (a couple every hour) I was upgrading the kernel every time there was a new kernel and from 2.2.12(or 14) no more signal 11 (very rare) Is this still a hardware problem ? Was a bug in kernel ?

Quoted 6 lines
Quoted 2 lines

I think the last answer is more obvious.(or the gcc had a bug and the kernel -- a workaround).

Most likely is that your *hardware* had a bug and the new kernel a workaround (this is quite common), but without more detail it is very hard to know.

Wasn't 2.2.12 the kernel that included the lock halt bug patch?

Best wishes from Riley.

#6 lore raw
Quoted 3 lines · Riley Williams

Wasn't 2.2.12 the kernel that included the lock halt bug patch?

Perhaps, but is has absolutely nothing to do with the rest of this discussion.

-hpa

#7 lore raw

Hi Peter.

Quoted 4 lines
Quoted 1 line

Wasn't 2.2.12 the kernel that included the lock halt bug patch?

Perhaps, but is has absolutely nothing to do with the rest of this discussion.

The lock halt bug patch was specific to the Cyrix processors (not to be confused with the lock registers patch for the Intel processors, and I noted that the processor in question was a Cyrix one, hence the comment.

Best wishes from Riley.

#8 lore raw
Quoted 4 lines · Riley Williams

Hi Peter.

Quoted 1 line
Quoted 1 line

Wasn't 2.2.12 the kernel that included the lock halt bug patch?

Quoted 8 lines
Quoted 2 lines

Perhaps, but is has absolutely nothing to do with the rest of this discussion.

The lock halt bug patch was specific to the Cyrix processors (not to be confused with the lock registers patch for the Intel processors, and I noted that the processor in question was a Cyrix one, hence the comment.

Oh. Sorry, I don't know about "lock halt" and its effects. However, if it refers to the instruction sequence LOCK HLT I find it hard to believe it would have the symptoms described.

-hpa

#9 lore raw

Hi Peter.

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Wasn't 2.2.12 the kernel that included the lock halt bug patch?

Perhaps, but is has absolutely nothing to do with the rest of this discussion.

Quoted 8 lines
Quoted 4 lines

The lock halt bug patch was specific to the Cyrix processors (not to be confused with the lock registers patch for the Intel processors, and I noted that the processor in question was a Cyrix one, hence the comment.

Oh. Sorry, I don't know about "lock halt" and its effects. However, if it refers to the instruction sequence LOCK HLT I find it hard to believe it would have the symptoms described.

I don't have the paperwork to hand, and my memory isn't brilliant, but the bug was something along the lines of Cyrix processors trashing the SP if the instruction preceding (or following, I'm not sure which) a HLT opcode was locked, and the patch was to remove some instances in the kernel source where that occurred.

It's quite possibly unrelated, but...

Best wishes from Riley.