This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Fix a segfault in signal handlers
ClosedPublic

Authored by labath on Apr 11 2016, 7:28 AM.

Details

Summary

If we recieve a SIGCONT or SIGTSTP, while the driver is shutting down (which, sometimes, we do,
for reasons which are not completely clear to me), we would crash to due a null pointer
dereference. Guard against this situation.

Diff Detail

Event Timeline

labath updated this revision to Diff 53239.Apr 11 2016, 7:28 AM
labath retitled this revision from to [Driver] Fix a segfault in signal handlers.
labath updated this object.
labath added a reviewer: clayborg.
labath added a subscriber: lldb-commits.
clayborg accepted this revision.Apr 11 2016, 9:31 AM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Apr 11 2016, 9:31 AM
This revision was automatically updated to reflect the committed changes.