This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Kill the inferior instead of detaching during test suite runs
ClosedPublic

Authored by JDevlieghere on Dec 8 2020, 8:47 PM.

Details

Summary

Kill (rather than detach) form the inferior if debugserver loses its connection to lldb to prevent zombie processes.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

JDevlieghere requested review of this revision.Dec 8 2020, 8:47 PM
JDevlieghere created this revision.
teemperor accepted this revision.Dec 9 2020, 9:37 AM
teemperor added a subscriber: teemperor.

LGTM. I assume that's the result of investigating Vedant's zombie generation script?

This revision is now accepted and ready to land.Dec 9 2020, 9:37 AM
mib accepted this revision.Dec 9 2020, 9:42 AM
mib added a subscriber: mib.

LGTM

LGTM. I assume that's the result of investigating Vedant's zombie generation script?

No, we're still trying to figure that one out. This patch safeguards against something unexpected happening to debugserver, which shouldn't happen during a normal test suite run, but better safe than sorry.

Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2020, 6:40 PM