https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-08-02T20:39:47ZRuby Issue Tracking SystemRuby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=285932012-08-02T20:39:47Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Also notably ruby 1.8.7 does not crash.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=285952012-08-02T20:52:01Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Ubuntu 11.04 doesn't crash with 1.9 ruby either.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=285962012-08-02T20:59:55Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Ruby 1.9.2 doesn't crash either.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=285972012-08-02T21:31:32Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>ruby 2.0.0dev (2012-08-02 trunk 36596) [x86_64-darwin10.8.0] also does not crash.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=285982012-08-02T22:29:10Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>OS X 10.8 seems to be unaffected.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286012012-08-02T23:01:31Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Confirmed with another 10.6 / 1.9.3-p194.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286032012-08-03T02:07:59Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>After some more fiddling it looks like it's mysql2 problem, not ruby's. Will duplicate issue there.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286052012-08-03T03:22:18Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286072012-08-03T05:08:31Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Update: I greatly simplified my test-case.</p>
<p><a href="https://gist.github.com/47e48301aea114e7b1d3" class="external">https://gist.github.com/47e48301aea114e7b1d3</a></p>
<p>If I remove sleeping threads on line 31 or require 'active_record' on line 1, bug stops reproducing.</p>
<p>Returning back to ruby-lang, as there is no mysql2 there anymore. Crash is still with the same error.</p>
<p>Ideas, suggestions?</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286082012-08-03T05:09:14Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Oh, it also reproduced on ruby 2.0.0.dev from current git, so I guess it is still not fixed.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286102012-08-03T05:23:01Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Another update: I opened up a file <code>active_record.rb</code> inside installed activerecord gem and completely commented it out (so that even ActiveRecord is not defined after require 'active_record'). Still crashes. I guess that takes care of gems and everything, so the problem should be between ruby, rubygems and standard library.</p>
<p>Line <code>require 'active_record'</code> is still required for whole setup to crash for some reason.</p>
<p>Hope that gives you some idea.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286112012-08-03T05:36:02Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>=begin<br>
I can't reproduce on OS X 10.8 ruby 2.0.0dev (2012-08-03 trunk 36602) [x86_64-darwin12.0.0]</p>
<p>I modified your script to remove require 'active_record' and altered the main thread to sleep forever. This ensures that mysql and other C extensions are not loaded. It ran for over two minutes without problems.</p>
<p>Can you reproduce this with require 'mysql' and not active_record?</p>
<p>Can you show the console output with your modified active_record.rb (the loaded features section is of particular interest).</p>
<p>Here is what I used:</p>
<p>require 'net/http'</p>
<p>Thread.abort_on_exception = true<br>
class Worker<br>
def initialize<br>
@tasks = []<br>
work<br>
end</p>
<pre><code>def work
Thread.new do
loop do
task = nil
task = @tasks.shift if @tasks.length > 0
task.call if task
sleep(0.25)
end
end
end
def schedule(&block)
@tasks << block
end
</code></pre>
<p>end</p>
<p>pid = fork do<br>
class TestLoop<br>
def initialize<br>
@worker = Worker.new<br>
(1..10).map { Thread.new { loop { sleep(0.5) } } }<br>
end</p>
<pre><code> def run
loop do
@worker.schedule { puts Net::HTTP.get("github.com", "/").length }
sleep(0.25)
end
end
end
TestLoop.new.run
</code></pre>
<p>end</p>
<p>sleep</p>
<p>(I don't have mysql installed to check.)</p>
<p>=end</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286132012-08-03T05:45:02Zxentronium (Mark A)markizko@gmail.com
<ul></ul><blockquote>
<p>I can't reproduce on OS X 10.8 ruby 2.0.0dev (2012-08-03 trunk 36602) [x86_64-darwin12.0.0]</p>
</blockquote>
<p>That seems right, 10.8 seems to be unaffected.</p>
<blockquote>
<p>Can you show the console output with your modified active_record.rb (the loaded features section is of particular interest).</p>
</blockquote>
<pre><code>1.9.3p194 :002 > require 'active_record'
=> true
1.9.3p194 :003 > $LOADED_FEATURES.each(&method(:puts))
enumerator.so
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/trans/transdb.bundle
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/rbconfig.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/e2mmap.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/init.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/workspace.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/inspector.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/context.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/extend-command.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/output-method.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/notifier.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/slex.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/ruby-token.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/ruby-lex.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/src_encoding.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/magic-file.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/readline.bundle
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/input-method.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/locale.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/completion.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/prettyprint.rb
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/pp.rb
/Users/mark/.rvm/scripts/irbrc.rb
/Users/mark/.rvm/gems/ruby-1.9.3-p194@ruby-pthread-bug/gems/activerecord-3.2.7/lib/active_record.rb
</code></pre>
<p>If rubygems don't get hit (as in add gem directory to $LOAD_PATH manually), bug doesn't seem to trigger. I am not sure, whether rubygems themselves are the reason or something non-trivial needs to happen for it to show itself.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286142012-08-03T05:48:34Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Switching <code>require 'active_record'</code> with <code>require 'mysql2'</code> still crashes the interpreter as long as required file is taken using gems mechanism.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286162012-08-03T06:31:59Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286382012-08-04T17:20:36Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul></ul><p>At least, require 'mysql2' version nor drbrain version don't crash on my Mountain Lion environment.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=286462012-08-04T23:14:13Zxentronium (Mark A)markizko@gmail.com
<ul></ul><p>Yeah, that seems to be restricted to snow leopard.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=322822012-11-03T12:31:20Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>kosaki (Motohiro KOSAKI)</i></li></ul><p>Kosaki-san, do you have any idea to addres this issue?</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a></p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323042012-11-04T02:34:04Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Assignee</strong> changed from <i>kosaki (Motohiro KOSAKI)</i> to <i>mrkn (Kenta Murata)</i></li></ul><blockquote>
<p>Kosaki-san, do you have any idea to addres this issue?</p>
</blockquote>
<p>I have no idea. unfortunately snow leopard is too old and i have no chance to get it.<br>
<a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a>, do you have any chance to see this issue?</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323102012-11-04T05:43:45Zmrkn (Kenta Murata)muraken@gmail.com
<ul></ul><p>I don't have snow-leopard environment, so I cannot investigate this issue.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323122012-11-04T07:01:01Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><blockquote>
<p>I don't have snow-leopard environment, so I cannot investigate this issue.</p>
</blockquote>
<p>OK. Thank you.<br>
This looks like old OS X bug but we have no way to dig. give up. I'd like to close this feature as won't fix.<br>
Anyway snow leopard is no longer supported.</p>
<p>To Mark, please reopen when you find exact reason and fixing way. we are very sorry for inconvenience.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323142012-11-04T07:47:38ZEregon (Benoit Daloze)
<ul></ul><p>mrkn (Kenta Murata) wrote:</p>
<blockquote>
<p>I don't have snow-leopard environment, so I cannot investigate this issue.</p>
</blockquote>
<p>I do still have a snow-leopard environment and I can reproduce with<br>
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]<br>
and trunk (r37359). I'll try to investigate if I find time.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323152012-11-04T07:55:48ZEregon (Benoit Daloze)
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>mrkn (Kenta Murata)</i> to <i>Eregon (Benoit Daloze)</i></li></ul><p>This is also true with latest trunk (r37462).</p>
<p>I'm assigning to myself.</p>
<p>bug6825.rb:31: [BUG] pthread_cond_timedwait: Invalid argument (EINVAL)<br>
ruby 2.0.0dev (2012-11-04 trunk 37462) [x86_64-darwin10.8.0]</p>
<p>-- Control frame information -----------------------------------------------<br>
c:0005 p:---- s:0013 e:000012 CFUNC :sleep<br>
c:0004 p:0007 s:0009 e:000008 BLOCK bug6825.rb:31 [FINISH]<br>
c:0003 p:---- s:0007 e:000006 CFUNC :loop<br>
c:0002 p:0005 s:0004 e:000003 BLOCK bug6825.rb:31 [FINISH]<br>
c:0001 p:---- s:0002 e:000001 TOP [FINISH]</p>
<p>bug6825.rb:31:in <code>block (2 levels) in initialize' bug6825.rb:31:in </code>loop'<br>
bug6825.rb:31:in <code>block (3 levels) in initialize' bug6825.rb:31:in </code>sleep'</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323392012-11-04T21:09:23ZEregon (Benoit Daloze)
<ul></ul><p>I poked around an produced a core dump (the bug would not reproduce under gdb with a breakpoint set).</p>
<p>Arguments to pthread_cond_timedwait() seem valid, in particular the timespec is about 500ms in the future.<br>
Other calls to pthread_cond_timedwait() always return ETIMEDOUT or 0.</p>
<p>I saw rb_thread_t::native_thread_data.sleep_cond was weirdly initialized.<br>
It is not initialized in native_thread_init() if HAVE_PTHREAD_CONDATTR_INIT is undefined.<br>
And it is used in any case in ubf_pthread_cond_signal().<br>
Maybe checks for HAVE_PTHREAD_CONDATTR_INIT should not be done in native_thread_init() and native_thread_destroy() since these functions already do the right checks?<br>
This should be unrelated though, since OS X has pthread_condattr_init().</p>
<p>It might be related to GVL release by multiple threads but I have no clue.<br>
It does not seem related directly to the parallel DNS resolution, since some traces have only threads in native_cond_timedwait().<br>
And from the "only reproducible on snow-leopard" argument, it seems snow-leopard pthread's bug.</p>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/1041">@kosaki (Motohiro KOSAKI)</a> <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a> Would it be useful if I could provide you the core dump and other info?</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323422012-11-04T23:54:14Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul></ul><blockquote>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/1041">@kosaki (Motohiro KOSAKI)</a> <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a> Would it be useful if I could provide you the core dump and other info?</p>
</blockquote>
<p>Thanks!<br>
r35672 seems broke this area and I'll fix it soon. However there is no r35672 in 1.9.3 branch and 1.9.3 seems correct. hmm...<br>
Could you please try 1.9.3 branch too?</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323552012-11-05T11:46:43Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r37474.<br>
Mark, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>thread_pthread.c (native_thread_init, native_thread_destroy):<br>
removed HAVE_PTHREAD_CONDATTR_INIT check because this silly<br>
#ifdef makes use-uninitialized-var issue and (2) native_cond_initialize()<br>
already have a right platform and caller don't need any additional care.<br>
[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194 (Closed)" href="https://bugs.ruby-lang.org/issues/6825">#6825</a>]</li>
</ul> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323562012-11-05T11:48:13Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li></ul><p>Reopened. because r37474 only fixed trunk.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=323782012-11-05T15:36:45Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Backport</i></li><li><strong>Project</strong> changed from <i>Ruby master</i> to <i>Backport193</i></li><li><strong>Assignee</strong> changed from <i>Eregon (Benoit Daloze)</i> to <i>usa (Usaku NAKAMURA)</i></li></ul><p>Kosaki-san, you can move a ticket to Backport because you are a committer.<br>
So, pelase do so instead of only changing the status to Open.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=325512012-11-07T19:49:04ZEregon (Benoit Daloze)
<ul></ul><p>kosaki (Motohiro KOSAKI) wrote:</p>
<blockquote>
<blockquote>
<p><a class="user active user-mention" href="https://bugs.ruby-lang.org/users/1041">@kosaki (Motohiro KOSAKI)</a> <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/482">@mrkn (Kenta Murata)</a> Would it be useful if I could provide you the core dump and other info?</p>
</blockquote>
<p>Thanks!<br>
r35672 seems broke this area and I'll fix it soon. However there is no r35672 in 1.9.3 branch and 1.9.3 seems correct. hmm...<br>
Could you please try 1.9.3 branch too?</p>
</blockquote>
<p>Unfortunately, r37474 does not seem to solve the problem (but it was definitely a potential problem).<br>
This is expected because snow leopard has pthread_condattr_init().<br>
So I don't know the reason for the bug.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=326022012-11-08T08:58:53Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Tracker</strong> changed from <i>Backport</i> to <i>Bug</i></li><li><strong>Project</strong> changed from <i>Backport193</i> to <i>Ruby master</i></li><li><strong>Assignee</strong> changed from <i>usa (Usaku NAKAMURA)</i> to <i>Eregon (Benoit Daloze)</i></li></ul><p>Hi Eregon,</p>
<p>Oops, I'm sorry. Perhaps I'm still overlooking anything else. Can you please share me your config.h and core file and build revision number?<br>
I'm willing to look core file myself.</p> Ruby master - Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194https://bugs.ruby-lang.org/issues/6825?journal_id=645102017-04-27T12:04:03ZEregon (Benoit Daloze)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>This bug report is on a unsupported Ruby version, closing.</p>