#3918: Got internal error: stg_ap_v_ret when call forkProcess
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.12.3
Component: Runtime System | Version: 6.12.1
Resolution: invalid | Keywords: stg_ap_v_ret gtk2hs
Difficulty: | Os: Linux
Testcase: | Architecture: x86_64 (amd64)
Failure: Runtime crash |
-----------------------------+----------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => invalid
Comment:
The submitter says we can close the ticket, providing these notes:
{{{
If you use GtkSocket/GtkPlug with multi-processes framework.
DON'T use function `forkProcess` to spawn process!
Because `forkProcess` just simple call C `fork`, haven't any protection,
then two processes will got *race condition*,
you will get X Window error (such as `BadWindow`) when those two processes
try to access same X resource.
So use `runProcess` or `runCommand` instead.
Above two functions add MVar lock when spawn processes (call
c_runInteractiveProcess)
to make sure two processes won't get *race condition* problem on X
resource.
}}}
I'm not sure I understand how this leads to the `stg_ap_v_ret` crash, but
hopefully this will be of use if someone else stumbles upon the same
problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3918#comment:2>
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