1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Jeremy Evans f9f13a4f6d Ensure that caller respects the start argument
Previously, if there were ignored frames (iseq without pc), we could
go beyond the requested start frame.  This has two changes:

1) Ensure that we don't look beyond the start frame by using
last_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(last_cfp) until the
desired start frame is reached.

2) To fix the failures caused by change 1), which occur when a
limited number of frames is requested, scan the VM stack before
allocating backtrace frames, looking for ignored frames. This
is complicated if there are ignored frames before and after
the start, in which case we need to scan until the start frame,
and then scan backwards, decrementing the start value until we
get to the point where start will result in the number of
requested frames.

This fixes a Rails test failure.  Jean Boussier was able to
to produce a failing test case outside of Rails.

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2021-03-24 11:15:00 -07:00
..
-ext- rb_enc_interned_str: handle autoloaded encodings 2021-03-22 21:37:48 +09:00
base64
benchmark [ruby/benchmark] Adds Tms#to_h 2021-02-07 23:06:17 -05:00
bigdecimal [ruby/bigdecimal] Fix for the coerce cases in divide and DoDivmod 2021-01-16 00:09:26 +09:00
cgi
coverage
csv Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
date
dbm
did_you_mean
digest
drb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
dtrace
erb [ruby/erb] Warn safe_level and later args even without -w 2021-01-21 13:52:02 +09:00
etc Fix leaked file descriptor in passwd test 2021-03-24 13:02:54 +09:00
excludes
fiber Expose scheduler as public interface & bug fixes. (#3945) 2021-02-09 19:39:56 +13:00
fiddle Oops! Add another test and fix to_proc implementation 2021-02-26 10:06:56 -08:00
fileutils
fixtures/fake_sorted_set_gem
gdbm
io [ruby/io-wait] Declare as Ractor-safe 2021-03-07 09:54:35 +09:00
irb [ruby/irb] fix completion test when out-of-place build 2021-03-24 16:10:27 +09:00
json
lib Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
logger
matrix [ruby/matrix] Add Matrix#rotate_entries [#19] 2021-01-21 13:22:25 -05:00
mkmf Added tests for MakeMakefile#test_egrep_cpp 2021-02-05 13:59:27 +09:00
monitor
net Fix a warning 2021-01-23 10:52:17 +09:00
nkf
objspace objspace_dump.c: tag singleton classes and reference the superclass 2021-02-04 09:53:31 -08:00
open-uri
openssl test/openssl/test_config: skip tests for .include on older OpenSSL 2021-03-16 22:30:33 +09:00
optparse
ostruct Fix method protection for modules in the ancestry chain. 2021-01-12 23:29:39 -05:00
pathname Forward keyword arguments for Pathname#each_line [Bug #17589] 2021-01-29 14:27:53 +09:00
psych
racc
rdoc [ruby/rdoc] Allow empty .rdoc_options 2021-03-16 15:47:27 +09:00
readline [ruby/readline-ext] Use omit 2021-02-18 21:17:42 +09:00
reline [ruby/reline] Suppress crashing when completer_{quote,word_break}_characters is empty 2021-03-24 15:43:34 +09:00
resolv
rinda Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
ripper Pattern matching pin operator against expression [Feature #17411] 2021-03-21 15:14:31 +09:00
ruby Ensure that caller respects the start argument 2021-03-24 11:15:00 -07:00
rubygems [rubygems/rubygems] Remote test to check require 2021-03-08 13:47:35 +09:00
socket Fixed FD leaks 2021-03-08 10:08:40 +09:00
stringio [ruby/stringio] Check if closed in loop 2021-03-08 10:13:29 +09:00
strscan
syslog
uri
win32ole
yaml
zlib test/zlib/test_zlib.rb: stop a failure on armv7l 2021-03-23 12:20:58 +09:00
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb Avoid rehashing in Hash#replace/dup/initialize_copy [Bug #16996] 2021-03-18 07:34:40 -04:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb