Issue 234109
Summary lldb test stack_unwinding01.cpp is flaky on Windows on Arm
Labels lldb, test-suite, platform:windows
Assignees
Reporter DavidSpickett
    https://lab.llvm.org/buildbot/#/builders/141/builds/24467

```
FAIL: lldb-shell :: SymbolFile/NativePDB/stack_unwinding01.cpp (2283 of 2706)
******************** TEST 'lldb-shell :: SymbolFile/NativePDB/stack_unwinding01.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
'C:\Users\tcwg\scoop\apps\python\current\python.exe' C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\helper\build.py --compiler=any --arch=64 --tools-dir=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --libs-dir=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --compiler=clang-cl --nodefaultlib -o C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\tools\lldb\test\Shell\SymbolFile\NativePDB\Output\stack_unwinding01.cpp.tmp.exe -- C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\stack_unwinding01.cpp
# executed command: 'C:\Users\tcwg\scoop\apps\python\current\python.exe' 'C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\helper\build.py' --compiler=any --arch=64 --tools-dir=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --libs-dir=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --compiler=clang-cl --nodefaultlib -o 'C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\tools\lldb\test\Shell\SymbolFile\NativePDB\Output\stack_unwinding01.cpp.tmp.exe' -- 'C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\stack_unwinding01.cpp'
# .---command stdout------------
# | Cleaning stack_unwinding01.ilk
# | Cleaning stack_unwinding01.cpp.tmp.exe-stack_unwinding01.obj
# | Cleaning stack_unwinding01.cpp.tmp.pdb
# | Cleaning stack_unwinding01.cpp.tmp.exe
# | 
# | 
# | 
# | compiling stack_unwinding01.cpp -> stack_unwinding01.cpp.tmp.exe-stack_unwinding01.obj
# |   STDOUT:
# | 
# | 
# | 
# | 
# | linking stack_unwinding01.cpp.tmp.exe-stack_unwinding01.obj -> stack_unwinding01.cpp.tmp.exe
# |   STDOUT:
# | 
# `-----------------------------
# RUN: at line 5
c:\users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\lldb.exe --no-lldbinit -S C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/tools/lldb\test\Shell\lit-lldb-init-quiet -f C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\tools\lldb\test\Shell\SymbolFile\NativePDB\Output\stack_unwinding01.cpp.tmp.exe -s C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB/Inputs/stack_unwinding01.lldbinit 2>&1 | c:\users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\filecheck.exe C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\stack_unwinding01.cpp
# executed command: 'c:\users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\lldb.exe' --no-lldbinit -S 'C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/tools/lldb\test\Shell\lit-lldb-init-quiet' -f 'C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\tools\lldb\test\Shell\SymbolFile\NativePDB\Output\stack_unwinding01.cpp.tmp.exe' -s 'C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB/Inputs/stack_unwinding01.lldbinit'
# note: command had no output on stdout or stderr
# executed command: 'c:\users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\stack_unwinding01.cpp'
# .---command stderr------------
# | C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\stack_unwinding01.cpp:38:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: * thread #1, stop reason = breakpoint 1.1
# |                ^
# | <stdin>:57:24: note: scanning from here
# | (lldb) thread backtrace
# | ^
# | <stdin>:58:1: note: possible intended match here
# | * thread #1, stop reason = Exception 0xc00000fd encountered at address 0x7ff604991048
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\stack_unwinding01.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# | 52:  9 struct Struct { 
# |           53: -> 10 void simple_method(int a, int b) { 
# |           54:  11 a += 1; 
# | 55:  12 simple_method(a, b); 
# |           56:  13 } 
# |           57: (lldb) thread backtrace 
# | next:38'0                           {   search range start (exclusive)
# | next:38'1                               error: no match found in search range
# |           58: * thread #1, stop reason = Exception 0xc00000fd encountered at address 0x7ff604991048 
# | next:38'2 ? possible intended match
# |           59:  * frame #0: 0x00007ff604991048 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=<unavailable>, a=<unavailable>, b=<unavailable>) at stack_unwinding01.cpp:10 
# |           60:  frame #1: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=32210, b=2) at stack_unwinding01.cpp:12 
# |           61:  frame #2: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=32209, b=2) at stack_unwinding01.cpp:12 
# |           62:  frame #3: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=32208, b=2) at stack_unwinding01.cpp:12 
# |           63:  frame #4: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=32207, b=2) at stack_unwinding01.cpp:12 
# |            .
# |            .
# | .
# |        32266:  frame #32207: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=4, b=2) at stack_unwinding01.cpp:12 
# |        32267:  frame #32208: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=3, b=2) at stack_unwinding01.cpp:12 
# |        32268:  frame #32209: 0x00007ff604991074 stack_unwinding01.cpp.tmp.exe`void Struct::simple_method(this=0x000000610eeffa2b, a=2, b=2) at stack_unwinding01.cpp:12 
# |        32269:  frame #32210: 0x00007ff604991034 stack_unwinding01.cpp.tmp.exe`main(argc=248864768, argv=0x00007ff604991000) at stack_unwinding01.cpp:20 
# |        32270: frame #32211: 0x00007ffd26868740 kernel32.dll`BaseThreadInitThunk + 64 
# | 32271: (lldb) quit 
# | next:38'3                 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
```
Judging from `frame #32211`, maybe we missed a breakpoint event and continued on when we should not have.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to