From: merch-redmine@... Date: 2019-06-09T04:37:39+00:00 Subject: [ruby-core:93033] [Ruby trunk Bug#15763] Segmentation fault in timeout.rb / sleep Issue #15763 has been updated by jeremyevans0 (Jeremy Evans). I think mame is correct that this is related to Mac OS X getaddrinfo. We have at least 5 separate bug reports for very similar issues. All segmentation faults with similar addresses, all on Mac OS X and either definitely or probably inside getaddrinfo: * #15763: 0x00000001081bfa52 (definitely in getaddrinfo, this issue) * #15490: 0x000000010f7e1a3a (definitely in getaddrinfo, during ssh connection) * #15639: 0x000000010e82ca3a (definitely in getaddrinfo, during postgresql connection) * #15749: 0x000000010d9bda7c (definitely in getaddrinfo, during postgresql connection) * #13646: 0x000000010abfaa3a (probably in getaddrinfo, during postgresql connection) In most of these cases, getaddrinfo isn't even called directly by Ruby, it is called by C code (e.g. libpq). I'm not sure Third Party's Issue is appropriate for these issues, but I'm not sure there is anything we can do to fix it. ---------------------------------------- Bug #15763: Segmentation fault in timeout.rb / sleep https://bugs.ruby-lang.org/issues/15763#change-78418 * Author: stan-envato (Stan Pitucha) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- I'm running into crashes on both ruby 2.6.1 and 2.6.2 (2.5.x is all good). I'm on OSX / mojave with ruby installed via rbenv / ruby-build. Confirmed on two different machines. The crash happens through the parallel gem, but it happens even if the number of processes is reduced to 1. Short summary: -- Control frame information ----------------------------------------------- c:0003 p:---- s:0011 e:000010 CFUNC :sleep c:0002 p:0025 s:0006 e:000005 BLOCK /Users/viraptor/.rbenv/versions/2.6.2/lib/ruby/2.6.0/timeout.rb:86 [FINISH] c:0001 p:---- s:0003 e:000002 (none) [FINISH] -- Ruby level backtrace information ---------------------------------------- /Users/viraptor/.rbenv/versions/2.6.2/lib/ruby/2.6.0/timeout.rb:86:in `block (2 levels) in timeout' /Users/viraptor/.rbenv/versions/2.6.2/lib/ruby/2.6.0/timeout.rb:86:in `sleep' The rest is in the logs. ---Files-------------------------------- crash_log (68.9 KB) ruby_2019-04-11-101832-3_Stans-MacBook-Pro.crash (44.7 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: