[Lldb-commits] [lldb] [lldb] Improve thread counting in tests (PR #227312)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 1 02:45:05 PDT 2026


DavidSpickett wrote:

This is failing on Arm Linux. For some reason when we stop in thread 2 the main thread has frames but they are all in libc. I suspect something wrong with Thumb backtracing.
```
thread #1: tid = 23424, 0xf2f8c6c4 libc.so.6, name = 'a.out'
(arm) /lib/arm-linux-gnueabihf/libc.so.6
(arm) /lib/arm-linux-gnueabihf/libc.so.6
(arm) /lib/arm-linux-gnueabihf/libc.so.6
(arm) /lib/arm-linux-gnueabihf/libc.so.6
thread #2: tid = 23434, 0x0d97fa0c a.out`thread1() at main.cpp:19:3, name = 'a.out', stop reason = breakpoint 2.1
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /lib/arm-linux-gnueabihf/libstdc++.so.6
thread #3: tid = 23437, 0x0d97fb04 a.out`thread2() at main.cpp:0:3, name = 'a.out'
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /root/build-llvm/lldb-test-build/functionalities/thread/thread_exit/TestThreadExit/a.out
(arm) /lib/arm-linux-gnueabihf/libstdc++.so.6
```
If you continue to a breakpoint later in main, the expected frames magically return :shrug: 

So likely gonna file an issue and skip these tests, but still confirming the cause.

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


More information about the lldb-commits mailing list