https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-07-01T03:44:50ZRuby Issue Tracking SystemBackport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=187122011-07-01T03:44:50Zdweinand (Dan Weinand)dweinand@gmail.com
<ul></ul><p>=begin<br>
Here's another stacktrace from running outside irb.</p>
<p>-e:1: [BUG] Bus Error<br>
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.8.0]</p>
<h2>-- control frame ----------<br>
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :resume<br>
c:0003 p:0021 s:0006 b:0006 l:0014e8 d:002458 EVAL -e:1<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:0000 s:0002 b:0002 l:0014e8 d:0014e8 TOP</h2>
<p>-- Ruby level backtrace information ----------------------------------------<br>
-e:1:in <code><main>' -e:1:in </code>resume'</p>
<p>-- C level backtrace information -------------------------------------------<br>
0 libruby.1.9.1.dylib 0x000000010014c64e rb_vm_bugreport + 110<br>
1 libruby.1.9.1.dylib 0x00000001000404c3 report_bug + 259<br>
2 libruby.1.9.1.dylib 0x0000000100040631 rb_bug + 161<br>
3 libruby.1.9.1.dylib 0x00000001000e30a2 sigbus + 18<br>
4 libSystem.B.dylib 0x00007fff893571ba _sigtramp + 26<br>
5 ??? 0x0000000100896420 0x0 + 4303971360</p>
<p>[NOTE]<br>
You may have encountered a bug in the Ruby interpreter or extension libraries.<br>
Bug reports are welcome.<br>
For details: <a href="http://www.ruby-lang.org/bugreport.html" class="external">http://www.ruby-lang.org/bugreport.html</a><br>
=end</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=187262011-07-01T09:39:09Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul></ul><p>I think this is similar to <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes (Closed)" href="https://redmine.ruby-lang.org/issues/4827">#4827</a> too.</p>
<p>r31954 is fix for this, but it cannot backport straightly because of r27635.</p>
<p>A patch for branch_1_9_2 is as follows</p>
<a name="Index-contc"></a>
<h1 >Index: cont.c<a href="#Index-contc" class="wiki-anchor">¶</a></h1>
<p>--- cont.c (revision 32347)<br>
+++ cont.c (working copy)<br>
@@ -882,6 +882,7 @@<br>
/* no need to allocate vm stack */<br>
fib = fiber_t_alloc(fiber_alloc(rb_cFiber));<br>
fib->cont.type = ROOT_FIBER_CONTEXT;</p>
<ul>
<li>
<p>fib->status = RUNNING;<br>
fib->prev_fiber = fib->next_fiber = fib;</p>
<p>return fib;</p>
</li>
</ul> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=187392011-07-02T01:38:56Zdweinand (Dan Weinand)dweinand@gmail.com
<ul></ul><p>Unfortunately, I'm still getting the bus error after applying that patch.</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=187412011-07-02T04:48:26Zdweinand (Dan Weinand)dweinand@gmail.com
<ul></ul><p>Actually, this looks like it could be related to <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Bus Error using continuation on x86_64-darwin11.0.0 (Lion) (Closed)" href="https://redmine.ruby-lang.org/issues/4651">#4651</a>. I'm going to check out that commit, and see if I can get things working.</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=187442011-07-02T06:35:46Zdweinand (Dan Weinand)dweinand@gmail.com
<ul></ul><p>=begin<br>
Yes! I can confirm that this is the same issue as <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Bus Error using continuation on x86_64-darwin11.0.0 (Lion) (Closed)" href="https://redmine.ruby-lang.org/issues/4651">#4651</a> and r32201 fixes it.</p>
<p>The commit applies cleanly to 1.9.2. Can we get it backported?<br>
=end</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=195762011-07-23T10:34:53Zsikachu (Prem Sichanugrist)s+ruby@sikac.hu
<ul></ul><p>Yes, I agree on backporting <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Bus Error using continuation on x86_64-darwin11.0.0 (Lion) (Closed)" href="https://redmine.ruby-lang.org/issues/4651">#4651</a> into 1.9.2 branch. It's impossible now for me to develop stuff using Lion, as I can't even run Rails's Action Pack test cleanly >_<</p>
<p>Thank you so much.</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=203512011-08-22T15:52:17Zcjbottaro (Christopher Bottaro)cjbottaro@alumni.utexas.net
<ul></ul><p>I'm also getting this segfault any time I call Fiber#resume. Please backport asap. Thanks.</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=203592011-08-23T15:25:21Zcjbottaro (Christopher Bottaro)cjbottaro@alumni.utexas.net
<ul></ul><p>I built Ruby-1.9.2-p290 patched with this commit: <a href="https://github.com/ruby/ruby/commit/be953b4d1ce3f0dfc7f24c84ec7a51e027102557" class="external">https://github.com/ruby/ruby/commit/be953b4d1ce3f0dfc7f24c84ec7a51e027102557</a></p>
<p>and now I get the following:</p>
<p>=begin<br>
$ bundle exec rake test<br>
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)<br>
/Users/cjbottaro/.rbenv/versions/1.9.2-p290/bin/ruby -I"lib:lib:test" -I"/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2/lib" "/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb"<br>
Run options: --seed 50218</p>
<a name="Running-tests"></a>
<h1 >Running tests:<a href="#Running-tests" class="wiki-anchor">¶</a></h1>
<p>..../Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:764: [BUG] cfp consistency error - send<br>
ruby 1.9.2p290 (2011-07-09) [x86_64-darwin11.1.0]</p>
<h2>-- control frame ----------<br>
c:0012 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC :map<br>
c:0011 p:0012 s:0041 b:0041 l:000040 d:000040 METHOD /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:764<br>
c:0010 p:0189 s:0036 b:0036 l:000035 d:000035 METHOD /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:740<br>
c:0009 p:0013 s:0026 b:0026 l:000025 d:000025 METHOD /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:903<br>
c:0008 p:0012 s:0023 b:0023 l:000014 d:000022 BLOCK /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:890<br>
c:0007 p:---- s:0020 b:0020 l:000019 d:000019 FINISH<br>
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :each<br>
c:0005 p:0068 s:0015 b:0015 l:000014 d:000014 METHOD /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:889<br>
c:0004 p:0029 s:0011 b:0011 l:000010 d:000010 METHOD /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:878<br>
c:0003 p:0057 s:0007 b:0007 l:0019e8 d:001e80 BLOCK /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:658<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:0000 s:0002 b:0002 l:001bb8 d:001bb8 TOP</h2>
<p>-- Ruby level backtrace information ----------------------------------------<br>
/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:658:in <code>block in autorun' /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:878:in </code>run'<br>
/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:889:in <code>_run' /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:889:in </code>each'<br>
/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:890:in <code>block in _run' /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:903:in </code>run_tests'<br>
/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:740:in <code>_run_anything' /Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:764:in </code>_run_suites'<br>
/Users/cjbottaro/Dropbox/Projects/fiber_storm/vendor/bundle/ruby/1.9.1/gems/minitest-2.5.0/lib/minitest/unit.rb:764:in `map'</p>
<p>-- C level backtrace information -------------------------------------------<br>
0 ruby 0x000000010c61e4fe rb_vm_bugreport + 110<br>
1 ruby 0x000000010c513133 report_bug + 259<br>
2 ruby 0x000000010c5132a1 rb_bug + 161<br>
3 ruby 0x000000010c610f2a vm_call_method + 2442<br>
4 ruby 0x000000010c613cfe vm_exec_core + 11214<br>
5 ruby 0x000000010c617e3e vm_exec + 94<br>
6 ruby 0x000000010c618d66 rb_yield + 70<br>
7 ruby 0x000000010c4e8def rb_ary_each + 95<br>
8 ruby 0x000000010c60c2f0 call_cfunc + 112<br>
9 ruby 0x000000010c610883 vm_call_method + 739<br>
10 ruby 0x000000010c613cfe vm_exec_core + 11214<br>
11 ruby 0x000000010c617e3e vm_exec + 94<br>
12 ruby 0x000000010c6110e1 rb_vm_invoke_proc + 161<br>
13 ruby 0x000000010c51693e rb_exec_end_proc + 430<br>
14 ruby 0x000000010c516a15 ruby_finalize_0 + 85<br>
15 ruby 0x000000010c516b32 ruby_cleanup + 258<br>
16 ruby 0x000000010c516d89 ruby_run_node + 89<br>
17 ruby 0x000000010c4e2b2f main + 79<br>
18 ruby 0x000000010c4e2ad4 start + 52<br>
19 ??? 0x0000000000000005 0x0 + 5</p>
<p>[NOTE]<br>
You may have encountered a bug in the Ruby interpreter or extension libraries.<br>
Bug reports are welcome.<br>
For details: <a href="http://www.ruby-lang.org/bugreport.html" class="external">http://www.ruby-lang.org/bugreport.html</a></p>
<p>rake aborted!<br>
Command failed with status (): [/Users/cjbottaro/.rbenv/versions/1.9.2-p29...]</p>
<p>Tasks: TOP => test<br>
(See full trace by running task with --trace)<br>
=end</p> Backport192 - Backport #4945: Segfault on Fiber#resume on Mac OS X 10.6.8https://redmine.ruby-lang.org/issues/4945?journal_id=589172016-05-30T08:33:55Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul>