[GHC] #8371: ghci byte compiler + FFI crashes when used with embedded R
GHC
ghc-devs at haskell.org
Sat Sep 28 16:47:58 CEST 2013
#8371: ghci byte compiler + FFI crashes when used with embedded R
-------------------------------+----------------------------------
Reporter: dsamperi | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.6.3
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: GHCi crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------+----------------------------------
Comment (by dsamperi):
I accidentally replied to you in gmail (sent to ghc-devs) instead of in
this comment
thread, sorry! Your comment combined with the suggestion that I use
ghc-7.7 provides
a work-around.
I tried disabling R's stack limit checks, but this leads to a segfault.
A correct workaround is to use the flag -fno-ghci-sandbox, as this
prevents
ghci from forking a thread (all computations are run in the main thread).
As
noted previously R is not thread-safe.
This eliminates the "C stack usage" error messages, but there is still a
segfault when ghc-7.6.3 is used (and a non-trivial computation is done).
Using ghc-7.7 fixes this.
Thanks!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8371#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list