#4209: LLVM: Vector code segfaults under OSX
---------------------------------------+------------------------------------
Reporter: dterei | Owner: dterei
Type: bug | Status: new
Priority: normal | Milestone: 6.14.1
Component: Compiler (LLVM) | Version: 6.13
Keywords: osx tntc llvm segfault | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86 | Failure: Runtime crash
---------------------------------------+------------------------------------
Comment(by simonmar):
Replying to [comment:4 Lennart]:
> This is probably due to memory Haskell allocation not respecting the
alignment asked for by Storable. But I think that's been fixed now.
If it was using one of the array allocation operations, such as
`allocaArray`, then I only just pushed the patch that uses alignment for
these. So it might work now. The remaining place that we're not using
alignment constraints is `malloc`, but I ''think'' this should be ok -
`malloc` is supposed to give you memory that is aligned to the greatest
degree required by any native data type.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4209#comment:5>
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