Skip to content

Conversation

@hageboeck
Copy link
Member

@hageboeck hageboeck commented Nov 25, 2025

Backport a followup of the fix for #20320, #20494, and the corresponding test.

@hageboeck hageboeck self-assigned this Nov 25, 2025
This is a followup of the fix root-project#20352 for issue root-project#20320:
When snapshot with variations is run with JIT-ted filters, the
computation graph first needs to be JIT-ted before reading Defines
or Filters. In the fix for that case, an iterator invalidation on
push_back caused crashes, because vector.reserve() had been called
with the wrong size.

Here, the size is corrected, but more importantly, instead of saving the
iterator, the shared_ptr it points to is saved. This makes the code
independent of the underlying storage.

(cherry picked from commit 886abae)
@github-actions
Copy link

github-actions bot commented Nov 25, 2025

Test Results

    21 files      21 suites   3d 20h 59m 29s ⏱️
 3 709 tests  3 709 ✅ 0 💤 0 ❌
76 010 runs  76 010 ✅ 0 💤 0 ❌

Results for commit b4fdcba.

♻️ This comment has been updated with latest results.

@hageboeck hageboeck marked this pull request as ready for review November 25, 2025 13:28
@dpiparo dpiparo merged commit e227f78 into root-project:v6-38-00-patches Nov 25, 2025
49 of 50 checks passed
@hageboeck hageboeck deleted the v6.38_snapshotCrash branch November 25, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants