This is an archive of the discontinued LLVM Phabricator instance.

[libc][Obvious] Check if the state hasn't already been destroyed on shutdown
ClosedPublic

Authored by jhuber6 on Jul 11 2023, 12:35 PM.

Details

Summary

This ensures that if someone calls the rpc_shutdown method multiple
times it will not segfault and gracefully continue. This was causing
problems in the OpenMP usage. This could point to other issues, but for
now this is a safe fix.

Diff Detail

Event Timeline

jhuber6 created this revision.Jul 11 2023, 12:35 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 11 2023, 12:35 PM
jhuber6 requested review of this revision.Jul 11 2023, 12:35 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jul 11 2023, 12:35 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.