[GHC] #7314: GHCi 64-bit OS X segfaults on interaction with C-libraries
GHC
cvs-ghc at haskell.org
Tue Oct 9 12:14:13 CEST 2012
#7314: GHCi 64-bit OS X segfaults on interaction with C-libraries
------------------------+---------------------------------------------------
Reporter: darchon | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords: GHCi external library 64-bit
Os: MacOS X | Architecture: x86_64 (amd64)
Failure: GHCi crash | Testcase:
Blockedby: | Blocking:
Related: |
------------------------+---------------------------------------------------
I'm experiencing spurious behaviour (segfaults sometimes) using GHCi when
working with code that interacts with C-libraries. It seems to be an OS X
only bug.
The spurious behaviour is as follows:[[BR]][[BR]]
OS X 10.8 (gcc 4.2.1, clang 4.0):[[BR]]
- 32-bit: interpreted and compiled work correctly[[BR]]
- 64-bit: only compiled code works correctly, interpreted code segfaults
(11)
OS X 10.6 (gcc 4.2.1, XCode 3.2.6):[[BR]]
- 32-bit: interpreted and compiled code work correctly[[BR]]
- 64-bit: interpreted and compiled code work correctly
Additionally (OS X 10.8):
When I run 'ghci' from inside 'gdb' (to find the origin for the segfault),
everything works fine (e.g. _no_ segfault).
Here is a link to the crash report given by OS X:
http://pastebin.com/jZjfFtm7
And this is the test case:
{{{
cabal install gloss --flags"-GLUT GLFW"
cabal unpack gloss-examples
cd <unpacked-dir>/picture/GameEvent
ghci -fno-ghci-sandbox Main.hs
main
}}}
I'm filing this bug report in relation to the following thread on haskell-
cafe, which is about removing the 32-bit recommendation for Haskell
Platform on OS X:[[BR]]
http://thread.gmane.org/gmane.comp.lang.haskell.cafe/100652
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7314>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list