[GHC] #8935: Obscure linker bug leads to crash in GHCi
GHC
ghc-devs at haskell.org
Thu May 8 05:55:15 UTC 2014
#8935: Obscure linker bug leads to crash in GHCi
-------------------------------------+------------------------------------
Reporter: simonmar | Owner: trommler
Type: bug | Status: patch
Priority: high | Milestone: 7.8.3
Component: Runtime System | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: GHCi crash | Difficulty: Rocket Science
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by simonmar):
> For libraries (SOs) coming from installed packages everything should be
fine. The have a NEEDED tag for all dependencies and the system linker
will dlopen() them and resolve the symbols.
But won't that reload all the dependencies every time we load a library?
We'll end up with multiple copies of `ghc-prim`, `base`, etc. etc. It's
not just a question of wasted memory, but multiple copies of `base` causes
problems because we have multiple `stdout`s and other CAFs.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8935#comment:43>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list