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

Nicolas Cellier notifications at github.com
Sat Jan 30 22:41:41 UTC 2021


See it explained at
https://copyconstruct.medium.com/the-method-to-epolls-madness-d9d2d6378642

Le sam. 30 janv. 2021 à 23:38, smalltalking <notifications at github.com> a
écrit :

> 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 are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/548#issuecomment-770291427>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAFRYIUUQU763FNFDLYNS73S4SC45ANCNFSM4WRCJIUQ>
> .
>


-- 
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-770291776
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210130/2bd549a5/attachment.html>


More information about the Vm-dev mailing list