Project

General

Profile

Actions

Bug #3578

closed

Segmentation fault in threaded program

Added by cjbottaro (Christopher Bottaro) over 13 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
ruby -v:
1.9.1-p378
[ruby-core:31308]

Description

=begin
I can't seem to reproduce this in a non threaded program.

Not sure what other information I can give...

/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift/client.rb:48: [BUG] Segmentation fault
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]

-- control frame ----------
c:0032 p:---- s:0160 b:0160 l:000159 d:000159 CFUNC :read
c:0031 p:0057 s:0156 b:0156 l:000155 d:000155 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift/client.rb:48
c:0030 p:0018 s:0148 b:0148 l:000147 d:000147 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/vendor/gen-rb/cassandra.rb:78
c:0029 p:0029 s:0144 b:0144 l:000143 d:000143 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/vendor/gen-rb/cassandra.rb:70
c:0028 p:0016 s:0137 b:0137 l:000136 d:000136 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:64
c:0027 p:0023 s:0132 b:0132 l:000131 d:000131 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:161
c:0026 p:0029 s:0127 b:0127 l:000126 d:000126 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:60
c:0025 p:0014 s:0122 b:0122 l:000121 d:000121 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:151
c:0024 p:0015 s:0115 b:0115 l:000114 d:000114 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:53
c:0023 p:0035 s:0109 b:0109 l:000108 d:000108 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:147
c:0022 p:0015 s:0104 b:0104 l:000103 d:000103 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:23
c:0021 p:0156 s:0100 b:0099 l:000098 d:000098 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/lib/cassandra/protocol.rb:53
c:0020 p:0077 s:0084 b:0084 l:000083 d:000083 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/lib/cassandra/cassandra.rb:204
c:0019 p:0019 s:0073 b:0073 l:000072 d:000072 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/lib/cassandra/cassandra.rb:195
c:0018 p:0068 s:0067 b:0067 l:000066 d:000066 METHOD /home/onespot/editor-ui/tempest/tasks/image_crawl_task.rb:72
c:0017 p:0016 s:0059 b:0059 l:000052 d:000058 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/task.rb:24
c:0016 p:0115 s:0057 b:0057 l:000056 d:000056 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/require.rb:23
c:0015 p:0017 s:0053 b:0053 l:000052 d:000052 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/task.rb:24
c:0014 p:0011 s:0050 b:0050 l:0019a0 d:000049 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/dispatcher.rb:54
c:0013 p:---- s:0048 b:0048 l:000047 d:000047 FINISH
c:0012 p:---- s:0046 b:0046 l:000045 d:000045 CFUNC :call
c:0011 p:0044 s:0042 b:0040 l:000039 d:000039 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:64
c:0010 p:0009 s:0037 b:0037 l:000780 d:000036 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:49
c:0009 p:0109 s:0035 b:0035 l:000890 d:000890 METHOD /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/timeout.rb:52
c:0008 p:---- s:0023 b:0023 l:000022 d:000022 FINISH
c:0007 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :call
c:0006 p:0055 s:0017 b:0017 l:000780 d:000780 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:49
c:0005 p:0036 s:0013 b:0013 l:000012 d:000012 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:41
c:0004 p:0017 s:0010 b:0010 l:000009 d:000009 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:24
c:0003 p:0011 s:0007 b:0007 l:001c20 d:000006 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:11
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

-- Ruby level backtrace information-----------------------------------------
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift/client.rb:48:in read' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift/client.rb:48:in receive_message'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/vendor/gen-rb/cassandra.rb:78:in recv_multiget' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/vendor/gen-rb/cassandra.rb:70:in multiget'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:64:in send_rpc' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:161:in send_rpc'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:60:in proxy' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:151:in proxy'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:53:in handled_proxy' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:147:in handled_proxy'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift_client-0.4.3/lib/thrift_client/abstract_thrift_client.rb:23:in multiget' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/lib/cassandra/protocol.rb:53:in _multiget'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/lib/cassandra/cassandra.rb:204:in multi_get' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/cassandra-0.8.2/lib/cassandra/cassandra.rb:195:in get'
/home/onespot/editor-ui/tempest/tasks/image_crawl_task.rb:72:in start' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/task.rb:24:in block in run'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/require.rb:23:in record_requires!' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/task.rb:24:in run'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/task_tempest-0.2.0/lib/task_tempest/dispatcher.rb:54:in block in dispatch' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:64:in call'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:64:in process_execution' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:49:in block in process_execution_with_timeout'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/timeout.rb:52:in timeout' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:49:in call'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:49:in process_execution_with_timeout' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:41:in pop_and_process_execution'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:24:in run' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thread_storm-0.5.1/lib/thread_storm/worker.rb:11:in block in initialize'

-- C level backtrace information -------------------------------------------
0x2aaaaadea90a /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9(rb_vm_bugreport+0x4a) [0x2aaaaadea90a]
0x2aaaaad19674 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaad19674]
0x2aaaaad197e3 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9(rb_bug+0xb3) [0x2aaaaad197e3]
0x2aaaaad9af3c /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaad9af3c]
0x2aaaab09c7d0 /lib/libpthread.so.0 [0x2aaaab09c7d0]
0x2aaaaad2d541 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9(rb_hash_aref+0x11) [0x2aaaaad2d541]
0x2aaaafa04285 /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift_native.so [0x2aaaafa04285]
0x2aaaafa0424e /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift_native.so [0x2aaaafa0424e]
0x2aaaafa0435d /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift_native.so [0x2aaaafa0435d]
0x2aaaafa03ee9 /usr/local/rvm/gems/ruby-1.9.1-p378/gems/thrift-0.2.0.4/lib/thrift_native.so [0x2aaaafa03ee9]
0x2aaaaaddcd1e /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaaddcd1e]
0x2aaaaadddd26 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaadddd26]
0x2aaaaaddebfa /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaaddebfa]
0x2aaaaade411e /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaade411e]
0x2aaaaade4708 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaade4708]
0x2aaaaade4ba2 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9(rb_vm_invoke_proc+0xb2) [0x2aaaaade4ba2]
0x2aaaaaddcd1e /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaaddcd1e]
0x2aaaaadddd26 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaadddd26]
0x2aaaaaddebfa /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaaddebfa]
0x2aaaaade411e /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaade411e]
0x2aaaaade62db /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaade62db]
0x2aaaaad1ff56 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9(rb_method_call+0x186) [0x2aaaaad1ff56]
0x2aaaaaddcd1e /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaaddcd1e]
0x2aaaaadddd26 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaadddd26]
0x2aaaaaddebfa /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaaddebfa]
0x2aaaaade411e /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaade411e]
0x2aaaaade4708 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaade4708]
0x2aaaaade4ba2 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9(rb_vm_invoke_proc+0xb2) [0x2aaaaade4ba2]
0x2aaaaadeefa8 /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaadeefa8]
0x2aaaaadef0ce /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/libruby.so.1.9 [0x2aaaaadef0ce]
0x2aaaab0943f7 /lib/libpthread.so.0 [0x2aaaab0943f7]
0x2aaaabc48bbd /lib/libc.so.6(clone+0x6d) [0x2aaaabc48bbd]

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

Aborted
=end

Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0