aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-21 01:18:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-21 01:18:48 +0000
commitcc52f511b1d942f8542a4d909ce0a1375ea07738 (patch)
treeef80cc80d37ca6b3c29b9e77ea56599dded3f59a /test/-ext-
parent8ec531ba9c512f15bcd39b17255b95a8cc9bdcae (diff)
downloadruby-cc52f511b1d942f8542a4d909ce0a1375ea07738.tar.gz
vm_backtrace.c: ignore ifunc frames
* vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/debug/test_profile_frames.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb
index 860652c0cd..5ea506046e 100644
--- a/test/-ext-/debug/test_profile_frames.rb
+++ b/test/-ext-/debug/test_profile_frames.rb
@@ -102,4 +102,21 @@ class TestProfileFrames < Test::Unit::TestCase
end
}
end
+
+ def test_ifunc_frame
+ bug11851 = '[ruby-core:72409] [Bug #11851]'
+ assert_ruby_status([], <<~'end;', bug11851) # do
+ require '-test-/debug'
+ class A
+ include Bug::Debug
+ def x
+ profile_frames(0, 10)
+ end
+ end
+ def a
+ [A.new].each(&:x)
+ end
+ a
+ end;
+ end
end