<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56085>56085</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLDB: Breakpoint/jit-loader* tests fail for me (on Linux and FreeBSD)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mgorny
</td>
</tr>
</table>
<pre>
This is a recent regression, I'm going to try bisecting it later:
```
FAIL: lldb-shell :: Breakpoint/jit-loader_rtdyld_elf.test (16 of 17)
******************** TEST 'lldb-shell :: Breakpoint/jit-loader_rtdyld_elf.test' FAILED ********************
Script:
--
: 'RUN: at line 6'; /home/mgorny/git/llvm-project/build/bin/clang --target=specify-a-target-or-use-a-_host-substitution -g -S -emit-llvm --target=x86_64-unknown-unknown-elf -o /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_rtdyld_elf.test.tmp.ll /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/Inputs/jitbp.cpp
: 'RUN: at line 9'; /home/mgorny/git/llvm-project/build/bin/lldb --no-lldbinit -S /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run --jit-kind=mcjit /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_rtdyld_elf.test.tmp.ll' /home/mgorny/git/llvm-project/build/bin/lli | /home/mgorny/git/llvm-project/build/bin/FileCheck /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test
: 'RUN: at line 12'; /home/mgorny/git/llvm-project/build/bin/lldb --no-lldbinit -S /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run --jit-linker=rtdyld /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_rtdyld_elf.test.tmp.ll' /home/mgorny/git/llvm-project/build/bin/lli | /home/mgorny/git/llvm-project/build/bin/FileCheck /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test
--
Exit Code: 1
Command Output (stderr):
--
/home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test:17:10: error: CHECK: expected string not found in input
# CHECK: Process {{.*}} stopped
^
<stdin>:17:138: note: scanning from here
(lldb) run --jit-kind=mcjit /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_rtdyld_elf.test.tmp.ll
^
<stdin>:18:1: note: possible intended match here
Process 536389 exited with status = 0 (0x00000000)
^
Input file: <stdin>
Check file: /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: (lldb) command source -s 0 '/home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init'
2: Executing commands in '/home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init'.
3: (lldb) # LLDB init file for the LIT tests.
4: (lldb) settings set symbols.enable-external-lookup false
5: (lldb) settings set plugin.process.gdb-remote.packet-timeout 60
6: (lldb) settings set interpreter.echo-comment-commands false
7: (lldb) settings set symbols.clang-modules-cache-path "/home/mgorny/git/llvm-project/build/lldb-test-build.noindex/module-cache-lldb"
8: (lldb) settings set target.auto-apply-fixits false
9: (lldb) settings set target.inherit-tcc true
10: (lldb) settings set target.detach-on-error false
11: (lldb) target create "/home/mgorny/git/llvm-project/build/bin/lli"
12: Current executable set to '/home/mgorny/git/llvm-project/build/bin/lli' (x86_64).
13: (lldb) settings set plugin.jit-loader.gdb.enable on
14: (lldb) b jitbp
15: Breakpoint 1: no locations (pending).
16: WARNING: Unable to resolve breakpoint to any actual locations.
17: (lldb) run --jit-kind=mcjit /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_rtdyld_elf.test.tmp.ll
check:17'0 X error: no match found
18: Process 536389 exited with status = 0 (0x00000000)
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:17'1 ? possible intended match
19: Process 536389 launched: '/home/mgorny/git/llvm-project/build/bin/lli' (x86_64)
check:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>
--
********************
FAIL: lldb-shell :: Breakpoint/jit-loader_jitlink_elf.test (17 of 17)
******************** TEST 'lldb-shell :: Breakpoint/jit-loader_jitlink_elf.test' FAILED ********************
Script:
--
: 'RUN: at line 6'; /home/mgorny/git/llvm-project/build/bin/clang --target=specify-a-target-or-use-a-_host-substitution -g -S -emit-llvm -fPIC --target=x86_64-unknown-unknown-elf -o /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_jitlink_elf.test.tmp.ll /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/Inputs/jitbp.cpp
: 'RUN: at line 8'; /home/mgorny/git/llvm-project/build/bin/lldb --no-lldbinit -S /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run --jit-linker=jitlink /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_jitlink_elf.test.tmp.ll' /home/mgorny/git/llvm-project/build/bin/lli | /home/mgorny/git/llvm-project/build/bin/FileCheck /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test
--
Exit Code: 1
Command Output (stderr):
--
/home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test:13:10: error: CHECK: expected string not found in input
# CHECK: Process {{.*}} stopped
^
<stdin>:17:143: note: scanning from here
(lldb) run --jit-linker=jitlink /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_jitlink_elf.test.tmp.ll
^
<stdin>:18:1: note: possible intended match here
Process 536387 exited with status = 0 (0x00000000)
^
Input file: <stdin>
Check file: /home/mgorny/git/llvm-project/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: (lldb) command source -s 0 '/home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init'
2: Executing commands in '/home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init'.
3: (lldb) # LLDB init file for the LIT tests.
4: (lldb) settings set symbols.enable-external-lookup false
5: (lldb) settings set plugin.process.gdb-remote.packet-timeout 60
6: (lldb) settings set interpreter.echo-comment-commands false
7: (lldb) settings set symbols.clang-modules-cache-path "/home/mgorny/git/llvm-project/build/lldb-test-build.noindex/module-cache-lldb"
8: (lldb) settings set target.auto-apply-fixits false
9: (lldb) settings set target.inherit-tcc true
10: (lldb) settings set target.detach-on-error false
11: (lldb) target create "/home/mgorny/git/llvm-project/build/bin/lli"
12: Current executable set to '/home/mgorny/git/llvm-project/build/bin/lli' (x86_64).
13: (lldb) settings set plugin.jit-loader.gdb.enable on
14: (lldb) b jitbp
15: Breakpoint 1: no locations (pending).
16: WARNING: Unable to resolve breakpoint to any actual locations.
17: (lldb) run --jit-linker=jitlink /home/mgorny/git/llvm-project/build/tools/lldb/test/Shell/Breakpoint/Output/jit-loader_jitlink_elf.test.tmp.ll
check:13'0 X error: no match found
18: Process 536387 exited with status = 0 (0x00000000)
check:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:13'1 ? possible intended match
19: Process 536387 launched: '/home/mgorny/git/llvm-project/build/bin/lli' (x86_64)
check:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>
--
********************
********************
Failed Tests (2):
lldb-shell :: Breakpoint/jit-loader_jitlink_elf.test
lldb-shell :: Breakpoint/jit-loader_rtdyld_elf.test
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWllv6jgU_jXwYiXKUkh44KFlmammunM17dXMW-UkBnLrxJHt3MK_n3OcQFkC09KNjoiirOT481nsz5-IRLLo381SRWCnRLKY5RpOU8mUSkXe8gbkuuUFGZmKNJ8SLYiWCxKlisUaH6SacKqZbPmXLWfYcpbHrlPv5nZ8eX0DvyCcJ5GlZoxzgh_AkyvJ6EMBtnXLG_9MtcUFTZi8lzpZ8OSe8YmtmdKk5YVul4gJcYOW16sb8Y7fyd3o9g6sBkdDgm8J9ms0JK8BUnXlNpZpoVdOtKy6hwAH2vnrxze8ouDrNGekC49a_hUh8G48ExmDUzYVMl_AxTRF2Jz_yqxCip8QJriNypQneE4houOYU4icZWkqpwwaHaqCxelkYdH6kSWkVSoG9_czobSlykjpVJcaMoJY8OktsViGnoFm1g3Nw-5998Iq84dcPOarM7iMLDdLvBi1FoIr8zqJ8NY4f3yLMYPzRrj-LHVRHo6brbPCxmg_E8UzWr3OoVFVtRoVdlwUh8LXe2X4EBA4PRcWXqU5lCAE5G2dyk1woTIq81EVtkAxjVWvCFyQgpfTNLefPG1Pk8hmOY04Izh0BPVXETF-wQdkMw8CWUJCWWjiIc0TyKAshpvTyBDEe2yEUtIKBkd-PU45G8xY_PCWKXpgHDuQqq53ztWGXAXfPOCUN6xceU7XD0_X5QQ5mkPIByJhmLXuOgMZiCyjeUIqByJ_UBrMSWQPO9PshwD3L4G7wMFBrIBEIGkig99Hgz_MkznMwpolRGmJzCoXmkxECV1Ic9gxC2qw_tNH36WIgalB-K5gt5FPBEPYwYgoCpZUn6wSudUZLct9AO6A-PmjFS4_RIvQrHGmimmeI46JFBmZMcmWzYeVG3rkpAfvzY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