#4034: GHC > 6.10 fails to build on PowerPC / MacOS X Leopard
-------------------------+--------------------------------------------------
Reporter: PHO | Owner:
Type: bug | Status: closed
Priority: low | Milestone: 7.0.1
Component: Compiler | Version: 7.1
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: MacOS X
Blocking: | Architecture: powerpc
Failure: GHCi crash |
-------------------------+--------------------------------------------------
Changes (by PHO):
* failure: Building GHC failed => GHCi crash
Comment:
I just built 7.0.1 with GhcDebugged=YES. The building process succeeded,
but when I run "./inplace/bin/ghc-stage2 --interactive", the following
error occurs:
Running
{{{
./inplace/bin/ghc-stage2 --interactive +RTS -DS
}}}
...in GDB:
{{{
GHCi, version 7.0.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
ghc-stage2: internal error: ASSERTION FAILED: file rts/sm/Sanity.c, line
87
(GHC version 7.0.1 for powerpc_apple_darwin)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
Program received signal SIGABRT, Aborted.
0x97041b50 in __kill ()
(gdb) bt
#0 0x97041b50 in __kill ()
#1 0x970dcc00 in abort ()
#2 0x01f2b074 in rtsFatalInternalErrorFn (s=0x20aa134 "ASSERTION FAILED:
file %
s, line %u\n", ap=0xbfffe22c "\002\n��") at rts/RtsMessages.c:170
#3 0x01f2ac60 in barf (s=0x20aa134 "ASSERTION FAILED: file %s, line
%u\n") at rts/RtsMessages.c:42
#4 0x01f2acdc in _assertFail (filename=0x20aded0 "rts/sm/Sanity.c",
linenum=87) at rts/RtsMessages.c:57
#5 0x01f4f2b4 in checkClosureShallow (p=0xb5ebdff0) at rts/sm/Sanity.c:87
#6 0x01f4f12c in checkSmallBitmap (payload=0x3c76e64, bitmap=126, size=8)
at rts/sm/Sanity.c:52
#7 0x01f4f614 in checkStackFrame (c=0x3c76e58) at rts/sm/Sanity.c:118
#8 0x01f4f960 in checkStackChunk (sp=0x3c76e58, stack_end=0x3c77000) at
rts/sm/Sanity.c:202
#9 0x01f50c44 in checkTSO (tso=0x3c76000) at rts/sm/Sanity.c:546
#10 0x01f33414 in scheduleHandleYield (cap=0x21f8ac0, t=0x3c76000,
prev_what_next=1) at rts/Schedule.c:1152
#11 0x01f31aa4 in schedule (initialCapability=0x21f8ac0, task=0xb0089f40)
at rts/Schedule.c:519
#12 0x01f349c0 in scheduleWaitThread (tso=0x3c80944, ret=0x0,
cap=0x21f8ac0) at rts/Schedule.c:1902
#13 0x01f278e8 in rts_evalLazyIO (cap=0x21f8ac0, p=0x20b1ca0, ret=0x0) at
rts/RtsAPI.c:495
#14 0x01f2aa58 in real_main () at rts/RtsMain.c:66
#15 0x01f2abe4 in hs_main (argc=13, argv=0xbfffe718, main_init=0x16be8
<__stginit_ZCMain>, main_closure=0x20b1ca0) at rts/RtsMain.c:115
#16 0x00001f24 in start ()
(gdb)
}}}
Running GHCi without GhcDebugged=YES also fails with "evacuate: strange
closure type" error. I haven't tried the current darcs HEAD yet.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4034#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs