Skip to content

Commit ae21717

Browse files
authored
Merge pull request swiftlang#2646 from apple/lldb-Add-work-around-handling-of-recursive_mutex-lock-failures
[lldb] Add work around handling of recursive_mutex lock failures
2 parents 0734da1 + ab3c3f1 commit ae21717

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
@@ -101,6 +101,19 @@ def execute(self, test, litConfig):
101101
if timeoutInfo:
102102
return lit.Test.TIMEOUT, output
103103

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

0 commit comments

Comments
 (0)