Actions
Bug #16283
closedA fork in transaction of PG cause Segmentation fault
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
Backport:
Description
Call Kernel#fork in transaction of Postgres and call some Socket method in fork's block, then ruby on the child process abort with segmentation fault.
Conceptual code:
MGModel.connection.transaction do
# Do something
fork do
Socket.gethostbyname('localhost') # <- Segmentation fault.
end
end
Expected behavior: The child process successfully exists or raises exception.
Please see attached files for Reproduction code and full error log.
Files
Actions
Like0
Like0Like0Like0Like0