[GHC] #9845: GHC API evaluating some Cabal code fails with SegFault if executable is compiled statically
GHC
ghc-devs at haskell.org
Fri Nov 28 08:46:19 UTC 2014
#9845: GHC API evaluating some Cabal code fails with SegFault if executable is
compiled statically
-------------------------------------+-------------------------------------
Reporter: | Owner:
JeanPhilippeMoresmau | Status: new
Type: bug | Milestone:
Priority: normal | Version: 7.8.3
Component: GHC API | Operating System:
Keywords: | Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: Runtime
Difficulty: Unknown | crash
Blocked By: | Test Case:
Related Tickets: 9480, 8935, 8376 | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
This is code from the dynamic-cabal project, but I've distilled it into an
easier test case. Basically you load a module that calls the Cabal
configure function, and we try to call a function and get the result. This
works fine if the executable is compiled with -dynamic, but segfaults (on
Ubuntu at least) if the executable is static.
I've had that behavior since 7.8.1 and I've seen several similar bugs come
and be fixed, but the issue is still present in 7.8.4 rc1
(ghc-7.8.3.20141119)
I attach the full project, with the cabal file, the Main.hs module that
loads the DynamicCabalQuery.hs module
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9845>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list