Skip to content

Conversation

@lateralusX
Copy link
Member

Running dotnet-trace against MonoVM running on Android and including the loader (image/assembly load/unload) events from Microsoft-Windows-DotNETRuntime caused a runtime crash when handling Mono.Android.dll assembly. Happens since that assembly didn't include a debug directory entry in release build, that in turn left a field on the stack uninitialized, causing potential crash depending on current stack content.

Fix makes sure the struct always gets initialized and that we explicitly set that field (module_il_pdb_path) to an empty string if assembly doesn't include a debug directory entry.

Fixes:

#64458
dotnet/android#6700

@ghost ghost added the area-Tracing-mono label Feb 7, 2022
@ghost ghost assigned lateralusX Feb 7, 2022
@lateralusX
Copy link
Member Author

/backport to release/6.0

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2022

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1807421663

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2022

@lateralusX an error occurred while backporting to release/6.0, please check the run log for details!

Error: @lateralusX is not a repo collaborator, backporting is not allowed.

@steveisok
Copy link
Member

/backport to release/6.0

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2022

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1807445559

@akoeplinger
Copy link
Member

@lateralusX for the backport bot to work you need to go to https://github.com/orgs/microsoft/people?query=lateralusX and switch your team membership visibility to Public.

@lateralusX lateralusX merged commit 56fcb74 into dotnet:main Feb 8, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants