Project

General

Profile

Actions

Bug #2791

closed

Segmentation Fault in 1.9.1.p376

Added by pastysojourner (Chris Hanks) about 14 years ago. Updated about 13 years ago.

Status:
Rejected
Assignee:
-
ruby -v:
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]
[ruby-core:28333]

Description

=begin
Hello -

I was running my rspec suite on my Rails app, and got the following segmentation fault. I haven't been able to reproduce it, but I don't think the test failures or the object_id warnings had anything to do with it - I've had those before without incident.

Here goes:

....................../home/chris/.gem/ruby/1.9.1/gems/mongo_mapper-0.7.0/lib/mongo_mapper/plugins/associations/one_proxy.rb:5: warning: undefining object_id' may cause serious problem ............................................................................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF./home/chris/.gem/ruby/1.9.1/gems/mongo_mapper-0.7.0/lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb:5: warning: undefining object_id' may cause serious problem
F....../home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]

-- control frame ----------
c:0030 p:---- s:0122 b:0122 l:000121 d:000121 CFUNC :inspect
c:0029 p:---- s:0120 b:0120 l:000119 d:000119 CFUNC :inspect
c:0028 p:---- s:0118 b:0118 l:000117 d:000117 CFUNC :inspect
c:0027 p:---- s:0116 b:0116 l:000115 d:000115 CFUNC :to_str
c:0026 p:---- s:0114 b:0114 l:000113 d:000113 CFUNC :to_s
c:0025 p:---- s:0112 b:0112 l:000111 d:000111 CFUNC :inspect
c:0024 p:0030 s:0109 b:0108 l:000107 d:000107 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84
c:0023 p:0021 s:0105 b:0103 l:000102 d:000102 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:64
c:0022 p:0179 s:0100 b:0100 l:000099 d:000099 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/expectations/handler.rb:38
c:0021 p:0034 s:0092 b:0092 l:000091 d:000091 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb:50
c:0020 p:0022 s:0086 b:0086 l:00219c d:00151c BLOCK /home/chris/daiphe-mcat/spec/models/quiz_builder_spec.rb:74
c:0019 p:---- s:0084 b:0084 l:000083 d:000083 FINISH
c:0018 p:---- s:0082 b:0082 l:000081 d:000081 CFUNC :instance_eval
c:0017 p:0023 s:0079 b:0079 l:000063 d:000078 BLOCK /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40
c:0016 p:0031 s:0076 b:0076 l:000075 d:000075 METHOD /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/ruby/1.9.1/timeout.rb:44
c:0015 p:0061 s:0064 b:0064 l:000063 d:000063 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37
c:0014 p:0046 s:0057 b:0056 l:002148 d:0020dc BLOCK /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214
c:0013 p:---- s:0052 b:0052 l:000051 d:000051 FINISH
c:0012 p:---- s:0050 b:0050 l:000049 d:000049 CFUNC :each
c:0011 p:0035 s:0047 b:0047 l:002148 d:002148 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212
c:0010 p:0135 s:0039 b:0039 l:000038 d:000038 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103
c:0009 p:0016 s:0031 b:0030 l:000d38 d:002040 BLOCK /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23
c:0008 p:---- s:0027 b:0027 l:000026 d:000026 FINISH
c:0007 p:---- s:0025 b:0025 l:000024 d:000024 CFUNC :each
c:0006 p:0033 s:0022 b:0022 l:000d38 d:000d38 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22
c:0005 p:0223 s:0018 b:0018 l:000017 d:000017 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/options.rb:151
c:0004 p:0068 s:0013 b:0013 l:000012 d:000012 METHOD /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9
c:0003 p:0112 s:0008 b:0007 l:001d3c d:001cd8 EVAL /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/bin/spec:5
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001d3c d:001d3c TOP

