[Lldb-commits] [lldb] r153769 - /lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
Greg Clayton
gclayton at apple.com
Fri Mar 30 12:56:33 PDT 2012
Author: gclayton
Date: Fri Mar 30 14:56:32 2012
New Revision: 153769
URL: http://llvm.org/viewvc/llvm-project?rev=153769&view=rev
Log:
Patch from Viktor Kutuzov: fixes a segmentation fault crash in lldb in the ProcessPOSIX class when the object gets destroyed. I can reproduce this problem on the FreeBSD platform and it should be reproducable for the other platforms also.
Modified:
lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=153769&r1=153768&r2=153769&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Fri Mar 30 14:56:32 2012
@@ -292,7 +292,7 @@
// limbo).
m_exit_now = true;
- if (kill(m_monitor->GetPID(), SIGKILL) && error.Success())
+ if ((m_monitor == NULL || kill(m_monitor->GetPID(), SIGKILL)) && error.Success())
{
error.SetErrorToErrno();
return error;
More information about the lldb-commits
mailing list