Skip to content

repro for stack leaking bug#4783

Open
Caio-Nogueira wants to merge 4 commits into
jasnell/err-ser-take-2from
caio/err-ser-repro
Open

repro for stack leaking bug#4783
Caio-Nogueira wants to merge 4 commits into
jasnell/err-ser-take-2from
caio/err-ser-repro

Conversation

@Caio-Nogueira

@Caio-Nogueira Caio-Nogueira commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

After a comprehensive deep dive against the stack leaking bug, here's our findings:

We are not returning errors, always re throwing and catching
Stack trace on Sentry is combined from two services

We've updated your test in this branch @jasnell to try to reproduce this (but we can't). Both Foo and Bar are actors.

test -> Foo.fetch1 -> sets alarm
alarm -> Foo.foo() -> Bar.bar() -> Bar.blah()

jasnell and others added 4 commits August 13, 2025 05:23
Adds tests that verify that stacks are not preserved by default
across RPC boundaries, but are preserved when the caller indicates
that the scope is trusted.
Not just thrown errors but also returned serialized errors.
@Caio-Nogueira Caio-Nogueira requested review from a team as code owners August 14, 2025 12:42
@jasnell jasnell force-pushed the jasnell/err-ser-take-2 branch from 38a68d2 to 189b981 Compare August 15, 2025 11:53
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.

2 participants