#3685: "double free or corruption" error when running Setup.hs with other GHC in
PATH
----------------------------+-----------------------------------------------
Reporter: ajd | Owner: igloo
Type: merge | Status: new
Priority: high | Milestone: 6.12.1
Component: Compiler | Version: 6.11
Resolution: | Keywords:
Difficulty: | Os: Linux
Testcase: | Architecture: x86
Failure: Runtime crash |
----------------------------+-----------------------------------------------
Changes (by simonmar):
* priority: normal => high
* difficulty: =>
* type: bug => merge
* owner: => igloo
* milestone: => 6.12.1
Comment:
Fixed
{{{
Wed Nov 25 04:34:35 PST 2009 Simon Marlow <[email protected]>
* hGetContents: close the handle properly on error
Ignore-this: bc37ff678acc6e547dc390285e056eb9
When hGetContents caught an error it was closing the handle and then
throwing the exception, without updating the handle with the new
closed state. This lead to a double-closed, which was the cause of
*** glibc detected *** ./Setup: double free or corruption
when iconv_close was called twice on the decoder.
See http://hackage.haskell.org/trac/hackage/ticket/609
M ./GHC/IO/Handle/Text.hs -5 +9
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3685#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs