[GHC] #10001: GHC crash trying to build a project within Nix-shell

GHC ghc-devs at haskell.org
Mon Apr 11 15:54:23 UTC 2016


#10001: GHC crash trying to build a project within Nix-shell
-------------------------------------+-------------------------------------
        Reporter:  wolftune          |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.8.4
      Resolution:  invalid           |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  9825              |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by siddhanathan):

 * status:  infoneeded => closed
 * resolution:   => invalid


Comment:

 So turns out `TMPDIR` was not set by default on my machine (using Ubuntu),
 and in such situations, nix defaults to using a temporary directory in
 `/run` which causes the panic. Setting `TMPDIR` to `/tmp` should fix the
 issue.

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


More information about the ghc-tickets mailing list