#5250: SEGFAULT in FFI to C++ library
---------------------------------+------------------------------------------
Reporter: acowley | Owner: simonmar
Type: bug | Status: new
Priority: high | Milestone: 7.2.1
Component: Compiler (FFI) | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: x86 | Failure: Runtime crash
---------------------------------+------------------------------------------
Comment(by simonmar):
The problem is that GHC doesn't maintain 16-byte alignment of the C stack
pointer on Linux or Windows (it does on Mac OS X, where it is a
requirement of the ABI). I'm testing a fix for this. In the meantime you
might be able to work around the issue by compiling OpenCV with the gcc
flag `-mstack-realign` or `-mincoming-stack-boundary=2`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5250#comment:4>
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