aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_trace_vs_tenet.py
diff options
context:
space:
mode:
authorblasty <blasty@local>2026-07-30 13:37:46 +0200
committerblasty <blasty@local>2026-07-30 13:37:46 +0200
commit214076f2e87e69e50600f75723af09d21dcc9ffc (patch)
tree27a3f70b3e7f8be759f25c40a591eb65acf91a39 /tests/test_trace_vs_tenet.py
parenttrace: seek verbs — next/previous execution, and who set this register (diff)
downloadida-tui-214076f2e87e69e50600f75723af09d21dcc9ffc.tar.gz
ida-tui-214076f2e87e69e50600f75723af09d21dcc9ffc.tar.xz
ida-tui-214076f2e87e69e50600f75723af09d21dcc9ffc.zip
trace: a stale navigation no longer drags the view backHEADmain
Fixes the bug found while building M3. Navigations run in workers and are applied when they land; the trace's OPENING seek goes to t=0, which for a normal binary is _start, and that navigation is slow. It arrived after later seeks and won, leaving the cursor and _cur on _start while the trace's pc was elsewhere — and it never settled, measured stable for 3+ seconds. Anything cursor-based done just after a seek (`>` asks about the address under the cursor) then acted on the wrong address. The decompiler path has had a staleness guard since 756589a; the listing path never got one. It has one now (_open_at_if_current), and a seek bumps _nav_seq so older in-flight navigations are dropped. Verified both directions on the exact reproduction: seek to the first execution of a repeated instruction, seek to the second, wait — cursor stays put with the guard, and with the guard removed it drifts to 0x34d0 (_start) exactly as reported. Scope, deliberately narrow. I first bumped _nav_seq in _goto_ea for EVERY navigation, which is the more general rule, and a full run then failed follow_xrefs — a follow can be dropped by whatever navigates next. That check has flaked before so it is not proof, but the mechanism is real and my evidence is only about seeks, so the bump lives in _seek. TODO records what would justify the general version and what test it needs. tests: +1 trace UI (39) — seek, seek again, wait 3s, and the cursor is still on the instruction the trace is at. Two consecutive full runs 212/0 after narrowing.
Diffstat (limited to 'tests/test_trace_vs_tenet.py')
0 files changed, 0 insertions, 0 deletions