Skip to content

don't crash the symbol graph tool when a module fails to load #35923

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

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

QuietMisdreavus
Copy link
Contributor

When the symbol graph tool fails to load a module, it currently crashes upon trying to load the main-file name. This PR adds a check before loading symbols to ensure that the module loaded properly; if it failed to load, the tool now prints an error message and cleanly exits instead of hitting an assertion and crashing.

Fixes rdar://74239464

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@QuietMisdreavus QuietMisdreavus merged commit 51bbea6 into main Feb 12, 2021
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/dont-crash-on-failed-loads branch February 12, 2021 17:05
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