Opened 4 years ago

Last modified 13 months ago

#7320 new bug

GHC crashes when building on 32-bit Linux in a Linode

Reported by: benl Owned by: simonmar
Priority: normal Milestone:
Component: Runtime System Version: 7.6.1
Keywords: Cc: tibbe, simonmar
Operating System: Linux Architecture: x86
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Trying to build haskell-src-exts crashes in a 32-bit Linux Linode (under Xen).

GHC 7.0.4 seems ok, but I've tried GHC 7.2.2, 7.4.1 and 7.6.1 and they all either segfault or issue a bad instruction when building. This also happens when building GHC from source.

GHC 7.6.1 crashes more frequently than the others. When run under GDB it usually dies at the same program point (0x093c6263). Running GHC with -v says it's in the 'Tidy Core' stage.

I've tried under the latest Arch, as well as Debian. The Linode has 1GB of real RAM and 4GB of swap, so it shouldn't be running out of memory.

The Linode has been stable otherwise, it runs apache and trac, and has had uptimes of 3 months or more.

Running Ubuntu-32bit under Parallels (using OSX as the host) with the same memory configuration seems fine.

Change History (12)

comment:1 Changed 4 years ago by simonmar

Cc: tibbe added
Component: CompilerRuntime System
difficulty: Unknown
Milestone: 7.6.2
Owner: set to simonmar
Priority: normalhigh

This rings a bell - it sounds similar to @tibbe's problems on his VPS. I'll need to debug it when I have time. @tibbe set me up an account on his VPS but unfortunately it now seems to have gone away...

comment:2 Changed 4 years ago by benl

Sorry I can't make you one on mine anymore. It's a production machine and I had to get it working again, so switched the whole thing to a 64-bit Linux install. I could go back to the 32-bit image by rebooting it, but can't leave it like that for any length of time.

comment:3 Changed 4 years ago by Irene

I reproduce this on my linode, and am willing to help debug. It reproduces essentially 100% for me when I try to build ghc 7.6.1 from source, always faililng at different spots and usually with a segfault.

comment:4 Changed 4 years ago by simonmar

I'll need to debug this. Can you set me up with an account on your linode?

comment:5 Changed 4 years ago by Irene

Of course. Let me know your public ssh key and preferred username. (The box is key-only, no passwords.). Either reply here, or email to irene dot knapp squiggle icloud dot com. I'll make sure you have a gig or so of disk space to work in.

comment:6 Changed 3 years ago by thoughtpolice


Moving to 7.10.1.

comment:7 Changed 2 years ago by gintas

Cc: gintas simonmar added

comment:8 Changed 2 years ago by thoughtpolice

Priority: highnormal

comment:9 Changed 18 months ago by thoughtpolice


Milestone renamed

comment:10 Changed 13 months ago by thomie

Milestone: 8.0.1

comment:11 Changed 13 months ago by gintas

Cc: gintas removed

comment:12 Changed 13 months ago by rwbarton

This was a long time ago; is it still an issue?

Note: See TracTickets for help on using tickets.