[GHC] #8376: Static Executable + GHC API (+ Dynamic Linking?) gives Segfault
GHC
ghc-devs at haskell.org
Sat Oct 12 14:11:19 UTC 2013
#8376: Static Executable + GHC API (+ Dynamic Linking?) gives Segfault
----------------------------------+----------------------------------
Reporter: darchon | Owner: simonmar
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: Runtime crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
----------------------------------+----------------------------------
Comment (by int-e):
Replying to [comment:12 nomeata]:
> Could this caused by your patch?
I just encountered the same problem. {{{rts/Linker.c}}} does not yet know
about {{{rts_IsDynamic}}}. Adding one line fixes the problem for me:
{{{
diff --git a/rts/Linker.c b/rts/Linker.c
index f2672d7..116c924 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -1225,6 +1225,7 @@ typedef struct _RtsSymbolVal {
SymI_HasProto(rts_unsafeGetMyCapability) \
SymI_HasProto(rtsSupportsBoundThreads) \
SymI_HasProto(rts_isProfiled) \
+ SymI_HasProto(rts_isDynamic) \
SymI_HasProto(setProgArgv) \
SymI_HasProto(startupHaskell) \
SymI_HasProto(shutdownHaskell) \
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8376#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list