Bug #4927

crash on test/coverage/test_coverage.rb

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

[ruby-core:37352]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga
Category:core
Target version:1.9.3
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/testcoverage.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
runsuite'
/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
testresultwithnothing'
/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/x8664-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/dependencylist.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/customrequire.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/testellipsize.rb
    25 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/trans/singlebyte.bundle
    26 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/big5.bundle
    27 /Users/kosaki/ruby/build/.ext/x8664-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/x8664-darwin10.7.4/enc/trans/korean.bundle
    30 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/emacsmule.bundle
    31 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/eucjp.bundle
    32 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/trans/japaneseeuc.bundle
    33 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/euckr.bundle
    34 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/euctw.bundle
    35 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/gb18030.bundle
    36 /Users/kosaki/ruby/build/.ext/x8664-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/x8664-darwin10.7.4/enc/trans/gbk.bundle
    39 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso88591.bundle
    40 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88592.bundle
    41 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso88593.bundle
    42 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88594.bundle
    43 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso88595.bundle
    44 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88596.bundle
    45 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso88597.bundle
    46 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88598.bundle
    47 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso88599.bundle
    48 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885910.bundle
    49 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso885911.bundle
    50 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885913.bundle
    51 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso885914.bundle
    52 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885915.bundle
    53 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/iso885916.bundle
    54 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/koi8r.bundle
    55 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/koi8u.bundle
    56 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/shiftjis.bundle
    57 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/japanesesjis.bundle
    58 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/utf16be.bundle
    59 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/utf1632.bundle
    60 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/utf16le.bundle
    61 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/utf32be.bundle
    62 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/utf32le.bundle
    63 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/windows1251.bundle
    64 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/trans/iso2022.bundle
    65 /Users/kosaki/ruby/build/.ext/x8664-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/x8664-darwin10.7.4/enc/trans/utf8mac.bundle
    68 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emoji.bundle
    69 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/trans/emojisjisdocomo.bundle
    70 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emojisjiskddi.bundle
    71 /Users/kosaki/ruby/build/.ext/x86
    64-darwin10.7.4/enc/trans/emojiiso2022kddi.bundle
    72 /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emojisjissoftbank.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/testcgiutil.rb
    79 /Users/kosaki/ruby/build/.ext/x8664-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 runparallel'
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
runparallel'
from /Users/kosaki/ruby/lib/test/unit.rb:566:in _run_suites'
from /Users/kosaki/ruby/lib/minitest/unit.rb:746:in
runanything'
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: EXCBADACCESS (SIGABRT)
Exception Codes: KERNINVALIDADDRESS 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 rbcoverageresult + 67 (coverage.c:64)
7 libruby.1.9.1.dylib 0x00000001001839d3 vmcallmethod + 931 (vminsnhelper.c:404)
8 libruby.1.9.1.dylib 0x0000000100172f5e vm
execcore + 20270 (insns.def:1012)
9 libruby.1.9.1.dylib 0x00000001001782f3 vm
exec + 1459 (vm.c:1180)
10 libruby.1.9.1.dylib 0x0000000100179d4a vmcall0 + 1290 (vmeval.c:66)
11 libruby.1.9.1.dylib 0x00000001000486a9 rbmethodcall + 361 (proc.c:1426)
12 libruby.1.9.1.dylib 0x00000001001839d3 vmcallmethod + 931 (vminsnhelper.c:404)
13 libruby.1.9.1.dylib 0x0000000100172f5e vm
execcore + 20270 (insns.def:1012)
14 libruby.1.9.1.dylib 0x00000001001782f3 vm
exec + 1459 (vm.c:1180)
15 libruby.1.9.1.dylib 0x000000010017965d rbvminvokeproc + 877 (vm.c:591)
16 libruby.1.9.1.dylib 0x0000000100183ddf vm
callmethod + 1967 (vminsnhelper.c:428)
17 libruby.1.9.1.dylib 0x000000010017367e vmexeccore + 22094 (insns.def:1048)
18 libruby.1.9.1.dylib 0x00000001001782f3 vmexec + 1459 (vm.c:1180)
19 libruby.1.9.1.dylib 0x0000000100186610 rb
yield + 640 (vm.c:591)
20 libruby.1.9.1.dylib 0x0000000100012191 rbarycollect + 113 (array.c:2220)
21 libruby.1.9.1.dylib 0x00000001001839d3 vmcallmethod + 931 (vminsnhelper.c:404)
22 libruby.1.9.1.dylib 0x0000000100172f5e vm
execcore + 20270 (insns.def:1012)
23 libruby.1.9.1.dylib 0x00000001001782f3 vm
exec + 1459 (vm.c:1180)
24 libruby.1.9.1.dylib 0x0000000100186610 rbyield + 640 (vm.c:591)
25 libruby.1.9.1.dylib 0x0000000100012191 rb
arycollect + 113 (array.c:2220)
26 libruby.1.9.1.dylib 0x00000001001839d3 vm
callmethod + 931 (vminsnhelper.c:404)
27 libruby.1.9.1.dylib 0x0000000100172f5e vmexeccore + 20270 (insns.def:1012)
28 libruby.1.9.1.dylib 0x00000001001782f3 vmexec + 1459 (vm.c:1180)
29 libruby.1.9.1.dylib 0x00000001001785eb rb
iseqevalmain + 507 (vm.c:1422)
30 libruby.1.9.1.dylib 0x00000001000430a2 rubyexecinternal + 178 (eval.c:201)
31 libruby.1.9.1.dylib 0x0000000100045dcc rubyrunnode + 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 _semwaitsignal + 10
1 libSystem.B.dylib 0x00007fff88512da1 pthreadcondwait + 1286
2 libruby.1.9.1.dylib 0x0000000100190236 thread
timer + 198 (threadpthread.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 rbthreadioblockingregion + 185 (thread.c:1138)
2 libruby.1.9.1.dylib 0x0000000100066644 iofillbuf + 116 (io.c:1227)
3 libruby.1.9.1.dylib 0x00000001000747ad rb
iogetline1 + 3341 (io.c:2410)
4 libruby.1.9.1.dylib 0x0000000100074edc rbiogetsm + 44 (io.c:2591)
5 libruby.1.9.1.dylib 0x00000001001839d3 vm
callmethod + 931 (vminsnhelper.c:404)
6 libruby.1.9.1.dylib 0x0000000100172f5e vmexeccore + 20270 (insns.def:1012)
7 libruby.1.9.1.dylib 0x00000001001782f3 vmexec + 1459 (vm.c:1180)
8 libruby.1.9.1.dylib 0x000000010017965d rb
vminvokeproc + 877 (vm.c:591)
9 libruby.1.9.1.dylib 0x0000000100192dec threadstartfunc2 + 1708 (thread.c:447)
10 libruby.1.9.1.dylib 0x0000000100193018 thread
startfunc1 + 104 (threadpthread.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/x8664-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/x8664-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/x8664-darwin10.7.4/coverage.bundle
0x1003d4000 - 0x1003d5ff7 +etc.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86
64-darwin10.7.4/etc.bundle
0x1003d9000 - 0x1003ecfff +singlebyte.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/singlebyte.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/x8664-darwin10.7.4/enc/cp949.bundle
0x1003fd000 - 0x1003fdfef +euc
kr.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/euckr.bundle
0x102440000 - 0x1024cbfef +big5.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/big5.bundle
0x1024ce000 - 0x1024cffff +emacs
mule.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/emacsmule.bundle
0x1024d2000 - 0x1024d3fe7 +eucjp.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/eucjp.bundle
0x1024d6000 - 0x1024d7fef +euc
tw.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/euctw.bundle
0x1024da000 - 0x1024dbfef +gb18030.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-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 +iso88591.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88591.bundle
0x1024e5000 - 0x1024e5fef +iso
88592.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88592.bundle
0x1024e8000 - 0x1024e8fef +iso88593.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88593.bundle
0x1024eb000 - 0x1024ebfef +iso
88594.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88594.bundle
0x1024ee000 - 0x1024eefef +iso88595.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88595.bundle
0x1024f1000 - 0x1024f1fef +iso
88596.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88596.bundle
0x1024f4000 - 0x1024f4fef +iso88597.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88597.bundle
0x1024f7000 - 0x1024f7fef +iso
88598.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88598.bundle
0x1024fa000 - 0x1024fafef +iso88599.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso88599.bundle
0x1024fd000 - 0x1024fdfef +iso
885910.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885910.bundle
0x102700000 - 0x10273afff +korean.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/korean.bundle
0x10273d000 - 0x102776fff +japanese
euc.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/japaneseeuc.bundle
0x102779000 - 0x1027a3fff +gb18030.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-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 +iso885911.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885911.bundle
0x1027da000 - 0x1027dafef +iso
885913.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885913.bundle
0x1027dd000 - 0x1027ddfef +iso885914.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885914.bundle
0x1027e0000 - 0x1027e0fef +iso
885915.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885915.bundle
0x1027e3000 - 0x1027e3fef +iso885916.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/iso885916.bundle
0x1027e6000 - 0x1027e6fef +koi8
r.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/koi8r.bundle
0x1027e9000 - 0x1027e9fef +koi8u.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/koi8u.bundle
0x1027ec000 - 0x1027edfff +shift
jis.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/shiftjis.bundle
0x1027f0000 - 0x1027f0fff +utf16be.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/utf16be.bundle
0x1027f3000 - 0x1027f5fff +utf
1632.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/utf1632.bundle
0x1027f8000 - 0x1027f8fff +utf16le.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/utf16le.bundle
0x1027fb000 - 0x1027fbfff +utf
32be.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/utf32be.bundle
0x103900000 - 0x103923fff +japanesesjis.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/japanesesjis.bundle
0x103926000 - 0x103926fff +utf
32le.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/utf32le.bundle
0x103929000 - 0x103929fef +windows1251.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/windows1251.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/x8664-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 +utf8mac.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/utf8mac.bundle
0x10396d000 - 0x103977fff +emoji.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x86
64-darwin10.7.4/enc/trans/emoji.bundle
0x10397a000 - 0x103995fef +emojisjisdocomo.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emojisjisdocomo.bundle
0x103998000 - 0x1039b4fff +emoji
sjiskddi.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emojisjiskddi.bundle
0x1039b7000 - 0x1039d0fff +emojiiso2022kddi.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emojiiso2022kddi.bundle
0x1039d3000 - 0x1039eefef +emoji
sjissoftbank.bundle ??? (???) /Users/kosaki/ruby/build/.ext/x8664-darwin10.7.4/enc/trans/emojisjissoftbank.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 3 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 3 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 @@ Initcoverage(void)
VALUE rb
mCoverage = rbdefinemodule("Coverage");
rbdefinemodulefunction(rbmCoverage, "start", rbcoveragestart, 0);
rbdefinemodulefunction(rbmCoverage, "result", rbcoverageresult, 0);
+ rbgcregistermarkobject(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 3 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 rbcoverageresult + 67 (coverage.c:64)
7 libruby.1.9.1.dylib 0x00000001001839d3 vmcallmethod + 931 (vminsnhelper.c:404)
8 libruby.1.9.1.dylib 0x0000000100172f5e vm
execcore + 20270 (insns.def:1012)
9 libruby.1.9.1.dylib 0x00000001001782f3 vm
exec + 1459 (vm.c:1180)
10 libruby.1.9.1.dylib 0x0000000100179d4a vmcall0 + 1290 (vmeval.c:66)
11 libruby.1.9.1.dylib 0x00000001000486a9 rbmethodcall + 361 (proc.c:1426)
12 libruby.1.9.1.dylib 0x00000001001839d3 vmcallmethod + 931 (vminsnhelper.c:404)
13 libruby.1.9.1.dylib 0x0000000100172f5e vm
execcore + 20270 (insns.def:1012)
14 libruby.1.9.1.dylib 0x00000001001782f3 vm
exec + 1459 (vm.c:1180)
15 libruby.1.9.1.dylib 0x000000010017965d rbvminvokeproc + 877 (vm.c:591)
16 libruby.1.9.1.dylib 0x0000000100183ddf vm
callmethod + 1967 (vminsnhelper.c:428)
17 libruby.1.9.1.dylib 0x000000010017367e vmexeccore + 22094 (insns.def:1048)
18 libruby.1.9.1.dylib 0x00000001001782f3 vmexec + 1459 (vm.c:1180)
19 libruby.1.9.1.dylib 0x0000000100186610 rb
yield + 640 (vm.c:591)
20 libruby.1.9.1.dylib 0x0000000100012191 rbarycollect + 113 (array.c:2220)
21 libruby.1.9.1.dylib 0x00000001001839d3 vmcallmethod + 931 (vminsnhelper.c:404)
22 libruby.1.9.1.dylib 0x0000000100172f5e vm
execcore + 20270 (insns.def:1012)
23 libruby.1.9.1.dylib 0x00000001001782f3 vm
exec + 1459 (vm.c:1180)
24 libruby.1.9.1.dylib 0x0000000100186610 rbyield + 640 (vm.c:591)
25 libruby.1.9.1.dylib 0x0000000100012191 rb
arycollect + 113 (array.c:2220)
26 libruby.1.9.1.dylib 0x00000001001839d3 vm
callmethod + 931 (vminsnhelper.c:404)
27 libruby.1.9.1.dylib 0x0000000100172f5e vmexeccore + 20270 (insns.def:1012)
28 libruby.1.9.1.dylib 0x00000001001782f3 vmexec + 1459 (vm.c:1180)
29 libruby.1.9.1.dylib 0x00000001001785eb rb
iseqevalmain + 507 (vm.c:1422)
30 libruby.1.9.1.dylib 0x00000001000430a2 rubyexecinternal + 178 (eval.c:201)
31 libruby.1.9.1.dylib 0x0000000100045dcc rubyrunnode + 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 _semwaitsignal + 10
1 libSystem.B.dylib 0x00007fff88512da1 pthreadcondwait + 1286
2 libruby.1.9.1.dylib 0x0000000100190236 thread
timer + 198 (threadpthread.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 rbthreadioblockingregion + 185 (thread.c:1138)
2 libruby.1.9.1.dylib 0x0000000100066644 iofillbuf + 116 (io.c:1227)
3 libruby.1.9.1.dylib 0x00000001000747ad rb
iogetline1 + 3341 (io.c:2410)
4 libruby.1.9.1.dylib 0x0000000100074edc rbiogetsm + 44 (io.c:2591)
5 libruby.1.9.1.dylib 0x00000001001839d3 vm
callmethod + 931 (vminsnhelper.c:404)
6 libruby.1.9.1.dylib 0x0000000100172f5e vmexeccore + 20270 (insns.def:1012)
7 libruby.1.9.1.dylib 0x00000001001782f3 vmexec + 1459 (vm.c:1180)
8 libruby.1.9.1.dylib 0x000000010017965d rb
vminvokeproc + 877 (vm.c:591)
9 libruby.1.9.1.dylib 0x0000000100192dec threadstartfunc2 + 1708 (thread.c:447)
10 libruby.1.9.1.dylib 0x0000000100193018 thread
startfunc1 + 104 (threadpthread.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 3 years ago

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


TestCoverage#testrestartingcoverage = 0.54 s = F
TestCoverage#testresultwithnothing = 0.02 s = .
TestCoverage#test
resultwithoutstart = 0.18 s = .

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

1) Failure:
testrestartingcoverage(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 3 years ago

  • Status changed from Assigned to Closed

r32071 reverted. Bummer!

Yusuke Endoh mame@tsg.ne.jp

#5 Updated by Tomoyuki Chikanaga almost 3 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