When using ghci to load the System.Environment module and subsequently calling "getEnvironment" at the command line, ghci segfaults. Other functions in the module work correctly, but calling "getEnvironment" at any time will cause it to crash. Reproducible: Always Steps to Reproduce: 1. Start ghci 2. Enter ":m System.Environment" 3. Enter "getEnvironment" Actual Results: ghci segfaults Expected Results: The special variable "it" in ghci's environment should be updated with the return value of getEnvironment (something like the following: [("DISPLAY", ":0.0"), ("SHELL", "/bin/bash")] ) The presence of other modules does not affect this bug; modules may be loaded before and after (or both) without altering its behavior.
No idea whatsover what's ghci; reopen with exact ebuild and version.
*** Bug 179561 has been marked as a duplicate of this bug. ***
Reopened with ebuild name and version as noted in comment #1.
I can reproduce this on amd64 for ghc-6.4.2 and ghc-6.6. I'll see if it's fixed in 6.6.1 or is known upstream.
This bug is recorded upstream: http://hackage.haskell.org/trac/ghc/ticket/781
We can't fix this one ourselves I'm afraid. We'll just have to wait for upstream to do it in some future release.