Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 179561

Summary: GHCi segfaults when calling 'getEnvironment'
Product: Gentoo Linux Reporter: gustavderdrache
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gustavderdrache 2007-05-23 18:28:24 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-23 18:29:41 UTC

*** This bug has been marked as a duplicate of bug 179558 ***