[GHC] #13501: TH segmentation fault on Linux when calling function from another package
GHC
ghc-devs at haskell.org
Thu Mar 30 10:19:25 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: |
-------------------------------------+-------------------------------------
Description changed by jmaki:
Old description:
> The bug was hit when using Buck (buckbuild.com) to build. I had two
> packages, A containing a
> single module with a TH function of type `TH.Q [TH.Dec]` and module B
> importing A it and calling that function at top-level. I've attached a
> tarball that reproduces the problem.
>
> I've verified that the problem occurs with 7.10.3, 8.0.2 and a semi-
> recent GHC HEAD from @bitonic.
> The issue doesn't occur on macOS and does not occur when the modules are
> in a single package or if the package is compiled as a shared library.
> The problem also does not occur when using stack, so this is likely
> related to how buck creates packages.
New description:
The bug was hit when using Buck (buckbuild.com) to build. I had two
packages, A containing a
single module with a TH function of type `TH.Q [TH.Dec]` and module B
importing A it and calling that function at top-level. I've attached a
tarball that reproduces the problem using just 'ghc', 'ghc-pkg' and 'ar'.
I've verified that the problem occurs with 7.10.3, 8.0.2 and a semi-recent
GHC HEAD from @bitonic.
The issue doesn't occur on macOS and does not occur when the modules are
in a single package or if the package is compiled as a shared library. The
problem also does not occur when using stack, so this is likely related to
how buck creates packages.
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13501#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list