-- Ruby level backtrace information-----------------------------------------
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in inspect' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in inspect'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in inspect' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in to_str'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in to_s' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in inspect'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:84:in given_error' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/matchers/raise_error.rb:64:in failure_message_for_should_not'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/expectations/handler.rb:38:in handle_matcher' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb:50:in should_not'
/home/chris/daiphe-mcat/spec/models/quiz_builder_spec.rb:74:in block (3 levels) in <top (required)>' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in instance_eval'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in block in execute' /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/ruby/1.9.1/timeout.rb:44:in timeout'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37:in execute' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214:in block in run_examples'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in each' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in run_examples'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in run' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in block in run'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in each' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in run'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in run_examples' /home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in run'
/home/chris/.gem/ruby/1.9.1/gems/rspec-1.2.9/bin/spec:5:in `'

-- C level backtrace information -------------------------------------------
0x23b969 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_vm_bugreport+0x69) [0x23b969]
0x15632f /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x15632f]
0x1563ca /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_bug+0x3a) [0x1563ca]
0x1e2154 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x1e2154]
0x4e2410 [0x4e2410]
0x1f65a5 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x1f65a5]
0x1f67b3 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_str_buf_append+0x73) [0x1f67b3]
0x16c4ec /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x16c4ec]
0x16c100 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x16c100]
0x1e8b96 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(st_foreach+0xa6) [0x1e8b96]
0x16e250 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x16e250]
0x1576c9 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_ensure+0x99) [0x1576c9]
0x16d432 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_hash_foreach+0x52) [0x16d432]
0x16dc36 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x16dc36]
0x241b9e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x241b9e]
0x16c422 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x16c422]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x23553e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23553e]
0x22c4b3 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_funcall+0x143) [0x22c4b3]
0x18c9d7 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_inspect+0x37) [0x18c9d7]
0x18cc49 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18cc49]
0x211c7a /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x211c7a]
0x169857 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x169857]
0x1e8b96 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(st_foreach+0xa6) [0x1e8b96]
0x16e2bd /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(st_foreach_safe+0x3d) [0x16e2bd]
0x213ed5 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_ivar_foreach+0x135) [0x213ed5]
0x18be8e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18be8e]
0x241b9e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x241b9e]
0x18ed7c /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18ed7c]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x23553e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23553e]
0x22c4b3 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_funcall+0x143) [0x22c4b3]
0x18c9d7 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_inspect+0x37) [0x18c9d7]
0x18cc49 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18cc49]
0x211c7a /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x211c7a]
0x169857 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x169857]
0x1e8b96 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(st_foreach+0xa6) [0x1e8b96]
0x16e2bd /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(st_foreach_safe+0x3d) [0x16e2bd]
0x213ed5 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_ivar_foreach+0x135) [0x213ed5]
0x18be8e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18be8e]
0x241b9e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x241b9e]
0x18ed7c /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18ed7c]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x23553e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23553e]
0x22c4b3 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_funcall+0x143) [0x22c4b3]
0x18c9d7 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_inspect+0x37) [0x18c9d7]
0x15780a /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_protect+0xda) [0x15780a]
0x1567c9 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x1567c9]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x23553e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23553e]
0x22c4b3 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_funcall+0x143) [0x22c4b3]
0x18c56e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x18c56e]
0x18f5a1 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_convert_type+0x71) [0x18f5a1]
0x1ee219 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_str_to_str+0x39) [0x1ee219]
0x1f0e9d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_string_value+0x4d) [0x1f0e9d]
0x155410 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x155410]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x23553e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23553e]
0x22c4b3 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_funcall+0x143) [0x22c4b3]
0x1f07ea /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_obj_as_string+0x8a) [0x1f07ea]
0x1556d9 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x1556d9]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x229794 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x229794]
0x234e66 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x234e66]
0x22f3ba /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22f3ba]
0x23284b /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23284b]
0x23a01e /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23a01e]
0x23ab62 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23ab62]
0x229458 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x229458]
0x229794 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x229794]
0x234e66 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x234e66]
0x22f3ba /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22f3ba]
0x23284b /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23284b]
0x236b9b /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_yield+0x1cb) [0x236b9b]
0x130f22 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_ary_each+0x52) [0x130f22]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x229794 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x229794]
0x234e66 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x234e66]
0x22f3ba /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22f3ba]
0x23284b /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23284b]
0x236b9b /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_yield+0x1cb) [0x236b9b]
0x130f22 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_ary_each+0x52) [0x130f22]
0x22943d /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22943d]
0x229794 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x229794]
0x234e66 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x234e66]
0x22f3ba /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x22f3ba]
0x23284b /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9 [0x23284b]
0x232acb /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(rb_iseq_eval_main+0xab) [0x232acb]
0x1582f7 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(ruby_exec_node+0xb7) [0x1582f7]
0x1598f6 /home/chris/.ruby_versions/ruby-1.9.1-p376/lib/libruby.so.1.9(ruby_run_node+0x56) [0x1598f6]
0x80487f8 /home/chris/.ruby_versions/ruby-1.9.1-p376/bin/ruby(main+0x68) [0x80487f8]
0x2f7b56 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x2f7b56]
0x80486f1 /home/chris/.ruby_versions/ruby-1.9.1-p376/bin/ruby [0x80486f1]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted
rake aborted!
=end

Actions #1

Updated by mame (Yusuke Endoh) about 14 years ago

  • Status changed from Open to Feedback

=begin
Hi,

Could you post gdb backtrace information?

If you delete "undef_method :object_id" from mongo_mapper, does
the issue still occur?

It may be useful to publish the whole source code of your project
on github or anywhere.

--
Yusuke Endoh
=end

Actions #2

Updated by naruse (Yui NARUSE) almost 14 years ago

  • Status changed from Feedback to Rejected

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0