Regression

Test Clang 7.0.1 / lldb-Suite.commands/apropos/with-process.TestAproposWithProcess.py (from lldb-Suite)

Failing for the past 1 build (Since Unstable#270 )
Took 3.2 sec.

Stacktrace

lldb version 10.0.99 (http://labmaster3.local/git/llvm-project.git revision 1a3dd638c4a9173e53628b497a1aadc31c32eb50)
  clang revision daa79c5338228a746a7eba0cf2f2f356e1d45a5b
  llvm revision daa79c5338228a746a7eba0cf2f2f356e1d45a5b
LLDB library dir: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin
LLDB import library dir: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/bin
libstdcxx tests will not be run because: Don't know how to build with libstdcxx on macosx
Skipping following debug info categories: ['dwo']

Session logs for test failures/errors/unexpected successes will go into directory '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/test/logs'
Command invoked: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/test/dotest.py --arch=x86_64 -s /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/lldb --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/dsymutil --filecheck /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/FileCheck -C /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang --codesign-identity lldb_codesign --server /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./bin/debugserver --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/lldb-test-build.noindex -s=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/test/logs -t --env TERM=vt100 --skip-category gmodules --skip-category watchpoint --arch=x86_64 --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/./lib --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex --module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/commands/apropos/with-process -p TestAproposWithProcess.py
Change dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/commands/apropos/with-process
runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb"
output: 

runCmd: settings set use-color false
output: 

runCmd: file /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/commands/apropos/with-process/TestAproposWithProcess.test_apropos_with_process_dsym/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/commands/apropos/with-process/TestAproposWithProcess.test_apropos_with_process_dsym/a.out' (x86_64).


runCmd: breakpoint set -f "main.cpp" -l 12
output: Breakpoint 1: where = a.out`main + 20 at main.cpp:12:3, address = 0x0000000100000fb4


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: run
output: Process 91168 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000fb4 a.out`main(argc=1, argv=0x00007ffeefbff538) at main.cpp:12:3
   9   	
   10  	int main (int argc, char const *argv[])
   11  	{
-> 12  	  return 0; // break here
    	  ^
   13  	}
   14  	

Process 91168 launched: '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/commands/apropos/with-process/TestAproposWithProcess.test_apropos_with_process_dsym/a.out' (x86_64)


runCmd: thread list
output: Process 91168 stopped
* thread #1: tid = 0x2774b33, 0x0000000100000fb4 a.out`main(argc=1, argv=0x00007ffeefbff538) at main.cpp:12:3, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1


Expecting sub string: stopped
Matched

Expecting sub string: stop reason = breakpoint
Matched

runCmd: breakpoint list -f
output: Current breakpoints:
1: file = 'main.cpp', line = 12, exact_match = 0, locations = 1, resolved = 1, hit count = 1
  1.1: where = a.out`main + 20 at main.cpp:12:3, address = 0x0000000100000fb4, resolved, hit count = 1 



Expecting sub string:  resolved, hit count = 1
Matched

runCmd: apropos env
output: The following commands may relate to 'env':
  _regexp-env -- Shorthand for viewing and setting environment variables.
  env         -- Shorthand for viewing and setting environment variables.

The following settings variables may relate to 'env': 


  target.env-vars -- A list of all the environment variables to be passed to
                     the executable's environment, and their values.
  target.inherit-env -- Inherit the environment from the process that is
                        running LLDB.


<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10a319ea0> >>: success

PASS: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_apropos_with_process_dsym (TestAproposWithProcess.AproposWithProcessTestCase)
runCmd: settings set symbols.enable-external-lookup false
output: 

runCmd: settings set plugin.process.gdb-remote.packet-timeout 60
output: 

runCmd: settings set symbols.clang-modules-cache-path "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/module-cache-lldb"
output: 

runCmd: settings set use-color false
output: 

runCmd: file /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/commands/apropos/with-process/TestAproposWithProcess.test_apropos_with_process_dwarf/a.out
output: Current executable set to '/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lldb-test-build.noindex/commands/apropos/with-process/TestAproposWithProcess.test_apropos_with_process_dwarf/a.out' (x86_64).


runCmd: breakpoint set -f "main.cpp" -l 12
output: Breakpoint 1: where = a.out`main + 20 at main.cpp:12:3, address = 0x0000000100000fb4


Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>[0-9]+) locations\.$
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): (?P<num_locations>no) locations \(pending\)\.
Not matched

Expecting pattern: ^Breakpoint (?P<bpno>[0-9]+): where = (?P<module>.*)`(?P<symbol>[+\-]{0,1}[^+]+)( \+ (?P<offset>[0-9]+)){0,1}( \[inlined\] (?P<inline_symbol>.*)){0,1} at (?P<file>[^:]+):(?P<line_no>[0-9]+)(?P<column>(:[0-9]+)?), address = (?P<address>0x[0-9a-fA-F]+)$
Matched

runCmd: run
runCmd failed!
error: process exited with status -1 (Error 1)


Command 'run' failed!

FAIL: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_apropos_with_process_dwarf (TestAproposWithProcess.AproposWithProcessTestCase)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x10a319d50> >>: success

UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_apropos_with_process_dwo (TestAproposWithProcess.AproposWithProcessTestCase) (test case does not fall in any category of interest for this run) 
UNSUPPORTED: LLDB (/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7-x86_64) :: test_apropos_with_process_gmodules (TestAproposWithProcess.AproposWithProcessTestCase) (test case does not fall in any category of interest for this run) 
Restore dir to: /Users/buildslave/jenkins/workspace/lldb-cmake-matrix/lldb-build/tools/lldb/lit
======================================================================
FAIL: test_apropos_with_process_dwarf (TestAproposWithProcess.AproposWithProcessTestCase)
   Test that apropos env doesn't crash trying to touch the process plugin command.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1748, in test_method
    return attrvalue(self)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/commands/apropos/with-process/TestAproposWithProcess.py", line 33, in test_apropos_with_process
    self.runCmd("run", RUN_SUCCEEDED)
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2068, in runCmd
    msg if (msg) else CMD_MSG(cmd))
AssertionError: False is not True : Process is launched successfully
Error output:
error: process exited with status -1 (Error 1)

Config=x86_64-/Users/buildslave/jenkins/workspace/lldb-cmake-matrix/clang_701_build/bin/clang-7
----------------------------------------------------------------------
Ran 4 tests in 2.682s

RESULT: FAILED (1 passes, 1 failures, 0 errors, 2 skipped, 0 expected failures, 0 unexpected successes)