Skip to content

Commit 96eb536

Browse files
kastiglionebnbarham
authored andcommitted
Merge pull request #2646 from apple/lldb-Add-work-around-handling-of-recursive_mutex-lock-failures
[lldb] Add work around handling of recursive_mutex lock failures (cherry picked from commit ae21717)
1 parent acdfc11 commit 96eb536

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lldb/test/API/lldbtest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ def execute(self, test, litConfig):
9898
if timeoutInfo:
9999
return lit.Test.TIMEOUT, output
100100

101+
# Temporary fix to a flaky CI error. See rdar://52221547
102+
# After unit tests have finished, a race during lldb shutdown can
103+
# result in this innocuous and trouble causing failure:
104+
#
105+
# libc++abi.dylib: terminating with uncaught exception of type \
106+
# std::__1::system_error: recursive_mutex lock failed: Invalid argument
107+
if (
108+
'RESULT: PASSED' in err and
109+
'recursive_mutex lock failed' in err and
110+
exitCode != 0
111+
):
112+
return lit.Test.FLAKYPASS, output
113+
101114
if exitCode:
102115
if 'XPASS:' in out or 'XPASS:' in err:
103116
return lit.Test.XPASS, output

0 commit comments

Comments
 (0)