Project

General

Profile

Actions

Bug #1937

closed

ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux] seg.fault

Added by pronix (dmitriy vasiletc) over 15 years ago. Updated over 5 years ago.

Status:
Closed
ruby -v:
1.9.1p243
[ruby-core:24919]

Description

=begin
hello
i have this bug on server with more then 300requests per second
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:211: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]

-- control frame ----------
c:0056 p:0059 s:0278 b:0277 l:000276 d:000276 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:211
c:0055 p:0059 s:0273 b:0273 l:000272 d:000272 METHOD /mnt/descubrimos/app/models/enum.rb:23
c:0054 p:0385 s:0268 b:0268 l:000267 d:000267 METHOD /mnt/descubrimos/app/controllers/application.rb:87
c:0053 p:0169 s:0264 b:0264 l:000263 d:000263 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:178
c:0052 p:0033 s:0257 b:0257 l:000256 d:000256 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:166
c:0051 p:0012 s:0252 b:0252 l:000251 d:000251 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:225
c:0050 p:0094 s:0247 b:0247 l:000246 d:000246 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:629
c:0049 p:0017 s:0239 b:0239 l:000238 d:000238 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:615
c:0048 p:0028 s:0232 b:0232 l:000231 d:000231 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610
c:0047 p:0009 s:0229 b:0229 l:000088 d:000228 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68
c:0046 p:0005 s:0227 b:0227 l:001228 d:000226 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17
c:0045 p:0024 s:0225 b:0225 l:000224 d:000224 METHOD /opt/ruby1.9/lib/ruby1.9/1.9.1/benchmark.rb:309
c:0044 p:0013 s:0219 b:0218 l:001228 d:001228 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17
c:0043 p:0028 s:0215 b:0215 l:000088 d:000088 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68
c:0042 p:0011 s:0208 b:0208 l:000207 d:000207 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160
c:0041 p:0011 s:0204 b:0204 l:000203 d:000203 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146
c:0040 p:0088 s:0201 b:0201 l:000200 d:000200 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/base.rb:527
c:0039 p:0029 s:0194 b:0194 l:000193 d:000193 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606
c:0038 p:0021 s:0187 b:0187 l:000186 d:000186 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/base.rb:391
c:0037 p:0097 s:0182 b:0182 l:000181 d:000181 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/base.rb:386
c:0036 p:0054 s:0176 b:0176 l:000175 d:000175 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434
c:0035 p:0035 s:0170 b:0170 l:000169 d:000169 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88
c:0034 p:0017 s:0165 b:0165 l:000164 d:000164 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111
c:0033 p:0018 s:0161 b:0161 l:001dc0 d:000160 LAMBDA /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82
c:0032 p:---- s:0158 b:0158 l:000157 d:000157 FINISH
c:0031 p:---- s:0156 b:0156 l:000155 d:000155 CFUNC :call
c:0030 p:0013 s:0152 b:0152 l:000760 d:000151 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29
c:0029 p:0038 s:0150 b:0150 l:000149 d:000149 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34
c:0028 p:0051 s:0146 b:0146 l:000145 d:000145 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9
c:0027 p:0019 s:0142 b:0142 l:000760 d:000760 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28
c:0026 p:0014 s:0138 b:0138 l:000137 d:000137 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:3
c:0025 p:0014 s:0134 b:0134 l:000133 d:000133 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9
c:0024 p:0150 s:0127 b:0127 l:000126 d:000126 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24
c:0023 p:0045 s:0121 b:0121 l:000120 d:000120 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15
c:0022 p:0076 s:0116 b:0116 l:000115 d:000115 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93
c:0021 p:0014 s:0106 b:0106 l:000105 d:000105 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26
c:0020 p:0013 s:0101 b:0101 l:000095 d:000100 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11
c:0019 p:0019 s:0099 b:0099 l:000098 d:000098 METHOD internal:prelude:8
c:0018 p:0052 s:0096 b:0096 l:000095 d:000095 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11
c:0017 p:0014 s:0091 b:0091 l:000090 d:000090 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106
c:0016 p:0185 s:0087 b:0087 l:000086 d:000086 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rails-2.3.3/lib/rails/rack/static.rb:31
c:0015 p:0195 s:0080 b:0080 l:000069 d:000079 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:46
c:0014 p:---- s:0075 b:0075 l:000074 d:000074 FINISH
c:0013 p:---- s:0073 b:0073 l:000072 d:000072 CFUNC :each
c:0012 p:0069 s:0070 b:0070 l:000069 d:000069 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40
c:0011 p:0014 s:0061 b:0061 l:000060 d:000060 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rails-2.3.3/lib/rails/rack/log_tailer.rb:17
c:0010 p:0014 s:0056 b:0056 l:000055 d:000055 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13
c:0009 p:0014 s:0048 b:0048 l:000047 d:000047 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/chunked.rb:15
c:0008 p:0204 s:0041 b:0041 l:000040 d:000040 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:61
c:0007 p:0017 s:0032 b:0032 l:000023 d:000031 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:159
c:0006 p:---- s:0029 b:0029 l:000028 d:000028 FINISH
c:0005 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC :each
c:0004 p:0410 s:0024 b:0024 l:000023 d:000023 METHOD /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:158
c:0003 p:0012 s:0007 b:0007 l:000438 d:000006 BLOCK /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:285
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-----------------------------------------
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:211:in idnumber' /mnt/descubrimos/app/models/enum.rb:23:in country_code'
/mnt/descubrimos/app/controllers/application.rb:87:in check_country' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:178:in evaluate_method'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/callbacks.rb:166:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:225:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:629:in run_before_filters' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:615:in call_filters'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610:in perform_action_with_filters' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in block in perform_action_with_benchmark'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in block in ms' /opt/ruby1.9/lib/ruby1.9/1.9.1/benchmark.rb:309:in realtime'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in ms' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in perform_action_with_benchmark'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160:in perform_action_with_rescue' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146:in perform_action_with_flash'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in process' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:in process_with_filters'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/base.rb:391:in process' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/base.rb:386:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88:in dispatch'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in _call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in block in initialize'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in block in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in cache' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in cache'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in block in call'
internal:prelude:8:in synchronize' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rails-2.3.3/lib/rails/rack/static.rb:31:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in block in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in each'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rails-2.3.3/lib/rails/rack/log_tailer.rb:17:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13:in call' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/chunked.rb:15:in call'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:61:in process' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:159:in block in process_client'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:158:in each' /opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:158:in process_client'
/opt/ruby1.9/lib/ruby1.9/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `block (2 levels) in run'

-- C level backtrace information -------------------------------------------
0x4ea6eb /opt/ruby1.9/bin/ruby1.9(rb_vm_bugreport+0x3b) [0x4ea6eb]
0x518fc0 /opt/ruby1.9/bin/ruby1.9 [0x518fc0]
0x519131 /opt/ruby1.9/bin/ruby1.9(rb_bug+0xb1) [0x519131]
0x49561f /opt/ruby1.9/bin/ruby1.9 [0x49561f]
0x2aaaaacda0f0 /lib/libpthread.so.0 [0x2aaaaacda0f0]
0x4dba06 /opt/ruby1.9/bin/ruby1.9 [0x4dba06]
0x4e0c40 /opt/ruby1.9/bin/ruby1.9 [0x4e0c40]
0x4e331d /opt/ruby1.9/bin/ruby1.9(rb_vm_invoke_proc+0x41d) [0x4e331d]
0x4d8bad /opt/ruby1.9/bin/ruby1.9 [0x4d8bad]
0x4daa50 /opt/ruby1.9/bin/ruby1.9 [0x4daa50]
0x4dba84 /opt/ruby1.9/bin/ruby1.9 [0x4dba84]
0x4e0c40 /opt/ruby1.9/bin/ruby1.9 [0x4e0c40]
0x4e12c7 /opt/ruby1.9/bin/ruby1.9 [0x4e12c7]
0x4e231c /opt/ruby1.9/bin/ruby1.9(rb_yield+0x6c) [0x4e231c]
0x4f4f45 /opt/ruby1.9/bin/ruby1.9(rb_ary_each+0x45) [0x4f4f45]
0x4d8bad /opt/ruby1.9/bin/ruby1.9 [0x4d8bad]
0x4daa50 /opt/ruby1.9/bin/ruby1.9 [0x4daa50]
0x4dba84 /opt/ruby1.9/bin/ruby1.9 [0x4dba84]
0x4e0c40 /opt/ruby1.9/bin/ruby1.9 [0x4e0c40]
0x4e12c7 /opt/ruby1.9/bin/ruby1.9 [0x4e12c7]
0x4e231c /opt/ruby1.9/bin/ruby1.9(rb_yield+0x6c) [0x4e231c]
0x4f4f45 /opt/ruby1.9/bin/ruby1.9(rb_ary_each+0x45) [0x4f4f45]
0x4d8bad /opt/ruby1.9/bin/ruby1.9 [0x4d8bad]
0x4daa50 /opt/ruby1.9/bin/ruby1.9 [0x4daa50]
0x4dba84 /opt/ruby1.9/bin/ruby1.9 [0x4dba84]
0x4e0c40 /opt/ruby1.9/bin/ruby1.9 [0x4e0c40]
0x4e331d /opt/ruby1.9/bin/ruby1.9(rb_vm_invoke_proc+0x41d) [0x4e331d]
0x4eeaed /opt/ruby1.9/bin/ruby1.9 [0x4eeaed]
0x4eec2e /opt/ruby1.9/bin/ruby1.9 [0x4eec2e]
0x2aaaaacd23ea /lib/libpthread.so.0 [0x2aaaaacd23ea]
0x2aaaab898c6d /lib/libc.so.6(clone+0x6d) [0x2aaaab898c6d]

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

Aborted
=end


Related issues 1 (0 open1 closed)

Related to Backport191 - Bug #2309: Segfault, repeatable testcase, possibly related to [2295], [2019], [1937].ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0