Skip to content

Commit dd9c826

Browse files
committed
[lldb/crashlog] Make image loading in tests single-threaded
This patch has a temporary fix for a non-deterministic deadlock when loading crashlog images in parallel, by making it single-threaded. Also given that dSYMForUUID is disabled on the CI (following f8afa76), this shouldn't cause any noticeable slowdown while running the test suite. Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 46eb924 commit dd9c826

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lldb/examples/python/crashlog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,9 @@ def SymbolicateCrashLogs(debugger, command_args, result, is_command):
18141814
)
18151815
)
18161816

1817+
if "NO_PARALLEL_IMG_LOADING" in os.environ:
1818+
options.no_parallel_image_loading = True
1819+
18171820
if options.version:
18181821
print(debugger.GetVersionString())
18191822
return

lldb/test/Shell/ScriptInterpreter/Python/Crashlog/lit.local.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ if 'lldb-repro' in config.available_features:
55
config.unsupported = True
66

77
config.environment["LLDB_APPLE_DSYMFORUUID_EXECUTABLE"] = ""
8+
9+
# Temporary parallel image loading deadlock workaround
10+
config.environment["NO_PARALLEL_IMG_LOADING"] = ""

0 commit comments

Comments
 (0)