Skip to content

Conversation

@markushi
Copy link
Member

@markushi markushi commented Nov 24, 2025

Description

Fix native sample to raise a proper SIGSEV signal instead of causing undefined behavior.

Motivation and Context

The current implementation causes undefined behavior in release builds, causing an endless loop of "Sending message." instead of actually producing a SIGSEV.

How did you test it?

Verified the native sample raises SIGSEV correctly.

Checklist

  • No breaking change or entry added to the changelog.

#skip-changelog

@markushi
Copy link
Member Author

Thank you @supervacuus for root-causing this!

@supervacuus
Copy link
Collaborator

Just to be clear: my point wasn't necessarily to replace the "intentional UB" with an explicit user-space raise, but especially for a sample that only wants to trigger a native "crash" to demo its handling, that can be a solid alternative 👍

@markushi markushi enabled auto-merge (squash) November 25, 2025 16:42
@markushi markushi merged commit 18c0bc2 into main Nov 25, 2025
59 checks passed
@markushi markushi deleted the markushi/fix/undefined-behavior branch November 25, 2025 17:10
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.

4 participants