Repository navigation
cvcgl_ariadne_labels: keep lastDrawn()'s copy alive before pointing into it - #1278
Merged
Merged
Conversation
…nto it LabelLayerNode::lastDrawn() returns its list by value, and five checks took drawn(layer->lastDrawn(), ...): a pointer into a temporary that is destroyed at the end of the statement. On macOS the freed block is reused, so the focus checks read size 0 and the follow check read garbage (3 of 37 failed on every try in package-macos). Hold each copy in d first, and delete the rvalue overload of drawn() so the pattern no longer compiles.
transfix
enabled auto-merge (squash)
November 15, 2026 20:27
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
- script_engine.cpp: #1283 factors the sliced form's process lookup into calling_process, which run_as_program_work (a client's WebAssembly guest, run as its client's program) shares. The lookup keeps this branch's group: the calling process is on the group whose pump runs the call (an isolated document's), else on group 0. - STATE_EXEC_THREADED.md: notes that run_as_program_work shares the lookup.
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.
cvcgl_ariadne_labelsfailed 3 of its 37 checks on every try inpackage-macos(both lanes of ci/full run 43673733499):Cause: a dangling pointer in the test, not a label bug.
LabelLayerNode::lastDrawn()returns its list by value. Five checks didb = drawn(layer->lastDrawn(), "Charlie"), which leavesbpointing into a temporary that is destroyed at the end of the statement. On Linux and Windows the freed block still held the old values, so the checks passed by luck. macOS's allocator reuses it, sob->sizeread 0. The size the layer computes can never be 0, because it ismax(1, ...).Fix (test only):
lastDrawn()copy indbefore searching it.drawn()is= delete, so the pattern no longer compiles.Verified:
cvcgl_ariadne_labelspassed onpackage-macos / libcvc-release-grpc(0.77 s) andlibcvc-debug(0.63 s).cvcgl_volume_half_floataborts on both. It came from iOS: volumes draw with 16-bit float transfer-function tables #1213, and the fix is being worked on separately.cvcgl_wakehits the 300 s timeout on debug. This branch predates cvcgl_wake: the rock's run at one substep a step, and per-section timings in CI #1277, and cvcGL tests: cvcgl_ewave and cvcgl_wake get their own ctest timeout (macOS Debug) #1267 is not merged yet.