https://github.com/Teemperor created
https://github.com/llvm/llvm-project/pull/221691
LLDB needs to sometimes run utility expressions such as loading libraries via a
call to `dlopen`. These utility expressions have a timeout associated with them
which is only 15 seconds (and 60 on sanitized builds).
I suspect our expressions reaching this timeout is the reason why
TestLoadUsingPaths.py sometimes fails to load libraries and produces this error:
```
File "../TestLoadUsingPaths.py", line 78, in test_load_using_paths
self.assertNotEqual(token, lldb.LLDB_INVALID_IMAGE_TOKEN, "Got a valid
token")
```
This patch bumps the timeout to 10 minutes. There is no good reason why this
timeout should exist in the first place on test bots, and maybe we should
remove them or make them fatal errors on the test bots. But for now this patch
should at least fix the test randomly failing on very slow bots.
>From 54df2c7c439f2b0743279f61493bf5ca383a1c64 Mon Sep 17 00:00:00 2001
From: Raphael Isemann <[email protected]>
Date: Mon, 7 Sep 2026 10:26:27 +0100
Subject: [PATCH] [lldb][test] Bump utility expression timeout to 10 minutes
LLDB needs to sometimes run utility expressions such as loading
libraries via a call to `dlopen`. These utility expressions have a
timeout associated with them which is only 15 seconds (and 60
on sanitized builds).
I suspect our expressions reaching this timeout is the reason why
TestLoadUsingPaths.py sometimes fails to load libraries and produces
this error:
```
File "../TestLoadUsingPaths.py", line 78, in test_load_using_paths
self.assertNotEqual(token, lldb.LLDB_INVALID_IMAGE_TOKEN, "Got a valid
token")
```
This patch bumps the timeout to 10 minutes. There is no good reason
why this timeout should exist in the first place on test bots, and
maybe we should remove them or make them fatal errors on the test bots.
But for now this patch should at least fix the test randomly failing
on very slow bots.
---
lldb/packages/Python/lldbsuite/test/lldbtest.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py
b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index eaf31c10c1dec..33ed383549032 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -890,6 +890,9 @@ def setUpCommands(cls):
"settings set target.auto-apply-fixits false",
# Testsuite runs in parallel and the host can have also other load.
"settings set plugin.process.gdb-remote.packet-timeout 60",
+ # LLDB-internal utility expressions can take very long when the
+ # host is under heavy load.
+ "settings set target.process.utility-expression-timeout 600",
'settings set symbols.clang-modules-cache-path "{}"'.format(
configuration.lldb_module_cache_dir
),
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits