[Lldb-commits] [lldb] Fix lldb crash while handling concurrent vfork() (PR #81564)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 6 10:08:17 PST 2024


================
@@ -0,0 +1,116 @@
+"""
+Make sure that the concurrent vfork() from multiple threads works correctly.
+"""
+
+
+import lldb
+import lldbsuite.test.lldbutil as lldbutil
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test.decorators import *
+
+
+class TestConcurrentVFork(TestBase):
+    NO_DEBUG_INFO_TESTCASE = True
+
+    def get_pid_from_variable(self, target):
+        return target.FindFirstGlobalVariable("g_pid").GetValueAsUnsigned()
----------------
clayborg wrote:

only one caller to this, just inline the code as suggested below.

https://github.com/llvm/llvm-project/pull/81564


More information about the lldb-commits mailing list