Skip to content

[release/6.0] [Mono] Fix potential crash when handling image load event. - #64911

Merged
akoeplinger merged 1 commit into
release/6.0from
backport/pr-64908-to-release/6.0
Feb 8, 2022
Merged

[release/6.0] [Mono] Fix potential crash when handling image load event.#64911
akoeplinger merged 1 commit into
release/6.0from
backport/pr-64908-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

Backport of #64908 to release/6.0

/cc @steveisok@lateralusX

Customer Impact

When running dotnet trace against a MAUI application targeting Android, a runtime crash would occur when loader events (image/assembly load/unload) were included. The crash occurred due to Mono.Android assembly no longer including a debug directory entry on a release build. As a result, the runtime had a field that was uninitialized and would lead to the crash.

The 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.

Testing

Manual validation

Risk

Low

@ghostghost added the area-Tracing-mono label Feb 7, 2022
@akoeplingerakoeplinger added the Servicing-consider Issue for next servicing release review label Feb 7, 2022
@akoeplingerakoeplinger added this to the 6.0.x milestone Feb 7, 2022
@steveisoksteveisok added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 7, 2022
@steveisok

Copy link
Copy Markdown
Member

Approved by tactics over email.

@safern

Copy link
Copy Markdown
Member

@steveisok ping me if you need merge and you've gotten an approval.

@steveisok

Copy link
Copy Markdown
Member

@safern - this is good to go. Please merge when you can.

@steveisok
steveisok self-requested a review February 7, 2022 21:37
@akoeplingerakoeplinger modified the milestones: 6.0.x, 6.0.3Feb 7, 2022
@akoeplinger
akoeplinger merged commit dbda62f into release/6.0Feb 8, 2022
@akoeplinger
akoeplinger deleted the backport/pr-64908-to-release/6.0 branch February 8, 2022 00:07
@ghostghost locked as resolved and limited conversation to collaborators Mar 10, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Tracing-monoServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@steveisok@safern@akoeplinger@lateralusX