Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wasm][AOT] Exceptions in Full AOT should provide the native stack frames #44628

Closed
jeromelaban opened this issue Nov 13, 2020 · 2 comments
Closed
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Milestone

Comments

@jeromelaban
Copy link
Contributor

Description

When an exception is raised when running in FullAOT (or mixed), exception raised do not provide managed frames (stack walking is not available in WebAssembly).

Yet, using new Error().stack provides the native WebAssembly frames, which can be very useful to troubleshoot and pinpoint issues.

Adding the native frames in the Exception.Data dictionary could be an interesting location to provide this information, and avoid altering existing behaviors (e.g. inner exception).

Configuration

WebAssembly.

Regression?

No

Other information

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner labels Nov 13, 2020
@lewing lewing added arch-wasm WebAssembly architecture area-VM-meta-mono and removed area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner labels Nov 13, 2020
@ghost
Copy link

ghost commented Nov 13, 2020

Tagging subscribers to this area: @CoffeeFlux
See info in area-owners.md if you want to be subscribed.


Issue meta data
Issue content:
<!--This is just a template - feel free to delete any and all of it and replace as appropriate.-->

Description

When an exception is raised when running in FullAOT (or mixed), exception raised do not provide managed frames (stack walking is not available in WebAssembly).

Yet, using new Error().stack provides the native WebAssembly frames, which can be very useful to troubleshoot and pinpoint issues.

Adding the native frames in the Exception.Data dictionary could be an interesting location to provide this information, and avoid altering existing behaviors (e.g. inner exception).

Configuration

WebAssembly.

Regression?

No

Other information

</td>
Issue author: jeromelaban
Assignees: -
Labels:
`arch-wasm`, `area-VM-meta-mono`

</td>
Milestone: -

@jeromelaban
Copy link
Contributor Author

Fixed by #44628

@ghost ghost locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Projects
None yet
Development

No branches or pull requests

3 participants