Skip to content

Stabilize test_linux_network_stacksmash_64 under Python 3.12 CI timing#121

Merged
mborgerson merged 1 commit into
masterfrom
copilot/debug-test-linux-network-stacksmash-64
May 25, 2026
Merged

Stabilize test_linux_network_stacksmash_64 under Python 3.12 CI timing#121
mborgerson merged 1 commit into
masterfrom
copilot/debug-test-linux-network-stacksmash-64

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 25, 2026

test_linux_network_stacksmash_64 has become materially flakier in CI after the move to Python 3.12. The failures are timing-driven: the generated exploit reaches the target path, but replay intermittently times out while the traced TCP service is still settling.

  • Tighten startup timing around the traced target

    • Add a small delay when constructing the TCP rex.Crash so tracing does not begin before the service is ready.
  • Give replay a stable startup window

    • Increase the wait before invoking the generated exploit script against the replay target.
  • Reduce false negatives in exploit replay

    • Increase the subprocess timeout for the generated exploit so slower CI workers do not fail a valid exploit run during shell setup / command execution.
crash = rex.Crash(
    target,
    crash=inp,
    use_rop=False,
    aslr=False,
    input_type=rex.enums.CrashInputType.TCP,
    port=port,
    delay=1,
)

time.sleep(1)

exploit_result = subprocess.check_output(
    ["python", exploit_location, "127.0.0.1", str(new_port)],
    timeout=10,
)

Agent-Logs-Url: https://github.com/angr/rex/sessions/e28b501a-a8e1-4d4b-808a-59577dd30e75

Co-authored-by: mborgerson <8210+mborgerson@users.noreply.github.com>
@angr-bot
Copy link
Copy Markdown
Member

Corpus decompilation diffs can be found at angr/dec-snapshots@master...angr/rex_121

@mborgerson mborgerson marked this pull request as ready for review May 25, 2026 23:53
@mborgerson mborgerson merged commit e03b86a into master May 25, 2026
16 checks passed
mborgerson added a commit that referenced this pull request May 26, 2026
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