Skip to content

Conversation

@dijkstracula
Copy link

When an exception from a joined domain is raised, the backtrace is lost. Instead, the backtrace the user gets indicates that it originated from Domain.join, as opposed to where the error occurred inside the domain. We (Semgrep) have started noticing this in CI runs, which makes pinning the root cause difficult.

@dijkstracula dijkstracula force-pushed the nathan/domain_join_reraise branch 2 times, most recently from 9f02555 to ba15bac Compare November 14, 2025 22:13
When an exception from a joined domain is raised, the backtrace is lost.
Instead, the backtrace the user gets indicates that it originated from
Domain.join, as opposed to where the error occurred inside the domain.
We (Semgrep) have started noticing this in CI runs, which makes pinning
the root cause difficult.

Note that this necessitated reordering `Domain` in stdlib/StdlibModules.
@dijkstracula dijkstracula force-pushed the nathan/domain_join_reraise branch from ba15bac to 9415c91 Compare November 14, 2025 22:22
@dijkstracula
Copy link
Author

Turns out that this was an incomplete fix - we needed to capture and propagate the backtrace in the C side of things too. KC was good enough to fix up the patch here and I'll pull it in on our side when I have a moment.

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