startup: with X2W_HOST_CPU=1 a second thread faulting on a site just rewritten stops the run #2196
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2196
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?
@lukaslw-lab on GitHub · 2026-11-25 04:00 UTC · original
AI-assisted (Claude Code). With
X2W_HOST_CPU=1,debug_launch.pyrewrites a missing instruction on its first fault. When two threads run the same site at about the same time, the second thread's fault arrives after the rewrite. The site already holds the replacement, sorewrite_for_hostfinds nothing to rewrite. The fault is not handled, and the run stops at a second-chance illegal instruction.Seen in a startup run (Windows 10, i7-4790K, which has no SSE4a).
events.txt, title module and address replaced:jmpto the stub, not the original instruction.Related, but a different mechanism: #1281 (threads entering a hooked function while its byte is stepped over).