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.
*** This bug has been marked as a duplicate of bug 179558 ***