Project

General

Profile

Bug #1842

mspec で SIGABRT

Added by znz (Kazuhiro NISHIYAMA) about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-07-31 trunk 24331) [i686-linux]
Backport:

Description

=begin
chkbuild のログを見ると mspec で SIGABRT が出ていますが、lib/mspec/mocks/mock.rb の一部の
SpecExpectation.fail_with(
"Mock '#{name_or_inspect obj}' expected to receive '#{key.last}' " \
"#{qualifier.to_s.sub('_', ' ')} #{count} times",
"but received it #{proxy.calls} times")
というところで発生していて、さらに絞り込んでみたところ、
"#{}""#{} "
で再現するようです。

% ruby-trunk -e '"#{}""#{} "'
-e: [BUG] Segmentation fault
ruby 1.9.2dev (2009-07-31 trunk 24331) [i686-linux]

-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:000ffc d:000ffc TOP


-- C level backtrace information -------------------------------------------
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_vm_bugreport+0x87) [0xb7f7d367]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7e6e5a9]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_bug+0x42) [0xb7e6e62d]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0fd89]
[0xb7fdf440]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f57a15]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f57a65]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f606f9]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_iseq_compile_node+0x403) [0xb7f552bc]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f660fb]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_iseq_new_with_opt+0x43) [0xb7f66152]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_iseq_new_main+0x7b) [0xb7f66070]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0dbf9]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(ruby_process_options+0x70) [0xb7f0ee06]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(ruby_options+0x99) [0xb7e72aa4]
ruby-trunk(main+0x7c) [0x80487f0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7c5e450]
ruby-trunk [0x8048711]

[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
=end

History

#1

Updated by znz (Kazuhiro NISHIYAMA) about 10 years ago

  • Status changed from Open to Closed

=begin
fix in r24332

(ML連携がうまく動いていないようなので手動でclose)
=end

Also available in: Atom PDF