https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2012-12-19T17:55:01Z
Ruby Issue Tracking System
Ruby master - Bug #7589: parallel test-all で test_settracefunc が SEGV
https://bugs.ruby-lang.org/issues/7589?journal_id=34843
2012-12-19T17:55:01Z
tarui (Masaya Tarui)
tarui@prx.jp
<ul><li><strong>Status</strong> changed from <i>Open</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 r38464.<br>
Yui, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>vm_trace.c (rb_threadptr_exec_event_hooks): get rid of race<br>
condition. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: parallel test-all で test_settracefunc が SEGV (Closed)" href="https://bugs.ruby-lang.org/issues/7589">#7589</a>] <a href="/issues/7589">[ruby-dev:46763]</a></li>
</ul>
Ruby master - Bug #7589: parallel test-all で test_settracefunc が SEGV
https://bugs.ruby-lang.org/issues/7589?journal_id=34845
2012-12-19T20:28:05Z
kosaki (Motohiro KOSAKI)
kosaki.motohiro@gmail.com
<ul></ul><p>あれ、まだ起きるような。<br>
うちのx86_64 linuxだと以下のように vm_call_cfunc - cfp consistency error でrb_bugして、その延長でsegv.<br>
ところで、一般論としてcfp consistency errorが起きてる時に ruby level backtraceが採取できる可能性はないんじゃないですかね。</p>
<p>#0 0x00007f0bedb7fec3 in fill_lines (num_traces=23,<br>
traces=0x7f0bede50060, syms=0x7f0bee141eb0, check_debuglink=1,<br>
current_line=0x7f0bee1427a0, lines=0x7f0bee1427a0)<br>
at ../addr2line.c:513<br>
#1 0x00007f0bedb80219 in rb_dump_backtrace_with_lines (num_traces=23,<br>
trace=0x7f0bede50060, syms=0x7f0bee141eb0) at ../addr2line.c:605<br>
#2 0x00007f0bedb6b97f in rb_vm_bugreport () at ../vm_dump.c:648<br>
#3 0x00007f0beda11f79 in report_bug (<br>
file=0x7f0bee203fe0 "/home/kosaki/ruby/git/lib/minitest/unit.rb",<br>
line=912, fmt=0x7f0bedba37ff "Segmentation fault",<br>
args=0x7f0bee068880) at ../error.c:306<br>
#4 0x00007f0beda120b7 in rb_bug (fmt=0x7f0bedba37ff "Segmentation fault")<br>
at ../error.c:325<br>
#5 0x00007f0bedae3c39 in sigsegv (sig=11, info=0x7f0bee068af0,<br>
ctx=0x7f0bee0689c0) at ../signal.c:649<br>
<a class="issue tracker-1 status-5 priority-4 priority-default closed behind-schedule" title="Bug: sprintf() of %f on Windows(MSVCRT) (Closed)" href="https://bugs.ruby-lang.org/issues/6">#6</a> <br>
#7 0x00007f0bedb7fec3 in fill_lines (num_traces=16,<br>
traces=0x7f0bede50060, syms=0x7f0bee66ab00, check_debuglink=1,<br>
current_line=0x7f0bee66b150, lines=0x7f0bee66b150)<br>
at ../addr2line.c:513<br>
#8 0x00007f0bedb80219 in rb_dump_backtrace_with_lines (num_traces=16,<br>
trace=0x7f0bede50060, syms=0x7f0bee66ab00) at ../addr2line.c:605<br>
#9 0x00007f0bedb6b97f in rb_vm_bugreport () at ../vm_dump.c:648<br>
#10 0x00007f0beda11f79 in report_bug (<br>
file=0x7f0bee203fe0 "/home/kosaki/ruby/git/lib/minitest/unit.rb",<br>
line=912, fmt=0x7f0bedba9aa8 "vm_call_cfunc - cfp consistency error",<br>
args=0x7fff16fcf500) at ../error.c:306<br>
<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: prelude.c compilation problem on mswin32 (Closed)" href="https://bugs.ruby-lang.org/issues/11">#11</a> 0x00007f0beda120b7 in rb_bug (<br>
fmt=0x7f0bedba9aa8 "vm_call_cfunc - cfp consistency error")<br>
at ../error.c:325<br>
#12 0x00007f0bedb53530 in vm_call_cfunc_with_frame (th=0x7f0bedffe5b0,<br>
reg_cfp=0x7f0bed99eeb0, ci=0x7f0bee17b750) at ../vm_insnhelper.c:1422<br>
#13 0x00007f0bedb537cc in vm_call_cfunc (th=0x7f0bedffe5b0,<br>
reg_cfp=0x7f0bed99eeb0, ci=0x7f0bee17b750) at ../vm_insnhelper.c:1509<br>
<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: test issue for ruby-1.9 (Closed)" href="https://bugs.ruby-lang.org/issues/14">#14</a> 0x00007f0bedb545b6 in vm_call_method (th=0x7f0bedffe5b0,<br>
cfp=0x7f0bed99eeb0, ci=0x7f0bee17b750) at ../vm_insnhelper.c:1683<br>
#15 0x00007f0bedb54d71 in vm_call_general (th=0x7f0bedffe5b0,<br>
reg_cfp=0x7f0bed99eeb0, ci=0x7f0bee17b750) at ../vm_insnhelper.c:1832<br>
<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: example issue for ruby-1.8 (Closed)" href="https://bugs.ruby-lang.org/issues/16">#16</a> 0x00007f0bedb58951 in vm_exec_core (th=0x7f0bedffe5b0, initial=0)<br>
at ../insns.def:996<br>
<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: deadlock detection for 1.9 (Closed)" href="https://bugs.ruby-lang.org/issues/17">#17</a> 0x00007f0bedb67785 in vm_exec (th=0x7f0bedffe5b0) at ../vm.c:1169<br>
#18 0x00007f0bedb6879b in rb_iseq_eval_main (iseqval=139689214591600)<br>
at ../vm.c:1417<br>
#19 0x00007f0beda178c8 in ruby_exec_internal (n=0x7f0bee03c270)<br>
at ../eval.c:250<br>
#20 0x00007f0beda179db in ruby_exec_node (n=0x7f0bee03c270)<br>
at ../eval.c:315<br>
<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: should terminate @receiver_thread of Net::IMAP safely (Closed)" href="https://bugs.ruby-lang.org/issues/21">#21</a> 0x00007f0beda179ae in ruby_run_node (n=0x7f0bee03c270)<br>
at ../eval.c:307<br>
#22 0x00007f0bed9d8ef9 in main (argc=6, argv=0x7fff16fd0898)<br>
at ../main.c:36</p>
Ruby master - Bug #7589: parallel test-all で test_settracefunc が SEGV
https://bugs.ruby-lang.org/issues/7589?journal_id=34846
2012-12-19T20:30:13Z
kosaki (Motohiro KOSAKI)
kosaki.motohiro@gmail.com
<ul></ul><p>あ、taruiさんが #7590としてすでに報告済みでした。そちらに転記しておきます</p>