Skip to content

Convert symbol-search crash to NFW#65279

Merged
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
CyrusNajmabadi:symbolSearchCrash
Nov 8, 2022
Merged

Convert symbol-search crash to NFW#65279
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
CyrusNajmabadi:symbolSearchCrash

Conversation

@CyrusNajmabadi
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Nov 8, 2022

Fixes AB#1584512

}

bool ReportAndDoNotCatch(Exception exception)
catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's with the _service. thing here having a function we're calling as opposed to just using the existing static methods?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this is not blocking for taking this in to 17.4 of course)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same q

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was for testing purposes. we actually validate these codepaths in tests, and it allows the test system to inject a helper that fails-fast as opposed to gracefully falling over (like the main code does).

}

bool ReportAndDoNotCatch(Exception exception)
catch (Exception e) when (_service._reportAndSwallowExceptionUnlessCanceled(e, cancellationToken))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same q

@CyrusNajmabadi CyrusNajmabadi merged commit 605765f into dotnet:main Nov 8, 2022
@ghost ghost added this to the Next milestone Nov 8, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the symbolSearchCrash branch November 8, 2022 20:39
@allisonchou allisonchou modified the milestones: Next, 17.5 P2 Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants