Opened 12 years ago

Closed 20 months ago

#487 closed bug (fixed)

powerpc/linux segfaulting binaries

Reported by: dons Owned by: erikd
Priority: normal Milestone:
Component: Compiler Version: 6.4.1
Keywords: Cc: erikd
Operating System: Linux Architecture: powerpc
Type of failure: Runtime crash Test Case: N/A
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

(Just so we don't forget) On powerpc/linux both yi and hmp3 segfault immediately when built the -fvia-C or -fasm ways, with (in the case of hmp3):

(gdb) where
#0  0x100529d4 in __stginit_Binary_ ()
#1  0x1046ed78 in StgRun ()
#2  0x104671e0 in hs_add_root ()
#3  0x10467128 in startupHaskell ()
#4  0x10464f18 in main ()

and in stginit_Main_() with yi.

They die before any code in Main.main is executed. Not much other info seems available. Both these applications are built with the ncurses binding, and this appears to be the same problem repored to the lists back in June 05 by J. Bobbio:

A test case is attached to that mail. To reproduce the hmp3 crash:

$ darcs get --partial

And follow the cabalised build process. Both applications work on apple/powerpc, interestingly enough.

-- Don

Change History (9)

comment:1 Changed 12 years ago by simonmar

Architecture: powerpc
Description: modified (diff)
Operating System: Linux

comment:2 Changed 12 years ago by simonmar

difficulty: Unknown
Version: None6.4.1

comment:3 Changed 11 years ago by igloo

Description: modified (diff)
Test Case: N/A

comment:4 Changed 11 years ago by igloo

Milestone: _|_

This sounds like a bug in the registerised powerpc/Linux port, which I don't think is being actively worked on, so I'm setting the milestone to _|_.

comment:5 Changed 9 years ago by igloo

Owner: nobody deleted
Status: assignednew

comment:6 Changed 8 years ago by simonmar

Type of failure: Runtime crash

comment:7 Changed 2 years ago by erikd

Cc: erikd added

Using ghc 7.10.2 (patched with two recent fixes from git HEAD) on powerpc/linux, I just set up a cabal sandbox and after installing required C libraries was able to do cabal install yi and then actually run it.

I didn't do any serious editing with it, but it ran without a problem.

I'm going to test this again with either the 7.10.3 release (if it happens) or the 8.0 release and then close it if all is still good.

comment:8 Changed 2 years ago by erikd

Owner: set to erikd

comment:9 Changed 20 months ago by erikd

Resolution: Nonefixed
Status: newclosed

Yep, builds fine with 7.10.3. Closing this.

Note: See TracTickets for help on using tickets.