Commit 7a934a8
Check for VM_ENV_DATA_INDEX_FLAGS in mid-escape
vm_make_env_each iterates over frames on the stack, escaping each one.
This can leave the stack in an inconsistent state.
If a sampling profiler calls rb_profile_frames from a signal handler, it
can observe the stack in this inconsistent state, so we need to check
for it.
Co-authored-by: Nery Campusano <nery.campusano@shopify.com>1 parent aee9122 commit 7a934a8
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
775 | 780 | | |
776 | 781 | | |
777 | 782 | | |
| |||
0 commit comments