Skip to content

test: restart on crash#1754

Open
jpnurmi wants to merge 4 commits into
masterfrom
jpnurmi/test/restart-on-crash
Open

test: restart on crash#1754
jpnurmi wants to merge 4 commits into
masterfrom
jpnurmi/test/restart-on-crash

Conversation

@jpnurmi
Copy link
Copy Markdown
Collaborator

@jpnurmi jpnurmi commented May 26, 2026

Add "restart-on-crash" example + integration tests with all backends.

The example unblocks signals in the restarted POSIX child before execv(), preventing it from inheriting the crash handler’s blocked signal mask. The integration test verifies that both the original process and the restarted child report crashes.

Why example only

The SDK should not silently rewrite an application’s signal mask as part of normal crash handling. Some applications intentionally block signals, and changing that globally would be surprising outside this restart pattern.

Handling only selected crash signals in the SDK is also fragile: the exact set depends on platform and backend behavior, and it still imposes SDK policy on process state. Keeping this in the restart example makes the requirement explicit at the point where the child process is created.

Close: #1114

Comment thread tests/test_integration_http.py
Comment thread examples/example.c
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3a45d1a. Configure here.

Comment thread examples/example.c
Comment thread examples/example.c
@jpnurmi jpnurmi force-pushed the jpnurmi/test/restart-on-crash branch from 3a45d1a to 8173a0f Compare May 26, 2026 13:45
@jpnurmi jpnurmi force-pushed the jpnurmi/test/restart-on-crash branch from 8173a0f to 355af09 Compare May 27, 2026 14:49
@jpnurmi jpnurmi requested a review from mujacica May 27, 2026 16:04
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.

Crash reports sent only after second launch, not immediately after app restart

2 participants