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-
Chris Seaton 31b2cd38c5 Include JIT information in crash reports
Since enabling YJIT or MJIT drastically changes what could go wrong at
runtime, it's good to be front and center about whether they are enabled
when dumping a crash report. Previously, `RUBY_DESCRIPTION` and the
description printed when crashing can be different when a JIT is on.

Introduce a new internal data global, `rb_dynamic_description`, and set
it to be the same as `RUBY_DESCRIPTION` during initialization; use it
when crashing.

 * version.c: Init_ruby_description(): Initialize and use
       `rb_dynamic_description`.
 * error.c: Change crash reports to use `rb_dynamic_description`.
 * ruby.c: Call `Init_ruby_description()` earlier. Slightly more work
       for when we exit right after printing the description but that
       was deemed acceptable.
 * include/ruby/version.h: Talk about how JIT info is not in
      `ruby_description`.
 * test/-ext-/bug_reporter/test_bug_reporter.rb: Remove handling for
       crash description being different from `RUBY_DESCRIPTION`.
 * test/ruby/test_rubyoptions.rb: ditto

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Alan Wu <alanwu@ruby-lang.org>
2022-06-20 17:18:29 -04:00
..
arith_seq
array
bignum Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
bug_reporter Include JIT information in crash reports 2022-06-20 17:18:29 -04:00
class
debug
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
thread test_instrumentation_api.rb: Allow one less exit 2022-06-20 13:03:39 +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 [Feature #18249] Implement ABI checking 2022-02-22 09:55:21 -05: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