[GHC] #11499: Loading temp shared object failed in GHCi

GHC ghc-devs at haskell.org
Sun Jan 31 08:40:19 UTC 2016


#11499: Loading temp shared object failed in GHCi
-------------------------------+---------------------------------------
        Reporter:  alfa07      |                Owner:
            Type:  bug         |               Status:  infoneeded
        Priority:  normal      |            Milestone:
       Component:  GHCi        |              Version:  7.10.3
      Resolution:              |             Keywords:  dynamic linking
Operating System:  MacOS X     |         Architecture:  x86_64 (amd64)
 Type of failure:  GHCi crash  |            Test Case:
      Blocked By:              |             Blocking:
 Related Tickets:  #10458      |  Differential Rev(s):
       Wiki Page:              |
-------------------------------+---------------------------------------

Comment (by trommler):

 Replying to [comment:5 alfa07]:
 > Using patch as Simon suggested fixes issue after recompiling ghc-7.10.3
 with it (rts/Linker.c):
 >
 > {{{
 > -   hdl = dlopen(dll_name, RTLD_LAZY|RTLD_LOCAL); /* see Note
 [RTLD_LOCAL] */
 > +   hdl = dlopen(dll_name, RTLD_LAZY | RTLD_GLOBAL);
 > }}}
 This patch breaks `ghci/scripts ghci058` at least on Linux and this is to
 be expected given ELF symbol resolution semantics. See the note referenced
 in note `RTLD_LOCAL` for a more detailed explanation.

 Did you run `./validate` on MacOS with the proposed patch applied?

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


More information about the ghc-tickets mailing list