[GHC] #8935: Obscure linker bug leads to crash in GHCi

GHC ghc-devs at haskell.org
Mon May 26 11:11:42 UTC 2014


#8935: Obscure linker bug leads to crash in GHCi
-------------------------------------+------------------------------------
        Reporter:  simonmar          |            Owner:  simonmar
            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:
-------------------------------------+------------------------------------
Changes (by trommler):

 * owner:  trommler => simonmar


Comment:

 The attached patches change the way shared libraries are loaded (dlopen)
 by the runtime system and
 the way temporary shared libraries are linked for files compiled to object
 code in GHCi.

 The first patch
 [https://ghc.haskell.org/trac/ghc/attachment/ticket/8935/0001-Fix-GHCi-
 crash-on-access-to-process-environment.patch] implements the changes for
 Linux and I validated those on x86_64 (openSUSE 13.1). The second patch
 [https://ghc.haskell.org/trac/ghc/attachment/ticket/8935/0001-Fix-GHCi-
 linking-of-files-compiled-to-object-code.patch] might be needed for OS X.
 This patch is
 not validated as I do not have access to an OS X machine at the moment.

 Simon, please have a look at the patches and the commit messages and let
 me know what could be improved.

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


More information about the ghc-tickets mailing list