[GHC] #9920: Segfault in arm binary
GHC
ghc-devs at haskell.org
Tue Dec 23 02:31:03 UTC 2014
#9920: Segfault in arm binary
-------------------------------------------+---------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: Runtime crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------------+---------------------------
Comment (by erikd):
The function `stg_init_finish` is defined in `rts/StgStartup.cmm` as:
{{{
stg_init_finish /* no args: explicit stack layout */
{
jump StgReturn [];
}
}}}
and the generated assembly (from a different binary) looks like:
{{{
0x211fc4 <stg_init_finish$def> ldr r5, [r4, #792] ; 0x318
0x211fc8 <stg_init_finish$def+4> ldr r0, [r5], #4
}}}
but when I step through the code, it looks like the first of these two
instructions are not executed. Howver, if I set a breakpoint at address
`0x211fc4` it does indeed halt there.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9920#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list