Repository navigation
Conversation
… fiber captures it (#2669) with_panic_core (rt_core.w) printed the panic and exited 1. Every other panic (with_panic_ref, panic_runtime.w) exits 134, the status every `expect-exit: 134` fixture holds, and is captured for the awaiting task inside a fiber. So `xs.remove(5)` exited 1 with "List index out of bounds", unlike an index out of range (134). with_panic_core stays the allocation-free path for the allocator's own panics (an invalid free, a debug-alloc trap, a corrupt header, out of memory) and now exits 134; the List index, SlotMap and interior-NUL panics go through with_panic_ref. behav_str_to_cstr_interior_nul_panics.w pinned the interior-NUL panic at exit 1, the status this fixes; it expects 134 now. Test: test/behavior/behav_2669_list_index_panic_exits_134.w.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with_panic_core (rt_core.w) printed the panic and exited 1. Every other
panic (with_panic_ref, panic_runtime.w) exits 134, the status every
expect-exit: 134fixture holds, and is captured for the awaiting taskinside a fiber. So
xs.remove(5)exited 1 with "List index out ofbounds", unlike an index out of range (134). with_panic_core stays the
allocation-free path for the allocator's own panics (an invalid free, a
debug-alloc trap, a corrupt header, out of memory) and now exits 134; the
List index, SlotMap and interior-NUL panics go through with_panic_ref.
Test: test/behavior/behav_2669_list_index_panic_exits_134.w.
Closes #2669