[all-commits] [llvm/llvm-project] 662d38: [lldb/telemetry] Report exit status only once (#13...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Thu Apr 3 02:59:24 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 662d385c7b07fc6aba51e73a09c254f551ab93ab
https://github.com/llvm/llvm-project/commit/662d385c7b07fc6aba51e73a09c254f551ab93ab
Author: Pavel Labath <pavel at labath.sk>
Date: 2025-04-03 (Thu, 03 Apr 2025)
Changed paths:
M lldb/source/Target/Process.cpp
Log Message:
-----------
[lldb/telemetry] Report exit status only once (#134078)
SetExitStatus can be called the second time when we reap the debug
server process. This shouldn't be interesting as at that point, we've
already told everyone that the process has exited.
I believe/hope this will also help with sporadic shutdown crashes that
have cropped up recently. They happen because the debug server is
monitored from a detached thread, so this code can be called after main
returns (and starts destroying everything). This isn't a real fix for
that though, as the situation can still happen (it's just that it
usually happens after the exit status has already been set). I think the
real fix for that is to make sure these threads terminate before we
start shutting everything down.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list