[Lldb-commits] [PATCH] D62931: [lldb-server] Add setting to force 'g' packet use

Jan Kratochvil via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 10 22:32:17 PST 2019


Hi Jason,

On Mon, 11 Nov 2019 02:04:55 +0100, Jason Molenda wrote:
> ./lldb-dotest -t -v -p TestNoGPacketSupported.py

Linux Fedora 30 x86_64
6ef63638cb8bac243e0e59cec66a19c57b79e351


Thanks,
Jan
-------------- next part --------------
/usr/bin/python /home/jkratoch/redhat/llvm-monorepo/lldb/test/API/dotest.py --arch=x86_64 -s /home/jkratoch/redhat/llvm-monorepo-clangassert/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/lldb --compiler /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/clang --dsymutil /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/dsymutil --filecheck /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/FileCheck --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy --build-dir /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lldb-test-build.noindex -t -v -p TestNoGPacketSupported.py
/home/jkratoch/redhat/llvm-monorepo/lldb/test/API/dotest.py --arch=x86_64 -s /home/jkratoch/redhat/llvm-monorepo-clangassert/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/lldb --compiler /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/clang --dsymutil /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/dsymutil --filecheck /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/FileCheck --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy --build-dir /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lldb-test-build.noindex -t -v -p TestNoGPacketSupported.py
LLDB library dir: /home/jkratoch/redhat/llvm-monorepo-clangassert/bin
LLDB import library dir: /home/jkratoch/redhat/llvm-monorepo-clangassert/bin
lldb version 10.0.0 (https://github.com/llvm/llvm-project.git revision 42e88995e62525a69b0d4b1780ae19649a5ff3b4)
  clang revision 6ef63638cb8bac243e0e59cec66a19c57b79e351
  llvm revision 6ef63638cb8bac243e0e59cec66a19c57b79e351
Libc++ tests will not be run because: Unable to find libc++ installation
Skipping following debug info categories: ['dsym', 'gmodules']

Session logs for test failures/errors/unexpected successes will go into directory '/home/jkratoch/redhat/llvm-monorepo-clangassert/lldb-test-traces'
Command invoked: /home/jkratoch/redhat/llvm-monorepo/lldb/test/API/dotest.py --arch=x86_64 -s /home/jkratoch/redhat/llvm-monorepo-clangassert/lldb-test-traces -S nm -u CXXFLAGS -u CFLAGS --executable /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/lldb --compiler /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/clang --dsymutil /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/dsymutil --filecheck /home/jkratoch/redhat/llvm-monorepo-clangassert/./bin/FileCheck --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy --build-dir /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lldb-test-build.noindex -t -v -p TestNoGPacketSupported.py
compiler=/home/jkratoch/redhat/llvm-monorepo-clangassert/bin/clang-10

Configuration: arch=x86_64 compiler=/home/jkratoch/redhat/llvm-monorepo-clangassert/bin/clang-10
----------------------------------------------------------------------
Collected 1 test

Change dir to: /home/jkratoch/redhat/llvm-monorepo/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client
1: test (TestNoGPacketSupported.TestNoGPacketSupported) ... 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 "/home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lldb-test-build.noindex/module-cache-lldb"
output: 

runCmd: settings set use-color false
output: 

runCmd: settings set target.env-vars LD_LIBRARY_PATH=
output: 

runCmd: log enable gdb-remote packets
output: 

runCmd: log enable gdb-remote packets
output: 

Adding tearDown hook:                 lambda: self.runCmd("log disable gdb-remote packets"))


python           <   1> send packet: +
python           history[1] tid=0x1d5a <   1> send packet: +
python           <  19> send packet: $QStartNoAckMode#b0
python           <   1> read packet: +
python           <   6> read packet: $OK#9a
python           <   1> send packet: +
python           <  45> send packet: $qSupported:xmlRegisters=i386,arm,mips,arc#74
python           <  57> read packet: $qXfer:features:read+;PacketSize=3fff;QStartNoAckMode+#86
python           <  26> send packet: $QThreadSuffixSupported#e4
python           <   4> read packet: $#00
python           <  27> send packet: $QListThreadsInStopReply#21
python           <   4> read packet: $#00
python           <  13> send packet: $qHostInfo#9b
python           <  28> read packet: $ptrsize:8;endian:little;#30
python           <  10> send packet: $vCont?#49
python           <   4> read packet: $#00
python           <  27> send packet: $qVAttachOrWaitSupported#38
python           <   4> read packet: $#00
python           <  23> send packet: $QEnableErrorStrings#8c
python           <   6> read packet: $OK#9a
python           <  16> send packet: $qProcessInfo#dc
python           <   4> read packet: $#00
python           <   6> send packet: $qC#b4
python           <   7> read packet: $QC0#c4
python           <  16> send packet: $qfThreadInfo#bb
python           <   5> read packet: $l#6c
python           <   5> send packet: $?#3f
python           < 122> read packet: $T11thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;#f4
python           <  16> send packet: $qProcessInfo#dc
python           <   4> read packet: $#00
python           <  16> send packet: $qProcessInfo#dc
python           <   4> read packet: $#00
python           <  41> send packet: $qXfer:features:read:target.xml:0,3ffe#af
python           < 710> read packet: $l<?xml version="1.0"?>
                        <target version="1.0">
                          <architecture>i386:x86-64</architecture>
                          <feature name="org.gnu.gdb.i386.core">
                            <reg name="rax" bitsize="64" regnum="0" type="code_ptr" group="general"/>
                            <reg name="rbx" bitsize="64" regnum="1" type="code_ptr" group="general"/>
                            <reg name="rsi" bitsize="64" regnum="2" type="code_ptr" group="general"/>
                            <reg name="rip" bitsize="64" regnum="3" type="code_ptr" group="general" altname="pc" generic="pc"/>
                          </feature>
                        </target>#4a
python           <  11> send packet: $Hg1ff0d#40
python           <   6> read packet: $OK#9a
python           <   6> send packet: $p0#a0
python           <  20> read packet: $5555555555555555#50
python           <  16> send packet: $qProcessInfo#dc
python           <   4> read packet: $#00
python           <  26> send packet: $qStructuredDataPlugins#02
python           <   4> read packet: $#00
python           <  11> send packet: $Hc1ff0d#3c
python           <   6> read packet: $OK#9a
b-remote.async>  <   7> send packet: $C11#a5
b-remote.async>  <   4> read packet: $#00
Register values: rax == 0x0, rbx == 0x0, rsi == 0x0, pc == 0xffffffffffffffff, rip == 0x0
FAILURE
FAIL: LLDB (/home/jkratoch/redhat/llvm-monorepo-clangassert/bin/clang-10-x86_64) :: test (TestNoGPacketSupported.TestNoGPacketSupported)
<bound method SBProcess.Kill of <lldb.SBProcess; proxy of <Swig Object of type 'lldb::SBProcess *' at 0x7f082d287810> >>: success

Executing tearDown hook:                 lambda: self.runCmd("log disable gdb-remote packets"))


runCmd: log disable gdb-remote packets
output: 

Restore dir to: /home/jkratoch/redhat/llvm-monorepo-clangassert

======================================================================
FAIL: test (TestNoGPacketSupported.TestNoGPacketSupported)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jkratoch/redhat/llvm-monorepo/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py", line 93, in test
    self.assertEqual(rax, 0xffffffe03c778278)
AssertionError: 0 != 18446743937285063288L
Config=x86_64-/home/jkratoch/redhat/llvm-monorepo-clangassert/bin/clang-10
----------------------------------------------------------------------
Ran 1 test in 0.022s

RESULT: FAILED (0 passes, 1 failures, 0 errors, 0 skipped, 0 expected failures, 0 unexpected successes)
Session logs for test failures/errors/unexpected successes can be found in directory '/home/jkratoch/redhat/llvm-monorepo-clangassert/lldb-test-traces'


More information about the lldb-commits mailing list