Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179561 - GHCi segfaults when calling 'getEnvironment'
Summary: GHCi segfaults when calling 'getEnvironment'
Status: VERIFIED DUPLICATE of bug 179558
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 18:28 UTC by gustavderdrache
Modified: 2007-05-23 18:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***