Project

General

Profile

Bug #6718

ruby segfault in abstract_mysql_adapter.rb when trying to run from command-line

Added by dpg (Dan Gailey) over 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Backport:
[ruby-core:46310]

Description

Ruby segfaults in abstract_mysql_adapter.rb:241 when trying to run a simple command from the command-line.

the command:
/bin/bash -l -c 'cd /var/www/schoolyard/releases/20120710202724 && script/rails runner -e production "Email.invite"'

ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

command output error log:

$ /bin/bash -l -c 'cd /var/www/schoolyard/releases/20120710202724 && script/rails runner -e production "Email.invite"'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:241: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

-- control frame ----------
c:0056 p:---- s:0208 b:0208 l:000207 d:000207 CFUNC :query
c:0055 p:0028 s:0204 b:0204 l:000203 d:000203 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract_mysql_adapt
c:0054 p:0052 s:0198 b:0198 l:000197 d:000197 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:21
c:0053 p:0139 s:0193 b:0193 l:000192 d:000192 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:27
c:0052 p:0047 s:0187 b:0187 l:000186 d:000186 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:36
c:0051 p:---- s:0180 b:0180 l:000179 d:000179 FINISH
c:0050 p:---- s:0178 b:0178 l:000177 d:000177 CFUNC :new
c:0049 p:0177 s:0171 b:0171 l:000170 d:000170 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:18
c:0048 p:0045 s:0165 b:0165 l:000164 d:000164 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0047 p:0033 s:0162 b:0162 l:000161 d:000161 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0046 p:0044 s:0158 b:0158 l:000144 d:000157 BLOCK /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0045 p:---- s:0155 b:0155 l:000154 d:000154 FINISH
c:0044 p:---- s:0153 b:0153 l:000152 d:000152 CFUNC :loop
c:0043 p:0009 s:0150 b:0150 l:000144 d:000149 BLOCK /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0042 p:0019 s:0148 b:0148 l:000147 d:000147 METHOD /usr/lib/ruby/1.9.1/monitor.rb:201
c:0041 p:0011 s:0145 b:0145 l:000144 d:000144 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0040 p:0030 s:0142 b:0139 l:000138 d:000138 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0039 p:0033 s:0136 b:0136 l:000135 d:000135 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0038 p:0018 s:0131 b:0131 l:000130 d:000130 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0037 p:0011 s:0128 b:0128 l:000127 d:000127 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_
c:0036 p:0011 s:0125 b:0125 l:000124 d:000124 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:308
c:0035 p:0035 s:0122 b:0122 l:002278 d:000121 LAMBDA /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/railtie.rb:91
c:0034 p:---- s:0120 b:0120 l:000119 d:000119 FINISH
c:0033 p:0078 s:0118 b:0118 l:000117 d:000117 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:418
c:0032 p:0115 s:0112 b:0112 l:000111 d:000111 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405
c:0031 p:0027 s:0103 b:0103 l:000102 d:000102 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385
c:0030 p:0024 s:0098 b:0098 l:000097 d:000097 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81
c:0029 p:0024 s:0092 b:0092 l:000091 d:000091 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/reloader.rb:74
c:0028 p:0018 s:0089 b:0089 l:000088 d:000088 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/reloader.rb:48
c:0027 p:0017 s:0086 b:0086 l:001eb8 d:000085 BLOCK /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application/finisher.rb:47
c:0026 p:---- s:0084 b:0084 l:000083 d:000083 FINISH
c:0025 p:---- s:0082 b:0082 l:000081 d:000081 CFUNC :instance_exec
c:0024 p:0022 s:0078 b:0078 l:000077 d:000077 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30
c:0023 p:0028 s:0074 b:0074 l:000065 d:000073 BLOCK /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:55
c:0022 p:---- s:0071 b:0071 l:000070 d:000070 FINISH
c:0021 p:---- s:0069 b:0069 l:000068 d:000068 CFUNC :each
c:0020 p:0046 s:0066 b:0066 l:000065 d:000065 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54
c:0019 p:0035 s:0061 b:0061 l:000060 d:000060 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:136
c:0018 p:0021 s:0057 b:0057 l:000056 d:000056 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30
c:0017 p:---- s:0052 b:0052 l:000051 d:000051 FINISH
c:0016 p:0044 s:0050 b:0050 l:000049 d:000049 TOP /var/www/schoolyard/releases/20120710202724/config/environment.rb:4
c:0015 p:---- s:0048 b:0048 l:000047 d:000047 FINISH
c:0014 p:---- s:0046 b:0046 l:000045 d:000045 CFUNC :require
c:0013 p:0010 s:0042 b:0042 l:000034 d:000041 BLOCK /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251
c:0012 p:0071 s:0040 b:0040 l:000039 d:000039 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236
c:0011 p:0019 s:0035 b:0035 l:000034 d:000034 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251
c:0010 p:0046 s:0030 b:0030 l:000029 d:000029 METHOD /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:103
c:0009 p:0205 s:0026 b:0026 l:001d18 d:001d18 TOP /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands/runner.rb:44
c:0008 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0007 p:---- s:0020 b:0020 l:000019 d:000019 CFUNC :require
c:0006 p:0783 s:0016 b:0016 l:000015 d:000015 TOP /var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands.rb:64
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0061 s:0006 b:0006 l:0008d8 d:000988 EVAL script/rails:6
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH

