Bug #4927

crash on test/coverage/test_coverage.rb

Added by Motohiro KOSAKI almost 4 years ago. Updated almost 4 years ago.

[ruby-core:37352]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga
ruby -v:- Backport:

Description

test-all w/ --gc-stress got crash on may mac os x.

% time make test-all TESTS="-v -q -j8 --gc-stress"

/Users/kosaki/ruby/test/coverage/test_coverage.rb:11: [BUG] Segmentation fault
ruby 1.9.3dev (2011-06-26 trunk 32229) [x86_64-darwin10.7.4]

-- Control frame information -----------------------------------------------
c:0021 p:---- s:0090 b:0090 l:000089 d:000089 CFUNC :result
c:0020 p:0033 s:0087 b:0087 l:000086 d:000086 METHOD /Users/kosaki/ruby/test/coverage/test_coverage.rb:11
c:0019 p:0063 s:0083 b:0083 l:000060 d:000060 METHOD /Users/kosaki/ruby/lib/minitest/unit.rb:948
c:0018 p:---- s:0077 b:0077 l:000076 d:000076 FINISH
c:0017 p:---- s:0075 b:0075 l:000074 d:000074 CFUNC :call
c:0016 p:0065 s:0071 b:0071 l:000638 d:000070 LAMBDA /Users/kosaki/ruby/lib/test/unit.rb:198
c:0015 p:---- s:0067 b:0067 l:000066 d:000066 FINISH
c:0014 p:0025 s:0065 b:0065 l:000064 d:000064 METHOD /Users/kosaki/ruby/lib/test/unit/testcase.rb:17
c:0013 p:0090 s:0061 b:0061 l:000049 d:000060 BLOCK /Users/kosaki/ruby/lib/minitest/unit.rb:787
c:0012 p:---- s:0055 b:0055 l:000054 d:000054 FINISH
c:0011 p:---- s:0053 b:0053 l:000052 d:000052 CFUNC :map
c:0010 p:0124 s:0050 b:0050 l:000049 d:000049 METHOD /Users/kosaki/ruby/lib/minitest/unit.rb:780
c:0009 p:0139 s:0042 b:0042 l:001f80 d:001f80 METHOD /Users/kosaki/ruby/lib/test/unit/parallel.rb:48
c:0008 p:0015 s:0026 b:0026 l:000017 d:000025 BLOCK /Users/kosaki/ruby/lib/test/unit/parallel.rb:23
c:0007 p:---- s:0023 b:0023 l:000022 d:000022 FINISH
c:0006 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :map
c:0005 p:0012 s:0018 b:0018 l:000017 d:000017 METHOD /Users/kosaki/ruby/lib/test/unit/parallel.rb:22
c:0004 p:0353 s:0013 b:0013 l:000012 d:000012 METHOD /Users/kosaki/ruby/lib/test/unit/parallel.rb:113
c:0003 p:0074 s:0006 b:0006 l:0021d8 d:000598 EVAL /Users/kosaki/ruby/lib/test/unit/parallel.rb:156
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0021d8 d:0021d8 TOP

-- Ruby level backtrace information ----------------------------------------
/Users/kosaki/ruby/lib/test/unit/parallel.rb:156:in <main>'
/Users/kosaki/ruby/lib/test/unit/parallel.rb:113:in
run'
/Users/kosaki/ruby/lib/test/unit/parallel.rb:22:in _run_suites'
/Users/kosaki/ruby/lib/test/unit/parallel.rb:22:in
map'
/Users/kosaki/ruby/lib/test/unit/parallel.rb:23:in block in _run_suites'
/Users/kosaki/ruby/lib/test/unit/parallel.rb:48:in
run_suite'
/Users/kosaki/ruby/lib/minitest/unit.rb:780:in _run_suite'
/Users/kosaki/ruby/lib/minitest/unit.rb:780:in
map'
/Users/kosaki/ruby/lib/minitest/unit.rb:787:in block in _run_suite'
/Users/kosaki/ruby/lib/test/unit/testcase.rb:17:in
run'
/Users/kosaki/ruby/lib/test/unit.rb:198:in `block (2 levels) in non
options'
/Users/kosaki/ruby/lib/test/unit.rb:198:in call'
/Users/kosaki/ruby/lib/minitest/unit.rb:948:in
run'
/Users/kosaki/ruby/test/coverage/test_coverage.rb:11:in test_result_with_nothing'
/Users/kosaki/ruby/test/coverage/test_coverage.rb:11:in
result'

-- See Crash Report log file under ~/Library/Logs/CrashReporter or ---------
-- /Library/Logs/CrashReporter, for the more detail of ---------------------
-- C level backtrace information -------------------------------------------

-- Other runtime information -----------------------------------------------

  • Loaded script: /Users/kosaki/ruby/lib/test/unit/parallel.rb

  • Loaded features:

    0 enumerator.so
    1 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/encdb.bundle
    2 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/transdb.bundle
    3 /Users/kosaki/ruby/lib/rubygems/defaults.rb
    4 /Users/kosaki/ruby/lib/tsort.rb
    5 /Users/kosaki/ruby/lib/rubygems/deprecate.rb
    6 /Users/kosaki/ruby/lib/rubygems/dependency_list.rb
    7 /Users/kosaki/ruby/lib/rubygems/path_support.rb
    8 /Users/kosaki/ruby/build/rbconfig.rb
    9 /Users/kosaki/ruby/lib/rubygems/exceptions.rb
    10 /Users/kosaki/ruby/lib/rubygems/custom_require.rb
    11 /Users/kosaki/ruby/lib/rubygems/version.rb
    12 /Users/kosaki/ruby/lib/rubygems/requirement.rb
    13 /Users/kosaki/ruby/lib/rubygems/platform.rb
    14 /Users/kosaki/ruby/lib/rubygems/specification.rb
    15 /Users/kosaki/ruby/lib/rubygems.rb
    16 /Users/kosaki/ruby/lib/optparse.rb
    17 /Users/kosaki/ruby/lib/minitest/unit.rb
    18 /Users/kosaki/ruby/lib/prettyprint.rb
    19 /Users/kosaki/ruby/lib/pp.rb
    20 /Users/kosaki/ruby/lib/test/unit/assertions.rb
    21 /Users/kosaki/ruby/lib/test/unit/testcase.rb
    22 /Users/kosaki/ruby/lib/test/unit.rb
    23 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/-test-/string/string.bundle
    24 /Users/kosaki/ruby/test/-ext-/string/test_ellipsize.rb
    25 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/single_byte.bundle
    26 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/big5.bundle
    27 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/big5.bundle
    28 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/cp949.bundle
    29 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/korean.bundle
    30 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/emacs_mule.bundle
    31 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/euc_jp.bundle
    32 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/japanese_euc.bundle
    33 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/euc_kr.bundle
    34 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/euc_tw.bundle
    35 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/gb18030.bundle
    36 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/gb18030.bundle
    37 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/gbk.bundle
    38 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/gbk.bundle
    39 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_1.bundle
    40 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_2.bundle
    41 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_3.bundle
    42 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_4.bundle
    43 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_5.bundle
    44 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_6.bundle
    45 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_7.bundle
    46 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_8.bundle
    47 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_9.bundle
    48 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_10.bundle
    49 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_11.bundle
    50 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_13.bundle
    51 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_14.bundle
    52 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_15.bundle
    53 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_16.bundle
    54 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/koi8_r.bundle
    55 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/koi8_u.bundle
    56 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/shift_jis.bundle
    57 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/japanese_sjis.bundle
    58 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_16be.bundle
    59 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/utf_16_32.bundle
    60 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_16le.bundle
    61 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_32be.bundle
    62 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_32le.bundle
    63 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/windows_1251.bundle
    64 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/iso2022.bundle
    65 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/gb2312.bundle
    66 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/chinese.bundle
    67 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/utf8_mac.bundle
    68 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji.bundle
    69 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_sjis_docomo.bundle
    70 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_sjis_kddi.bundle
    71 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_iso2022_kddi.bundle
    72 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_sjis_softbank.bundle
    73 /Users/kosaki/ruby/lib/cgi/core.rb
    74 /Users/kosaki/ruby/lib/cgi/cookie.rb
    75 /Users/kosaki/ruby/lib/cgi/util.rb
    76 /Users/kosaki/ruby/lib/cgi.rb
    77 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/stringio.bundle
    78 /Users/kosaki/ruby/test/cgi/test_cgi_util.rb
    79 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/coverage.bundle
    80 /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/etc.bundle
    81 /Users/kosaki/ruby/lib/fileutils.rb
    82 /Users/kosaki/ruby/lib/tmpdir.rb
    83 /Users/kosaki/ruby/test/coverage/test_coverage.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Some worker was crashed. It seems ruby interpreter's bug
or, a bug of test/unit/parallel.rb. try again without -j
option.

/Users/kosaki/ruby/lib/test/unit.rb:255:in write': closed stream (IOError)
from /Users/kosaki/ruby/lib/test/unit.rb:255:in
puts'
from /Users/kosaki/ruby/lib/test/unit.rb:255:in puts'
from /Users/kosaki/ruby/lib/test/unit.rb:503:in
block (2 levels) in run_parallel'
from /Users/kosaki/ruby/lib/timeout.rb:68:in timeout'
from /Users/kosaki/ruby/lib/timeout.rb:99:in
timeout'
from /Users/kosaki/ruby/lib/test/unit.rb:502:in block in _run_parallel'
from /Users/kosaki/ruby/lib/test/unit.rb:500:in
each'
from /Users/kosaki/ruby/lib/test/unit.rb:500:in ensure in _run_parallel'
from /Users/kosaki/ruby/lib/test/unit.rb:557:in
run_parallel'
from /Users/kosaki/ruby/lib/test/unit.rb:566:in _run_suites'
from /Users/kosaki/ruby/lib/minitest/unit.rb:746:in
run_anything'
from /Users/kosaki/ruby/lib/minitest/unit.rb:909:in `run
tests'
from /Users/kosaki/ruby/lib/minitest/unit.rb:896:in block in _run'
from /Users/kosaki/ruby/lib/minitest/unit.rb:895:in
each'
from /Users/kosaki/ruby/lib/minitest/unit.rb:895:in _run'
from /Users/kosaki/ruby/lib/minitest/unit.rb:884:in
run'
from /Users/kosaki/ruby/lib/test/unit.rb:21:in run'
from /Users/kosaki/ruby/lib/test/unit.rb:635:in
run'
from /Users/kosaki/ruby/lib/test/unit.rb:639:in run'
from ../test/runner.rb:13:in
'

