[GHC] #12152: panic: Loading temp shared object failed

GHC ghc-devs at haskell.org
Fri Jun 10 22:27:30 UTC 2016


#12152: panic: Loading temp shared object failed
-------------------------------------+-------------------------------------
        Reporter:  crockeea          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.8.1
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHCi crash        |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * version:  7.10.3 => 7.8.1


Comment:

 Testcase for comment:6:

 a.c:
 {{{#!c
 int x;
 }}}

 b.c:
 {{{#!c
 extern int x;

 int f(void) {
     return x;
 }
 }}}

 {{{
 $ ghc -c a.c -fPIC && ghc -c b.c -fPIC
 }}}

 ok:
 {{{
 $ ghci a.o b.o
 Prelude>
 }}}

 not ok:
 {{{
 $ ghci b.o a.o
 ghc: panic! (the 'impossible' happened)
   (GHC version 8.0.1 for x86_64-unknown-linux):
         Loading temp shared object failed: /tmp/ghc19123_0/libghc_1.so:
 undefined symbol: x
 }}}

 I can not reproduce the problem on Windows (`DYNAMIC_GHC_PROGRAMS=NO`).

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


More information about the ghc-tickets mailing list