c:0001 p:0000 s:0002 b:0002 l:0008d8 d:0008d8 TOP

-- Ruby level backtrace information ----------------------------------------
script/rails:6:in <main>'
script/rails:6:in
require'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands.rb:64:in <top (required)>'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands.rb:64:in
require'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands/runner.rb:44:in <top (required)>'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:103:in
require_environment!'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in require'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236:in
load_dependency'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in block in require'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in
require'
/var/www/schoolyard/releases/20120710202724/config/environment.rb:4:in <top (required)>'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30:in
method_missing'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:136:in initialize!'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54:in
run_initializers'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54:in each'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:55:in
block in run_initializers'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `run'

/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30:in instance_exec'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application/finisher.rb:47:in
block in module:Finisher'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/reloader.rb:48:in prepare!'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/middleware/reloader.rb:74:in
prepare!'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in run_callbacks'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in
run_prepare_callbacks'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `
run_callback'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:418:in `_run
1443129828448747538prepare4330336494172571373_callbacks'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/railtie.rb:91:in block (2 levels) in <class:Railtie>'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/model_schema.rb:308:in
clear_cache!'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in
retrieve_connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:374:in retrieve_connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:95:in
connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:229:in checkout'
/usr/lib/ruby/1.9.1/monitor.rb:201:in
mon_synchronize'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:230:in block in checkout'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:230:in
loop'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:235:in block (2 levels) in checkout'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:287:in
checkout_new_connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:277:in new_connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in
mysql2_connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in new'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:36:in
initialize'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:270:in configure_connection'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb:211:in
execute'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:241:in execute'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:241:in
query'

-- C level backtrace information -------------------------------------------
/usr/lib/libruby-1.9.1.so.1.9(rb_vm_bugreport+0x5f) [0x2b585b22858f]
/usr/lib/libruby-1.9.1.so.1.9(+0x5a7be) [0x2b585b12f7be]
/usr/lib/libruby-1.9.1.so.1.9(rb_bug+0xa6) [0x2b585b130136]
/usr/lib/libruby-1.9.1.so.1.9(+0xf4a75) [0x2b585b1c9a75]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x2b585b4e2c60]
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/libruby.so.1.9(rb_wait_for_single_fd+0xbc) [0x2b585f51cebc]
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so(+0x2f5c) [0x2b585f186f5c]
/usr/lib/libruby-1.9.1.so.1.9(rb_rescue2+0x16b) [0x2b585b13474b]
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so(+0x3903) [0x2b585f187903]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(+0x149c0b) [0x2b585b21ec0b]
/usr/lib/libruby-1.9.1.so.1.9(rb_class_new_instance+0x30) [0x2b585b172520]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(+0x14e439) [0x2b585b223439]
/usr/lib/libruby-1.9.1.so.1.9(rb_rescue2+0x16b) [0x2b585b13474b]
/usr/lib/libruby-1.9.1.so.1.9(+0x13fcae) [0x2b585b214cae]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(rb_vm_invoke_proc+0x2f1) [0x2b585b21e801]
/usr/lib/libruby-1.9.1.so.1.9(+0x14cbf4) [0x2b585b221bf4]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(+0x14de54) [0x2b585b222e54]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(rb_yield+0x238) [0x2b585b224408]
/usr/lib/libruby-1.9.1.so.1.9(rb_ary_each+0x46) [0x2b585b103486]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(+0x149c0b) [0x2b585b21ec0b]
/usr/lib/libruby-1.9.1.so.1.9(+0x14a355) [0x2b585b21f355]
/usr/lib/libruby-1.9.1.so.1.9(+0x14cabf) [0x2b585b221abf]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_eval+0x15d) [0x2b585b224b8d]
/usr/lib/libruby-1.9.1.so.1.9(+0x6148a) [0x2b585b13648a]
/usr/lib/libruby-1.9.1.so.1.9(rb_require_safe+0x5bf) [0x2b585b13797f]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x145573) [0x2b585b21a573]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_eval+0x15d) [0x2b585b224b8d]

/usr/lib/libruby-1.9.1.so.1.9(+0x6148a) [0x2b585b13648a]
/usr/lib/libruby-1.9.1.so.1.9(rb_require_safe+0x5bf) [0x2b585b13797f]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_eval+0x15d) [0x2b585b224b8d]
/usr/lib/libruby-1.9.1.so.1.9(+0x6148a) [0x2b585b13648a]
/usr/lib/libruby-1.9.1.so.1.9(rb_require_safe+0x5bf) [0x2b585b13797f]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c93e) [0x2b585b22193e]
/usr/lib/libruby-1.9.1.so.1.9(+0x143f61) [0x2b585b218f61]
/usr/lib/libruby-1.9.1.so.1.9(+0x148b44) [0x2b585b21db44]
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_eval_main+0xb1) [0x2b585b224c81]
/usr/lib/libruby-1.9.1.so.1.9(+0x5ecca) [0x2b585b133cca]
/usr/lib/libruby-1.9.1.so.1.9(ruby_exec_node+0x1d) [0x2b585b1342ed]
/usr/lib/libruby-1.9.1.so.1.9(ruby_run_node+0x1e) [0x2b585b135e3e]
ruby1.9.1(main+0x4b) [0x40092b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff) [0x2b585bfdbeff]
ruby1.9.1() [0x400819]

[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

History

Updated by drbrain (Eric Hodel) over 7 years ago

=begin
Could be a bug of mysql2:

-- C level backtrace information -------------------------------------------
/usr/lib/libruby-1.9.1.so.1.9(rb_vm_bugreport+0x5f) [0x2b585b22858f]
/usr/lib/libruby-1.9.1.so.1.9(+0x5a7be) [0x2b585b12f7be]
/usr/lib/libruby-1.9.1.so.1.9(rb_bug+0xa6) [0x2b585b130136]
/usr/lib/libruby-1.9.1.so.1.9(+0xf4a75) [0x2b585b1c9a75]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x2b585b4e2c60]
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/libruby.so.1.9(rb_wait_for_single_fd+0xbc) [0x2b585f51cebc]
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so(+0x2f5c) [0x2b585f186f5c]
/usr/lib/libruby-1.9.1.so.1.9(rb_rescue2+0x16b) [0x2b585b13474b]
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so(+0x3903) [0x2b585f187903]

The last few entries are in the mysql2 C extension and the last action from ruby was calling a C function.

Have you contacted the mysql2 maintainers?

=end

Updated by normalperson (Eric Wong) over 7 years ago

"dpg (Dan Gailey)" dan.p.gailey@gmail.com wrote:

Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

Ruby segfaults in abstract_mysql_adapter.rb:241 when trying to run a simple command from the command-line.

the command:
/bin/bash -l -c 'cd /var/www/schoolyard/releases/20120710202724 && script/rails runner -e production "Email.invite"'

ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

command output error log:

$ /bin/bash -l -c 'cd /var/www/schoolyard/releases/20120710202724 && script/rails runner -e production "Email.invite"'
/var/www/schoolyard/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:241: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

^

Are you mixing library versions?

Updated by ko1 (Koichi Sasada) over 7 years ago

  • Status changed from Open to Feedback

Updated by mame (Yusuke Endoh) about 7 years ago

  • Status changed from Feedback to Rejected

The reproducing process is incomplete (what is contained in "schoolyard/releases/20120710202724"?), and no feedback.
We cannot investigate this issue any more. Please reopen with the information if you need.

--
Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF