[llvm-bugs] [Bug 49899] New: lldb-shell :: Subprocess/clone-follow-parent*.test failing on Linux/aarch64

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 8 11:07:09 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49899

            Bug ID: 49899
           Summary: lldb-shell :: Subprocess/clone-follow-parent*.test
                    failing on Linux/aarch64
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: mgorny at gentoo.org
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

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     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>
--
********************
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     ~~~~~~~~~~~~~~
>>>>>>
--
********************
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210408/19385f9f/attachment-0001.html>


More information about the llvm-bugs mailing list