Opened 10 years ago

Last modified 7 months ago

#487 new bug (None)

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 (8)

comment:1 Changed 10 years ago by simonmar

  • Architecture set to powerpc
  • Description modified (diff)
  • Operating System set to Linux

comment:2 Changed 10 years ago by simonmar

  • difficulty set to Unknown
  • Version changed from None to 6.4.1

comment:3 Changed 10 years ago by igloo

  • Description modified (diff)
  • Test Case set to N/A

comment:4 Changed 9 years ago by igloo

  • Milestone set to _|_

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 7 years ago by igloo

  • Owner nobody deleted
  • Status changed from assigned to new

comment:6 Changed 6 years ago by simonmar

  • Type of failure set to Runtime crash

comment:7 Changed 7 months 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 7 months ago by erikd

  • Owner set to erikd
Note: See TracTickets for help on using tickets.