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

GHC ghc-devs at haskell.org
Mon May 5 18:30:49 UTC 2014


#8935: Obscure linker bug leads to crash in GHCi
-------------------------------------+------------------------------------
        Reporter:  simonmar          |            Owner:  simonmar
            Type:  bug               |           Status:  infoneeded
        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 dagit):

 Hmm...I still don't see the flag you're looking for.

 {{{
 $ readelf -d /usr/lib64/libgmp.so.10

 Dynamic section at offset 0x6dce0 contains 27 entries:
   Tag        Type                         Name/Value
  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
  0x000000000000000e (SONAME)             Library soname: [libgmp.so.10]
  0x000000000000000c (INIT)               0x31fba0aab8
  0x000000000000000d (FINI)               0x31fba5e5f0
  0x0000000000000019 (INIT_ARRAY)         0x31fbc6d8e0
  0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
  0x000000000000001a (FINI_ARRAY)         0x31fbc6d8e8
  0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
  0x000000006ffffef5 (GNU_HASH)           0x31fba001f0
  0x0000000000000005 (STRTAB)             0x31fba05170
  0x0000000000000006 (SYMTAB)             0x31fba01570
  0x000000000000000a (STRSZ)              10633 (bytes)
  0x000000000000000b (SYMENT)             24 (bytes)
  0x0000000000000003 (PLTGOT)             0x31fbc6e000
  0x0000000000000002 (PLTRELSZ)           8232 (bytes)
  0x0000000000000014 (PLTREL)             RELA
  0x0000000000000017 (JMPREL)             0x31fba08a90
  0x0000000000000007 (RELA)               0x31fba08070
  0x0000000000000008 (RELASZ)             2592 (bytes)
  0x0000000000000009 (RELAENT)            24 (bytes)
  0x000000006ffffffe (VERNEED)            0x31fba08000
  0x000000006fffffff (VERNEEDNUM)         1
  0x000000006ffffff0 (VERSYM)             0x31fba07afa
  0x000000006ffffff9 (RELACOUNT)          52
  0x000000006ffffdf8 (CHECKSUM)           0xcc8edcb1
  0x000000006ffffdf5 (GNU_PRELINKED)      2013-12-20T11:44:15
  0x0000000000000000 (NULL)               0x0
 }}}

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


More information about the ghc-tickets mailing list