<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - lldb-shell :: Subprocess/clone-follow-parent*.test failing on Linux/aarch64"
href="https://bugs.llvm.org/show_bug.cgi?id=49899">49899</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lldb-shell :: Subprocess/clone-follow-parent*.test failing on Linux/aarch64
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mgorny@gentoo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I don't have ARM64 hardware to debug this. The more important fork() tests
seem to pass, so I'm just going to 'unsupport' clone() tests on ARM64 Linux.
FAIL: lldb-shell :: Subprocess/clone-follow-parent.test (2291 of 2295)
******************** TEST 'lldb-shell :: Subprocess/clone-follow-parent.test'
FAILED ********************
Script:
--
: 'RUN: at line 2';
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/bin/clang
--driver-mode=g++ --target=specify-a-target-or-use-a-_host-substitution
--target=aarch64-unknown-linux-gnu -pthread
-fmodules-cache-path=/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/lldb-test-build.noindex/module-cache-clang/lldb-shell
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/Inputs/fork.cpp
-DTEST_CLONE -o
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/Subprocess/Output/clone-follow-parent.test.tmp
: 'RUN: at line 3';
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/bin/lldb --no-lldbinit -S
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/lit-lldb-init
-b -s
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent.test
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/Subprocess/Output/clone-follow-parent.test.tmp
| /home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/bin/FileCheck
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent.test
--
Exit Code: 1
Command Output (stderr):
--
clang-13: warning: argument unused during compilation:
'-fmodules-cache-path=/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/lldb-test-build.noindex/module-cache-clang/lldb-shell'
[-Wunused-command-line-argument]
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent.test:10:10:
error: CHECK: expected string not found in input
# CHECK: child exited: 0
^
<stdin>:28:23: note: scanning from here
function run in parent
^
<stdin>:29:137: note: possible intended match here
clone-follow-parent.test.tmp:
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/Inputs/fork.cpp:46:
int main(): Assertion `WIFEXITED(status)' failed.
^
Input file: <stdin>
Check file:
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
23: 0x400738 <+4>: mov x29, sp
24: 0x40073c <+8>: adrp x9, 17
25: 0x400740 <+12>: mov w8, #0x1
26: Process 3229 launched:
'/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/Subprocess/Output/clone-follow-parent.test.tmp'
(aarch64)
27: (lldb) continue
28: function run in parent
check:10'0 X error: no match found
29: clone-follow-parent.test.tmp:
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/Inputs/fork.cpp:46:
int main(): Assertion `WIFEXITED(status)' failed.
check:10'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:10'1
?
possible intended match
30: Process 3229 resuming
check:10'0 ~~~~~~~~~~~~~~~~~~~~~~
31: Process 3229 stopped
check:10'0 ~~~~~~~~~~~~~~~~~~~~~
32: * thread #1, name = 'clone-follow-pa', stop reason = hit program
assert
check:10'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33: frame #4: 0x0000000000400870 clone-follow-parent.test.tmp`main
+ 240
check:10'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34: clone-follow-parent.test.tmp`main:
check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
<span class="quote">>>>>>></span >
--
********************
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: lldb-shell :: Subprocess/clone-follow-parent-wp.test (2293 of 2295)
******************** TEST 'lldb-shell ::
Subprocess/clone-follow-parent-wp.test' FAILED ********************
Script:
--
: 'RUN: at line 2';
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/bin/clang
--driver-mode=g++ --target=specify-a-target-or-use-a-_host-substitution
--target=aarch64-unknown-linux-gnu -pthread
-fmodules-cache-path=/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/lldb-test-build.noindex/module-cache-clang/lldb-shell
-g
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/Inputs/fork.cpp
-DTEST_CLONE -o
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/Subprocess/Output/clone-follow-parent-wp.test.tmp
: 'RUN: at line 3';
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/bin/lldb --no-lldbinit -S
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/lit-lldb-init
-b -s
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent-wp.test
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/tools/lldb/test/Shell/Subprocess/Output/clone-follow-parent-wp.test.tmp
| /home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/bin/FileCheck
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent-wp.test
--
Exit Code: 1
Command Output (stderr):
--
clang-13: warning: argument unused during compilation:
'-fmodules-cache-path=/home/tcwg-buildslave/worker/lldb-cmake-aarch64/build/lldb-test-build.noindex/module-cache-clang/lldb-shell'
[-Wunused-command-line-argument]
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent-wp.test:12:10:
error: CHECK: expected string not found in input
# CHECK: child exited: 0
^
<stdin>:38:23: note: scanning from here
function run in parent
^
<stdin>:49:13: note: possible intended match here
47 printf("child exited: %d\n", WEXITSTATUS(status));
^
Input file: <stdin>
Check file:
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/clone-follow-parent-wp.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
33: 4 #if defined(TEST_CLONE)
34: 5 #include <sched.h>
35: 6 #endif
36: 7 #include <stdint.h>
37: (lldb) continue
38: function run in parent
check:12'0 X error: no match found
39: clone-follow-parent-wp.test.tmp:
/home/tcwg-buildslave/worker/lldb-cmake-aarch64/llvm-project/lldb/test/Shell/Subprocess/Inputs/fork.cpp:46:
int main(): Assertion `WIFEXITED(status)' failed.
check:12'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40: Process 3232 resuming
check:12'0 ~~~~~~~~~~~~~~~~~~~~~~
41: Process 3232 stopped
check:12'0 ~~~~~~~~~~~~~~~~~~~~~
42: * thread #1, name = 'clone-follow-pa', stop reason = hit program
assert
check:12'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43: frame #4: 0x0000000000400870
clone-follow-parent-wp.test.tmp`main at fork.cpp:46:3
check:12'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44: 43 #endif
check:12'0 ~~~~~~~~~~~
45: 44 pid_t waited = waitpid(pid, &status, wait_flags);
check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46: 45 assert(waited == pid);
check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
47: -> 46 assert(WIFEXITED(status));
check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48: ^
check:12'0 ~~~
49: 47 printf("child exited: %d\n", WEXITSTATUS(status));
check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:12'1 ? possible
intended match
50: 48
check:12'0 ~~~~~
51: 49 return 0;
check:12'0 ~~~~~~~~~~~~~~
<span class="quote">>>>>>></span >
--
********************
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (2):
lldb-shell :: Subprocess/clone-follow-parent-wp.test
lldb-shell :: Subprocess/clone-follow-parent.test
Testing Time: 896.87s
Unsupported : 408
Passed : 1883
Expectedly Failed: 2
Failed : 2</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>