Process: ruby-trunk [72096]
Path: /Users/kosaki/ruby/build/ruby-trunk
Identifier: ruby-trunk
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ruby-trunk [72091]

Date/Time: 2011-06-26 02:58:06.179 +0900
OS Version: Mac OS X 10.6.7 (10J4138)
Report Version: 6

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000002e3e
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff885225d6 _kill + 10
1 libSystem.B.dylib 0x00007fff885c2cde abort + 83
2 libruby.1.9.1.dylib 0x000000010003e27d 0x100003000 + 242301
3 libruby.1.9.1.dylib 0x0000000100106ac4 0x100003000 + 1063620
4 libSystem.B.dylib 0x00007fff8853466a sigtramp + 26
5 libruby.1.9.1.dylib 0x000000010010f4cb st_foreach + 27 (st.c:741)
6 coverage.bundle 0x00000001003d1c83 rb_coverage_result + 67 (coverage.c:64)
7 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
8 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
9 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
10 libruby.1.9.1.dylib 0x0000000100179d4a vm_call0 + 1290 (vm_eval.c:66)
11 libruby.1.9.1.dylib 0x00000001000486a9 rb
method_call + 361 (proc.c:1426)
12 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
13 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
14 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
15 libruby.1.9.1.dylib 0x000000010017965d rb_vm_invoke_proc + 877 (vm.c:591)
16 libruby.1.9.1.dylib 0x0000000100183ddf vm_call_method + 1967 (vm_insnhelper.c:428)
17 libruby.1.9.1.dylib 0x000000010017367e vm
exec_core + 22094 (insns.def:1048)
18 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
19 libruby.1.9.1.dylib 0x0000000100186610 rb_yield + 640 (vm.c:591)
20 libruby.1.9.1.dylib 0x0000000100012191 rb_ary_collect + 113 (array.c:2220)
21 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
22 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
23 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
24 libruby.1.9.1.dylib 0x0000000100186610 rb_yield + 640 (vm.c:591)
25 libruby.1.9.1.dylib 0x0000000100012191 rb_ary_collect + 113 (array.c:2220)
26 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
27 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
28 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
29 libruby.1.9.1.dylib 0x00000001001785eb rb_iseq_eval_main + 507 (vm.c:1422)
30 libruby.1.9.1.dylib 0x00000001000430a2 ruby_exec_internal + 178 (eval.c:201)
31 libruby.1.9.1.dylib 0x0000000100045dcc ruby_run_node + 60 (eval.c:248)
32 ruby-trunk 0x0000000100000ecf main + 79 (main.c:40)
33 ruby-trunk 0x0000000100000e74 start + 52

