[GHC] #13501: TH segmentation fault on Linux when calling function from another package

GHC ghc-devs at haskell.org
Thu Mar 30 16:05:47 UTC 2017


#13501: TH segmentation fault on Linux when calling function from another package
-------------------------------------+-------------------------------------
        Reporter:  jmaki             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by jmaki):

 Switching to link-style 'static_pic' in buck fixes the issue. Difference
 to "repro":
 {{{
 -ghc -no-link -package-name foo -i Foo.hs -Wall -Werror
 +ghc -fPIC -dynamic -hisuf dyn_hi -no-link -package-name foo -i Foo.hs
 -Wall -Werror

 -ghc -no-link -package-name bar -package-db ../foo/pkg -package foo \
 +ghc -fPIC -dynamic -no-link -package-name bar -package-db ../foo/pkg
 -package foo-1.0.0 \
     Bar.hs
 }}}

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


More information about the ghc-tickets mailing list