Bug #4101
closedBug in Action Caching
Description
=begin
I was following the screencast http://railscasts.com/episodes/93-action-caching
In my controller
caches_action :index, :cache_path => :index_cache_path.to_proc
def index_cache_path
if user_signed_in?
"users/pages"
elsif admin_signed_in?
"admin/pages"
else
"public/pages"
end
end
-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x0041ab44 rb_vm_bugreport + 196
1 libruby.1.9.1.dylib 0x002c41dc rb_compile_warn + 508
2 libruby.1.9.1.dylib 0x002c428b rb_bug + 43
3 libruby.1.9.1.dylib 0x003fce63 rb_vm_cref + 547
4 libruby.1.9.1.dylib 0x004191ba rb_yield + 1290
5 libruby.1.9.1.dylib 0x003f9435 rb_iseq_build_for_ruby2cext + 7141
6 libruby.1.9.1.dylib 0x00416095 rb_raise_method_missing + 1669
7 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
8 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
9 libruby.1.9.1.dylib 0x0040c92a rb_vm_invoke_proc + 490
10 libruby.1.9.1.dylib 0x002ce5ce rb_block_proc + 126
11 libruby.1.9.1.dylib 0x003f9435 rb_iseq_build_for_ruby2cext + 7141
12 libruby.1.9.1.dylib 0x00416095 rb_raise_method_missing + 1669
13 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
14 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
15 libruby.1.9.1.dylib 0x00418081 rb_vm_get_insns_address_table + 401
16 libruby.1.9.1.dylib 0x003f9c57 rb_catch_obj + 215
17 libruby.1.9.1.dylib 0x003f9d0d rb_catch_obj + 397
18 libruby.1.9.1.dylib 0x003f9435 rb_iseq_build_for_ruby2cext + 7141
19 libruby.1.9.1.dylib 0x00416095 rb_raise_method_missing + 1669
20 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
21 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
22 libruby.1.9.1.dylib 0x0040a6f5 rb_eval_string + 581
23 libruby.1.9.1.dylib 0x00411c4f rb_define_alloc_func + 3199
24 libruby.1.9.1.dylib 0x00415ca1 rb_raise_method_missing + 657
25 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
26 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
27 libruby.1.9.1.dylib 0x0040c92a rb_vm_invoke_proc + 490
28 libruby.1.9.1.dylib 0x004212da rb_mutex_synchronize + 1242
29 libruby.1.9.1.dylib 0x0042154b rb_mutex_synchronize + 1867
30 libSystem.B.dylib 0x960b5155 _pthread_start + 321
31 libSystem.B.dylib 0x960b5012 thread_start + 34
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
=end
Updated by rkh (Konstantin Haase) about 14 years ago
=begin
This is probably fixed in higher patch levels of 1.9.2. Unfortunately, (even though announced) there has not yet been another 1.9.2 release. If you happen to use rvm, it's pretty easy to upgrade, though: rvm install 1.9.2-head.
Konstantin
On Nov 30, 2010, at 01:03 , Rodrigo Pestana wrote:
Bug #4101: Bug in Action Caching
http://redmine.ruby-lang.org/issues/show/4101Author: Rodrigo Pestana
Status: Open, Priority: Normal
Target version: 1.9.2
ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-darwin9.8.0]I was following the screencast http://railscasts.com/episodes/93-action-caching
In my controller
caches_action :index, :cache_path => :index_cache_path.to_proc
def index_cache_path
if user_signed_in?
"users/pages"
elsif admin_signed_in?
"admin/pages"
else
"public/pages"
end
end-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x0041ab44 rb_vm_bugreport + 196
1 libruby.1.9.1.dylib 0x002c41dc rb_compile_warn + 508
2 libruby.1.9.1.dylib 0x002c428b rb_bug + 43
3 libruby.1.9.1.dylib 0x003fce63 rb_vm_cref + 547
4 libruby.1.9.1.dylib 0x004191ba rb_yield + 1290
5 libruby.1.9.1.dylib 0x003f9435 rb_iseq_build_for_ruby2cext + 7141
6 libruby.1.9.1.dylib 0x00416095 rb_raise_method_missing + 1669
7 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
8 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
9 libruby.1.9.1.dylib 0x0040c92a rb_vm_invoke_proc + 490
10 libruby.1.9.1.dylib 0x002ce5ce rb_block_proc + 126
11 libruby.1.9.1.dylib 0x003f9435 rb_iseq_build_for_ruby2cext + 7141
12 libruby.1.9.1.dylib 0x00416095 rb_raise_method_missing + 1669
13 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
14 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
15 libruby.1.9.1.dylib 0x00418081 rb_vm_get_insns_address_table + 401
16 libruby.1.9.1.dylib 0x003f9c57 rb_catch_obj + 215
17 libruby.1.9.1.dylib 0x003f9d0d rb_catch_obj + 397
18 libruby.1.9.1.dylib 0x003f9435 rb_iseq_build_for_ruby2cext + 7141
19 libruby.1.9.1.dylib 0x00416095 rb_raise_method_missing + 1669
20 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
21 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
22 libruby.1.9.1.dylib 0x0040a6f5 rb_eval_string + 581
23 libruby.1.9.1.dylib 0x00411c4f rb_define_alloc_func + 3199
24 libruby.1.9.1.dylib 0x00415ca1 rb_raise_method_missing + 657
25 libruby.1.9.1.dylib 0x00401d1e rb_method_basic_definition_p + 16254
26 libruby.1.9.1.dylib 0x0040930d rb_method_basic_definition_p + 46445
27 libruby.1.9.1.dylib 0x0040c92a rb_vm_invoke_proc + 490
28 libruby.1.9.1.dylib 0x004212da rb_mutex_synchronize + 1242
29 libruby.1.9.1.dylib 0x0042154b rb_mutex_synchronize + 1867
30 libSystem.B.dylib 0x960b5155 _pthread_start + 321
31 libSystem.B.dylib 0x960b5012 thread_start + 34[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
=end
Updated by naruse (Yui NARUSE) almost 14 years ago
- Status changed from Open to Closed
=begin
Ruby 1.9.2-p136 is released
=end