Thread 1:
0 libSystem.B.dylib 0x00007fff8850ef8a _semwait_signal + 10
1 libSystem.B.dylib 0x00007fff88512da1 pthread_cond_wait + 1286
2 libruby.1.9.1.dylib 0x0000000100190236 thread
timer + 198 (thread
pthread.c:295)
3 libSystem.B.dylib 0x00007fff8850d4f6 pthread_start + 331
4 libSystem.B.dylib 0x00007fff8850d3a9 thread
start + 13

Thread 2:
0 libSystem.B.dylib 0x00007fff884de986 read + 10
1 libruby.1.9.1.dylib 0x00000001001917b9 rb_thread_io_blocking_region + 185 (thread.c:1138)
2 libruby.1.9.1.dylib 0x0000000100066644 io_fillbuf + 116 (io.c:1227)
3 libruby.1.9.1.dylib 0x00000001000747ad rb_io_getline_1 + 3341 (io.c:2410)
4 libruby.1.9.1.dylib 0x0000000100074edc rb_io_gets_m + 44 (io.c:2591)
5 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
6 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
7 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
8 libruby.1.9.1.dylib 0x000000010017965d rb_vm_invoke_proc + 877 (vm.c:591)
9 libruby.1.9.1.dylib 0x0000000100192dec thread_start_func_2 + 1708 (thread.c:447)
10 libruby.1.9.1.dylib 0x0000000100193018 thread_start_func_1 + 104 (thread_pthread.c:621)
11 libSystem.B.dylib 0x00007fff8850d4f6 pthread_start + 331
12 libSystem.B.dylib 0x00007fff8850d3a9 thread
start + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000000000000b rcx: 0x0000000100344968 rdx: 0x0000000000000000
rdi: 0x00000000000119a0 rsi: 0x0000000000000006 rbp: 0x0000000100344980 rsp: 0x0000000100344968
r8: 0x00007fff70f2da40 r9: 0x0000000000000000 r10: 0x00007fff8851e616 r11: 0xffffff80002e4730
r12: 0x0000000100344990 r13: 0x00000001001a59ef r14: 0x0000000000000000 r15: 0x000000010083e040
rip: 0x00007fff885225d6 rfl: 0x0000000000000202 cr2: 0x000000000375f000

Binary Images:
0x100000000 - 0x100000fff +ruby-trunk ??? (???) /Users/kosaki/ruby/build/ruby-trunk
0x100003000 - 0x100226ff7 +libruby.1.9.1.dylib 1.9.1 (compatibility 1.9.1) /Users/kosaki/ruby/build/libruby.1.9.1.dylib
0x10034a000 - 0x10034bfff +encdb.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/encdb.bundle
0x10034e000 - 0x10034ffff +transdb.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/transdb.bundle
0x100353000 - 0x100353ff7 +string.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/-test-/string/string.bundle
0x100356000 - 0x10035bfff +stringio.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/stringio.bundle
0x1003d1000 - 0x1003d1ff7 +coverage.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/coverage.bundle
0x1003d4000 - 0x1003d5ff7 +etc.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/etc.bundle
0x1003d9000 - 0x1003ecfff +single_byte.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/single_byte.bundle
0x1003f5000 - 0x1003f6fef +big5.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/big5.bundle
0x1003f9000 - 0x1003fafef +cp949.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/cp949.bundle
0x1003fd000 - 0x1003fdfef +euc_kr.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/euc_kr.bundle
0x102440000 - 0x1024cbfef +big5.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/big5.bundle
0x1024ce000 - 0x1024cffff +emacs_mule.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/emacs_mule.bundle
0x1024d2000 - 0x1024d3fe7 +euc_jp.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/euc_jp.bundle
0x1024d6000 - 0x1024d7fef +euc_tw.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/euc_tw.bundle
0x1024da000 - 0x1024dbfef +gb18030.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/gb18030.bundle
0x1024de000 - 0x1024dffef +gbk.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/gbk.bundle
0x1024e2000 - 0x1024e2fff +iso_8859_1.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_1.bundle
0x1024e5000 - 0x1024e5fef +iso_8859_2.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_2.bundle
0x1024e8000 - 0x1024e8fef +iso_8859_3.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_3.bundle
0x1024eb000 - 0x1024ebfef +iso_8859_4.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_4.bundle
0x1024ee000 - 0x1024eefef +iso_8859_5.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_5.bundle
0x1024f1000 - 0x1024f1fef +iso_8859_6.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_6.bundle
0x1024f4000 - 0x1024f4fef +iso_8859_7.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_7.bundle
0x1024f7000 - 0x1024f7fef +iso_8859_8.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_8.bundle
0x1024fa000 - 0x1024fafef +iso_8859_9.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_9.bundle
0x1024fd000 - 0x1024fdfef +iso_8859_10.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_10.bundle
0x102700000 - 0x10273afff +korean.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/korean.bundle
0x10273d000 - 0x102776fff +japanese_euc.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/japanese_euc.bundle
0x102779000 - 0x1027a3fff +gb18030.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/gb18030.bundle
0x1027a6000 - 0x1027d4fef +gbk.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/gbk.bundle
0x1027d7000 - 0x1027d7fef +iso_8859_11.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_11.bundle
0x1027da000 - 0x1027dafef +iso_8859_13.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_13.bundle
0x1027dd000 - 0x1027ddfef +iso_8859_14.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_14.bundle
0x1027e0000 - 0x1027e0fef +iso_8859_15.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_15.bundle
0x1027e3000 - 0x1027e3fef +iso_8859_16.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/iso_8859_16.bundle
0x1027e6000 - 0x1027e6fef +koi8_r.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/koi8_r.bundle
0x1027e9000 - 0x1027e9fef +koi8_u.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/koi8_u.bundle
0x1027ec000 - 0x1027edfff +shift_jis.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/shift_jis.bundle
0x1027f0000 - 0x1027f0fff +utf_16be.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_16be.bundle
0x1027f3000 - 0x1027f5fff +utf_16_32.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/utf_16_32.bundle
0x1027f8000 - 0x1027f8fff +utf_16le.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_16le.bundle
0x1027fb000 - 0x1027fbfff +utf_32be.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_32be.bundle
0x103900000 - 0x103923fff +japanese_sjis.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/japanese_sjis.bundle
0x103926000 - 0x103926fff +utf_32le.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/utf_32le.bundle
0x103929000 - 0x103929fef +windows_1251.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/windows_1251.bundle
0x10392c000 - 0x10392dfe7 +iso2022.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/iso2022.bundle
0x103930000 - 0x103930fff +gb2312.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/gb2312.bundle
0x103933000 - 0x10395efef +chinese.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/chinese.bundle
0x103961000 - 0x10396afef +utf8_mac.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/utf8_mac.bundle
0x10396d000 - 0x103977fff +emoji.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji.bundle
0x10397a000 - 0x103995fef +emoji_sjis_docomo.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_sjis_docomo.bundle
0x103998000 - 0x1039b4fff +emoji_sjis_kddi.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_sjis_kddi.bundle
0x1039b7000 - 0x1039d0fff +emoji_iso2022_kddi.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_iso2022_kddi.bundle
0x1039d3000 - 0x1039eefef +emoji_sjis_softbank.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86_64-darwin10.7.4/enc/trans/emoji_sjis_softbank.bundle
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) /usr/lib/dyld
0x7fff805a7000 - 0x7fff8065dfff libobjc.A.dylib 227.0.0 (compatibility 1.0.0) /usr/lib/libobjc.A.dylib
0x7fff862ec000 - 0x7fff862f0ff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) /usr/lib/system/libmathCommon.A.dylib
0x7fff86677000 - 0x7fff866f4fef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) /usr/lib/libstdc++.6.dylib
0x7fff884d3000 - 0x7fff88694fff libSystem.B.dylib 125.2.10 (compatibility 1.0.0) /usr/lib/libSystem.B.dylib
0x7fff88789000 - 0x7fff887d5fff libauto.dylib ??? (???) /usr/lib/libauto.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib


Related issues

Related to Ruby trunk - Bug #4929: test/dl/test_func.rb was crashed on Mac Closed 06/26/2011

Associated revisions

Revision 32404
Added by Tomoyuki Chikanaga almost 4 years ago

  • ext/coverage/coverage.c: resurrect r32071 + add GC guard for
    rb_coverages. [Bug #4927]
    [Feature #4796]

  • test/coverage/test_coverage.rb resurrect r32071.

Revision 32404
Added by Tomoyuki Chikanaga almost 4 years ago

  • ext/coverage/coverage.c: resurrect r32071 + add GC guard for
    rb_coverages. [Bug #4927]
    [Feature #4796]

  • test/coverage/test_coverage.rb resurrect r32071.

History

#1 Updated by Yusuke Endoh almost 4 years ago

  • ruby -v changed from ruby 1.9.3dev (2011-06-20 trunk 32176) [x86_64-darwin10.7.4] to -

Hello.

2011/6/26 Motohiro KOSAKI kosaki.motohiro@gmail.com:

test-all w/ --gc-stress got crash on may mac os x.

Could you try this patch?

diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c
index 3a26aaa..513bf9c 100644
--- a/ext/coverage/coverage.c
+++ b/ext/coverage/coverage.c
@@ -103,4 +103,5 @@ Init_coverage(void)
VALUE rb_mCoverage = rb_define_module("Coverage");
rb_define_module_function(rb_mCoverage, "start", rb_coverage_start, 0);
rb_define_module_function(rb_mCoverage, "result", rb_coverage_result, 0);
+ rb_gc_register_mark_object(rb_coverages);
}

-- C level backtrace information -------------------------------------------

-- Other runtime information -----------------------------------------------

BTW, I wonder why is C level backtrace provided in mac.

--
Yusuke Endoh mame@tsg.ne.jp

#2 Updated by Motohiro KOSAKI almost 4 years ago

  • Status changed from Open to Assigned
  • Assignee set to Yusuke Endoh

Could you try this patch?

I have no luck. crashed again.

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff885225d6 _kill + 10
1 libSystem.B.dylib 0x00007fff885c2cde abort + 83
2 libruby.1.9.1.dylib 0x000000010003e27d 0x100003000 + 242301
3 libruby.1.9.1.dylib 0x0000000100106ac4 0x100003000 + 1063620
4 libSystem.B.dylib 0x00007fff8853466a sigtramp + 26
5 libruby.1.9.1.dylib 0x000000010010f4cb st_foreach + 27 (st.c:741)
6 coverage.bundle 0x00000001003d1c63 rb_coverage_result + 67 (coverage.c:64)
7 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
8 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
9 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
10 libruby.1.9.1.dylib 0x0000000100179d4a vm_call0 + 1290 (vm_eval.c:66)
11 libruby.1.9.1.dylib 0x00000001000486a9 rb
method_call + 361 (proc.c:1426)
12 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
13 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
14 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
15 libruby.1.9.1.dylib 0x000000010017965d rb_vm_invoke_proc + 877 (vm.c:591)
16 libruby.1.9.1.dylib 0x0000000100183ddf vm_call_method + 1967 (vm_insnhelper.c:428)
17 libruby.1.9.1.dylib 0x000000010017367e vm
exec_core + 22094 (insns.def:1048)
18 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
19 libruby.1.9.1.dylib 0x0000000100186610 rb_yield + 640 (vm.c:591)
20 libruby.1.9.1.dylib 0x0000000100012191 rb_ary_collect + 113 (array.c:2220)
21 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
22 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
23 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
24 libruby.1.9.1.dylib 0x0000000100186610 rb_yield + 640 (vm.c:591)
25 libruby.1.9.1.dylib 0x0000000100012191 rb_ary_collect + 113 (array.c:2220)
26 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
27 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
28 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
29 libruby.1.9.1.dylib 0x00000001001785eb rb_iseq_eval_main + 507 (vm.c:1422)
30 libruby.1.9.1.dylib 0x00000001000430a2 ruby_exec_internal + 178 (eval.c:201)
31 libruby.1.9.1.dylib 0x0000000100045dcc ruby_run_node + 60 (eval.c:248)
32 ruby-trunk 0x0000000100000ecf main + 79 (main.c:40)
33 ruby-trunk 0x0000000100000e74 start + 52

Thread 1:
0 libSystem.B.dylib 0x00007fff8850ef8a _semwait_signal + 10
1 libSystem.B.dylib 0x00007fff88512da1 pthread_cond_wait + 1286
2 libruby.1.9.1.dylib 0x0000000100190236 thread
timer + 198 (thread
pthread.c:295)
3 libSystem.B.dylib 0x00007fff8850d4f6 pthread_start + 331
4 libSystem.B.dylib 0x00007fff8850d3a9 thread
start + 13

Thread 2:
0 libSystem.B.dylib 0x00007fff884de986 read + 10
1 libruby.1.9.1.dylib 0x00000001001917b9 rb_thread_io_blocking_region + 185 (thread.c:1138)
2 libruby.1.9.1.dylib 0x0000000100066644 io_fillbuf + 116 (io.c:1227)
3 libruby.1.9.1.dylib 0x00000001000747ad rb_io_getline_1 + 3341 (io.c:2410)
4 libruby.1.9.1.dylib 0x0000000100074edc rb_io_gets_m + 44 (io.c:2591)
5 libruby.1.9.1.dylib 0x00000001001839d3 vm_call_method + 931 (vm_insnhelper.c:404)
6 libruby.1.9.1.dylib 0x0000000100172f5e vm_exec_core + 20270 (insns.def:1012)
7 libruby.1.9.1.dylib 0x00000001001782f3 vm_exec + 1459 (vm.c:1180)
8 libruby.1.9.1.dylib 0x000000010017965d rb_vm_invoke_proc + 877 (vm.c:591)
9 libruby.1.9.1.dylib 0x0000000100192dec thread_start_func_2 + 1708 (thread.c:447)
10 libruby.1.9.1.dylib 0x0000000100193018 thread_start_func_1 + 104 (thread_pthread.c:621)
11 libSystem.B.dylib 0x00007fff8850d4f6 pthread_start + 331
12 libSystem.B.dylib 0x00007fff8850d3a9 thread
start + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000000000000b rcx: 0x0000000100344968 rdx: 0x0000000000000000
rdi: 0x0000000000011d75 rsi: 0x0000000000000006 rbp: 0x0000000100344980 rsp: 0x0000000100344968
r8: 0x00007fff70f2da40 r9: 0x0000000000000000 r10: 0x00007fff8851e616 r11: 0xffffff80002e4730
r12: 0x0000000100344990 r13: 0x00000001001a59ef r14: 0x0000000000000000 r15: 0x000000010083dfc8
rip: 0x00007fff885225d6 rfl: 0x0000000000000202 cr2: 0x00007fff70f25120

#3 Updated by Motohiro KOSAKI almost 4 years ago

This crash disappered when I revert r32071.
But instead, following test failure was shown.


TestCoverage#test_restarting_coverage = 0.54 s = F
TestCoverage#test_result_with_nothing = 0.02 s = .
TestCoverage#test_result_without_start = 0.18 s = .

Finished tests in 0.742007s, 4.0431 tests/s, 4.0431 assertions/s.

1) Failure:
test_restarting_coverage(TestCoverage) [/Users/kosaki/ruby/test/coverage/test_coverage.rb:37]:
expected but was
.

3 tests, 3 assertions, 1 failures, 0 errors, 0 skips

#4 Updated by Yusuke Endoh almost 4 years ago

  • Status changed from Assigned to Closed

r32071 reverted. Bummer!

Yusuke Endoh mame@tsg.ne.jp

#5 Updated by Tomoyuki Chikanaga almost 4 years ago

  • Assignee changed from Yusuke Endoh to Tomoyuki Chikanaga

Sorry for late response.

I've reduced reproducible script at x86_64-darwin10.8.0 as follows.

require "coverage"

GC.stress = true

Coverage.start
Coverage.result
p [0]
Coverage.start
Coverage.result

I'll try to investigate this issue.

Also available in: Atom PDF