mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1690] smem_neg_probe: handle Unavailable/RuntimeError during oracle.run() and mask 32-bit words #1704
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1704
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1690
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/smem-neg-probe-run-errors📝 Commits (1)
b1a2545smem_neg_probe: handle Unavailable/RuntimeError during oracle.run() and mask 32-bit words📊 Changes
2 files changed (+50 additions, -1 deletions)
View changed files
📝
tests/test_smem_neg_probe.py(+43 -0)📝
tools/smem_neg_probe.py(+7 -1)📄 Description
Item ID:
SMEM-NEG-PROBE-RUN-ERRORS(claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156857639)Summary
tools/smem_neg_probe.py):runner.Unavailable(exit77) andRuntimeError(exit2) raised duringoracle.run()insidetry ... finally: oracle.close()instead of crashing with unhandled tracebacks.& 0xFFFFFFFFbefore comparing with expected 32-bit words and formatting.tests/test_smem_neg_probe.py):runner.Unavailableduringoracle.run()-> exit77, andRuntimeErrorduringoracle.run()-> exit2, verifyingoracle.close()on every path.Checklist & Verification
python3 -I scripts/check_no_game_data.py tools/smem_neg_probe.py tests/test_smem_neg_probe.pypassed)python3 -W error -I tests/test_smem_neg_probe.py -v:Ran 12 tests ... OKtests/test_smem_neg_probe.pyagainst unpatchedmaintools/smem_neg_probe.py):Ran 12 tests ... FAILED (failures=1)python3 -m compileall -q make_game.py tools tests: passedpython3 -I tests/test_text_write_line_endings.py:Ran 3 tests ... OK🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.