#2972: ppc ghci segfaults at startup
------------------------+---------------------------------------------------
Reporter: cemeyer | Owner: erikd
Type: bug | Status: new
Priority: normal | Milestone: _|_
Component: GHCi | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty: Unknown
Os: Linux | Blocking:
Architecture: powerpc | Failure: GHCi crash
------------------------+---------------------------------------------------
Comment(by erikd):
I've made some progress. I have:
- `GhcDebugged=YES` appended to mk/build.mk
- linux kernel parameter `/proc/sys/kernel/randomize_va_space` set to
0.
The gdb command line I'm using is:
{{{
gdb --args inplace/lib/ghc-stage2 +RTS -Dl -DS -RTS -Binplace/lib
--interactive 2>&1 | tee gdb.txt
}}}
and when run it I get:
{{{
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf71ff490 (LWP 7537)]
0xf51cad7c in ?? ()
(gdb) bt
#0 0xf51cad7c in ?? ()
#1 0x11ba6708 in stg_ap_v_info ()
#2 0x11b714d8 in schedule (initialCapability=0x0, task=0xf0000) at
rts/Schedule.c:454
(gdb) info registers
r0 0x11ba6708 297428744
r1 0xf71fcbd0 4146056144
r2 0xf7206930 4146096432
r3 0x3 3
r4 0x1 1
r5 0x2 2
r6 0x0 0
r7 0xfd9ecb0 265940144
r8 0xd032 53298
r9 0x2 2
r10 0x11ba0434 297403444
r11 0xf71fcbd0 4146056144
r12 0x11ba428c 297419404
r13 0x4 4
r14 0xf55f97ab 4116682667
r15 0xf7367a6c 4147542636
r16 0xf7367a58 4147542616
r17 0xffffbcd0 4294950096
r18 0x11e7ca48 300403272
r19 0x11b7b5f8 297252344
r20 0x3 3
r21 0xf7ffe018 4160741400
r22 0xf73679c4 4147542468
r23 0x4 4
r24 0xf73676ac 4147541676
r25 0xf7511168 4149285224
r26 0xf7367a58 4147542616
r27 0x11e5e6d0 300279504
r28 0x2 2
r29 0xf751116c 4149285228
r30 0xc 12
r31 0xf51cad7c 4112297340
pc 0xf51cad7c 0xf51cad7c
msr 0x1000d032 268488754
cr 0x44004582 1140868482
lr 0x11ba6708 0x11ba6708 <stg_ap_v_info+852>
ctr 0xf51cad7c 4112297340
xer 0x0 0
orig_r3 0x11e7ca80 300403328
trap 0x400 1024
}}}
Searching for the address `0xf51cad7c` in the file `gdb.txt` I find this:
{{{
addOTabName(GLOB): 0xf51cad7c libraries/base/dist-
install/build/HSbase-4.4.0.0.o base_GHCziBase_thenIO_info
}}}
I have found the function `thenIO` but I'm not sure what the ''''_info''''
part of the function name is about.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2972#comment:15>
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