Skip to contentSkip to conversation

gcc randomly crashes on my PowerBook with recent kernels...

DISCUSSION David Eger 3 participants 4 messages Jan 13, 2005 – Jan 23, 2005 3 messages not in the archive

lore
Share & tools
lore

David Eger

author
#0 lore raw

I apologize for the vagueness of the message, but for all ye TiBook users, over the last couple months of kernels, I've noticed gcc (various versions in the 3.0 series randomly), non-deterministically crashing on large builds.

The builds tend to be fine and complete immediately after a reboot. I've replaced my RAM recently, and the problem happened before and after the replacement so I don't *think* it's the RAM.

Has anyone seen this sort of weird corruption behavior? I don't know where or how to start debugging this. Could be anything... bad drivers, bad builds of gcc.. Any ideas? (and if you suggest d/ling a stock compiler, instructions for doing this in gentoo would be appreciated ;-) )

-David

#1 lore raw

Hi,

Quoted 4 lines · David Eger

I apologize for the vagueness of the message, but for all ye TiBook users, over the last couple months of kernels, I've noticed gcc (various versions in the 3.0 series randomly), non-deterministically crashing on large builds.

Quoted 8 lines

The builds tend to be fine and complete immediately after a reboot. I've replaced my RAM recently, and the problem happened before and after the replacement so I don't *think* it's the RAM.

Has anyone seen this sort of weird corruption behavior? I don't know where or how to start debugging this. Could be anything... bad drivers, bad builds of gcc.. Any ideas? (and if you suggest d/ling a stock compiler, instructions for doing this in gentoo would be appreciated ;-) )

My T2 (www.t2-project.org) PowerPC systems tend to be rock solid - I only once managed to get random memory corruption when I tried out PREEMPTION. BenH mentioned PREEMPTION and ReiserFS (I use) might not play that well - at least not on PowerPC.

I had yet no time to review the affected code myself - however without PREEMPTION all is well.

Yours,

Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
            http://www.exactcode.de | http://www.exactcode.de/t2
            +49 (0)30  255 897 45
#2 lore raw
In reply to David Eger
Quoted 3 lines · David Eger

I apologize for the vagueness of the message, but for all ye TiBook users, over the last couple months of kernels, I've noticed gcc (various versions in the 3.0 series randomly), non-deterministically crashing on large builds.

gcc is a very good hardware checker. :)

I had a gcc crashing problem. Turned out to be RAM timing problem. memtest86 wasn't able to trigger it for me in overnight runs. gcc does it in seconds - if you find a "magic" set of compile options and source file.

As you correctly noticed, yu have more chances of hitting magic in large compiles.

I grabbed crashed gcc's command line from make log and ran it in endless loop.
I had a crash (SIGSEGV due to mangled pointer) with ~10% probability.
--
vda

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#6 lore raw
Quoted 9 lines · René Rebe
Quoted 5 lines · David Eger
Quoted 2 lines

BenH mentioned PREEMPTION and ReiserFS (I use) might not play that well - at least not on PowerPC.

Interesting. I do have Pre-emption on (and I have Reiser compiled, but not in use). Sounds like time to kill it.

Could you reply if you have some recompiled kernel results?

Recompiling my kernel without PREEMPT seems to have fixed my problem... I haven't had a gcc crash badly since...

-dte