[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] UnixProcess forkSqueak broken since October (#548)

smalltalking notifications at github.com
Sat Jan 30 22:38:06 UTC 2021


The problem is that the file descriptors and structures are shared between parent and child after fork. However, after the fork, the epoll structures point to data that belongs to the parent. At line 405 the child process tries to access that data, and I think that causes the segfault.
The child should close the inherited epoll file descriptor and recreate it along with the necessary data structures. This can be done by a handler registered with pthread_atfork().

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/548#issuecomment-770291427
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210130/00ed09e6/attachment.html>


More information about the Vm-dev mailing list