[GHC] #8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------+------------------------------------- Reporter: juhpetersen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Keywords: | Operating System: Unknown/Multiple Architecture: powerpc | Type of failure: Runtime crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------+------------------------------------- I built ghc-7.8.1 RC2 on ppc Fedora 21 Development with ghc-7.6.3. When I try to run dynamically linked "helloworld", it segfaults. I don't have direct access yet to a ppc box to investigate further. I guess something about the use of shared libraries on ppc is not working properly. {{{ $ cat > hello.hs main = putStrLn "hi" $ ghc -dynamic hello.hs $ ./hello Segmentation fault (core dumped) ./hello }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------------+----------------------------- Reporter: juhpetersen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+----------------------------- Changes (by trommler): * cc: ptrommler@… (added) Comment: Here is a stack trace: {{{ [ 34s] Program received signal SIGSEGV, Segmentation fault. [ 34s] 0x0f77e05c in stg_enter_info () [ 34s] from /usr/lib/ghc-7.8.0.20140228/rts-1.0/libHSrts- ghc7.8.0.20140228.so [ 34s] (gdb) #0 0x0f77e05c in stg_enter_info () [ 34s] from /usr/lib/ghc-7.8.0.20140228/rts-1.0/libHSrts- ghc7.8.0.20140228.so [ 34s] #1 0x0f759510 in scheduleWaitThread () [ 34s] from /usr/lib/ghc-7.8.0.20140228/rts-1.0/libHSrts- ghc7.8.0.20140228.so [ 34s] #2 0x0f7625b4 in rts_evalLazyIO () [ 34s] from /usr/lib/ghc-7.8.0.20140228/rts-1.0/libHSrts- ghc7.8.0.20140228.so [ 34s] #3 0x0f764324 in hs_main () [ 34s] from /usr/lib/ghc-7.8.0.20140228/rts-1.0/libHSrts- ghc7.8.0.20140228.so [ 34s] #4 0x100014dc in main () }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------------------+----------------------------- Reporter: juhpetersen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------------+----------------------------- Comment (by slyfox): I think it's a manifestation of #8024 (and #8857). Can you try to apply a patch on top of 7.8.3 from https://phabricator.haskell.org/D177 (or just try -HEAD) and see if it helps? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------------------+------------------------------ Reporter: juhpetersen | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------------+------------------------------ Changes (by thomie): * status: new => infoneeded -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------------+------------------------------------ Reporter: juhpetersen | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: 8024 | Differential Revisions: -------------------------------------+------------------------------------ Changes (by slyfox): * status: infoneeded => closed * resolution: => fixed * related: => 8024 Comment: Mark as duplicate of #8024 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------------+--------------------------------- Reporter: juhpetersen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: 8024 | Differential Rev(s): Wiki Page: | -------------------------------------+--------------------------------- Changes (by thomie): * status: closed => new * resolution: fixed => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8909: ppc dyn executable compiled with ghc-7.8.1 RC2 segfaults -------------------------------------+--------------------------------- Reporter: juhpetersen | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.1-rc2 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: powerpc Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: 8024 | Differential Rev(s): Wiki Page: | -------------------------------------+--------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8909#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC