1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-ext-
Ivo Anjo 649bfbe00d Fix rb_profile_frames output includes dummy main thread frame
The `rb_profile_frames` API did not skip the two dummy frames that
each thread has at its beginning. This was unlike `backtrace_each` and
`rb_ec_parcial_backtrace_object`, which do skip them.

This does not seem to be a problem for non-main thread frames,
because both `VM_FRAME_RUBYFRAME_P(cfp)` and
`rb_vm_frame_method_entry(cfp)` are NULL for them.

BUT, on the main thread `VM_FRAME_RUBYFRAME_P(cfp)` was true
and thus the dummy thread was still included in the output of
`rb_profile_frames`.

I've now made `rb_profile_frames` skip this extra frame (like
`backtrace_each` and friends), as well as add a test that asserts
the size and contents of `rb_profile_frames`.

Fixes [Bug #18907] (<https://bugs.ruby-lang.org/issues/18907>)
2022-07-26 10:43:44 +09:00
..
arith_seq
array
bignum Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
bug_reporter Match +YJIT in Ruby desc when testing segv (#6141) 2022-07-20 10:48:58 -04:00
class
debug Fix rb_profile_frames output includes dummy main thread frame 2022-07-26 10:43:44 +09:00
exception
file
float Use omit instead of skip: test/-ext-/**/*.rb 2021-12-28 21:13:39 +09:00
funcall Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
gvl Use omit instead of skip: test/-ext-/**/*.rb 2021-12-28 21:13:39 +09:00
hash
integer
iseq_load Use omit instead of skip: test/-ext-/**/*.rb 2021-12-28 21:13:39 +09:00
iter
load
marshal
method
num2int
path_to_class
popen_deadlock
postponed_job Avoid assert failure when NULL EC is expected 2021-11-22 19:29:29 -05:00
proc
rational
st
string Decouple GC slot sizes from RVALUE 2022-02-02 09:52:04 -05:00
struct
symbol [Bug #18905] Check symbol name types more strictly 2022-07-20 00:23:38 +09:00
thread GVL Instrumentation: remove the EXITED count assertion 2022-07-13 19:39:31 +02:00
thread_fd
time
tracepoint
typeddata
vm
wait fix random EBADF problem 2021-10-26 11:39:52 +09:00
win32
test_abi.rb Fix tests for ABI incompatible binary error messags 2022-07-17 10:18:08 +09:00
test_bug-3571.rb
test_bug-5832.rb
test_bug-14834.rb
test_enumerator_kw.rb
test_notimplement.rb
test_printf.rb
test_random.rb
test_recursion.rb
test_scan_args.rb