
#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