summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/Array_spec.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-07-06 17:30:36 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-07-07 09:39:28 -0400
commitf36859869f31a4cf10805cc620ee6338b66558d1 (patch)
treeaf5bfde9d27b974051212aa9f086d31d5c811674 /spec/ruby/core/kernel/Array_spec.rb
parentd6c98626da706fe5399a2a13f4a934c27c8f4c7b (diff)
Improve error message for segv in read_barrier_handler
If the page_body is a null pointer, then read_barrier_handler will crash with an unrelated message. This commit improves the error message. Before: test.rb:1: [BUG] Couldn't unprotect page 0x0000000000000000, errno: Cannot allocate memory After: test.rb:1: [BUG] read_barrier_handler: segmentation fault at 0x14
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6096
Diffstat (limited to 'spec/ruby/core/kernel/Array_spec.rb')
0 files changed, 0 insertions, 0 deletions