[GHC] #8376: Static Executable + GHC API (+ Dynamic Linking?) gives Segfault

GHC ghc-devs
Thu Oct 3 09:03:55 UTC 2013


#8376: Static Executable + GHC API (+ Dynamic Linking?) gives Segfault
----------------------------------+----------------------------------
        Reporter:  darchon        |            Owner:
            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 darchon):

 Replying to [comment:6 simonmar]:
 > The problem is not in Haddock, it's the GHC API.  GHC's linker is using
 dynamic linking even when the program using the GHC API is linked
 statically, because it is using the value of `DYNAMIC_GHC_PROGRAMS`, which
 is set when GHC is built.
 Indeed, I initially noticed the bug in my own program that uses the GHC
 API. I just reference `haddock` in the bug report as it is such a widely
 used tool.

 If the problem is not fixed before the release of 7.8.1, perhaps it could
 at least be mentioned in the release notes that it is advised that
 executables (transitively) using the GHC API should be linked dynamically?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8376#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list