Repository navigation
[Mono] Fix potential crash when handling image load event. - #64908
Conversation
|
/backport to release/6.0 |
|
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1807421663 |
|
@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. |
|
/backport to release/6.0 |
|
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1807445559 |
|
@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. |
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