[llvm-bugs] [Bug 48316] New: TestMultilineNavigation.py failures on FreeBSD
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 27 05:01:27 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48316
Bug ID: 48316
Summary: TestMultilineNavigation.py failures on FreeBSD
Product: lldb
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: mgorny at gentoo.org
CC: emaste at freebsd.org, jdevlieghere at apple.com,
llvm-bugs at lists.llvm.org, n54 at gmx.com
Both tests from TestMultilineNavigation.py fail on FreeBSD. It is curious
because the exact same procedure as included in the test works fine in an
interactive session (as long as it's run on a pty). Unless I'm mistaken, the
problem here is that up/down arrow codes are interpreted literally rather than
as keys. I've suspected that pexpect/ptyprocess could be misbehaving but FWICS
they correctly spawn the process with a pty.
$ /usr/local/bin/python3.7
/home/mgorny/llvm-project/llvm/tools/lldb/test/API/dotest.py -S nm -u CXXFLAGS
-u CFLAGS --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy --env
LLVM_LIBS_DIR=/home/mgorny/llvm-project/_build/./lib --arch x86_64 --build-dir
/home/mgorny/llvm-project/_build/lldb-test-build.noindex -s
/home/mgorny/llvm-project/_build/lldb-test-traces --lldb-module-cache-dir
/home/mgorny/llvm-project/_build/lldb-test-build.noindex/module-cache-lldb/lldb-api
--clang-module-cache-dir
/home/mgorny/llvm-project/_build/lldb-test-build.noindex/module-cache-clang/lldb-api
--executable /home/mgorny/llvm-project/_build/./bin/lldb --compiler
/home/mgorny/llvm-project/_build/./bin/clang --dsymutil
/home/mgorny/llvm-project/_build/./bin/dsymutil --filecheck
/home/mgorny/llvm-project/_build/./bin/FileCheck --yaml2obj
/home/mgorny/llvm-project/_build/./bin/yaml2obj --lldb-libs-dir
/home/mgorny/llvm-project/_build/./lib
/usr/home/mgorny/llvm-project/lldb/test/API/commands/expression/multiline-navigation
-p TestMultilineNavigation.py
lldb version 12.0.0
Libc++ tests will not be run because: Don't know how to build with libc++ on
freebsd
libstdcxx tests will not be run because: Don't know how to build with libstdcxx
on freebsd
Skipping following debug info categories: ['dwo', 'dsym', 'gmodules']
objc tests will be skipped because of unsupported platform
Session logs for test failures/errors/unexpected successes will go into
directory '/home/mgorny/llvm-project/_build/lldb-test-traces'
FAIL: LLDB (/home/mgorny/llvm-project/_build/bin/clang-x86_64) ::
test_nav_arrow_down (TestMultilineNavigation.TestCase)
FAIL: LLDB (/home/mgorny/llvm-project/_build/bin/clang-x86_64) ::
test_nav_arrow_up (TestMultilineNavigation.TestCase)
======================================================================
ERROR: test_nav_arrow_down (TestMultilineNavigation.TestCase)
Tests that we can navigate to the next line with the down arrow
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/expect.py",
line 111, in expect_loop
incoming = spawn.read_nonblocking(spawn.maxread, timeout)
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/pty_spawn.py",
line 482, in read_nonblocking
raise TIMEOUT('Timeout exceeded.')
pexpect.exceptions.TIMEOUT: Timeout exceeded.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/usr/home/mgorny/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py",
line 136, in wrapper
return func(*args, **kwargs)
File
"/usr/home/mgorny/llvm-project/lldb/test/API/commands/expression/multiline-navigation/TestMultilineNavigation.py",
line 67, in test_nav_arrow_down
self.child.expect_exact("(int) $0 = 334")
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py",
line 418, in expect_exact
return exp.expect_loop(timeout)
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/expect.py",
line 119, in expect_loop
return self.timeout(e)
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/expect.py",
line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: Timeout exceeded.
<pexpect.pty_spawn.spawn object at 0x808b0ced0>
command: /usr/home/mgorny/llvm-project/_build/bin/lldb
args: ['/usr/home/mgorny/llvm-project/_build/bin/lldb', '--no-lldbinit',
'--no-use-colors', '-O', 'settings clear -all', '-O', 'settings set
symbols.enable-external-lookup false', '-O', 'settings set target.inherit-tcc
true', '-O', 'settings set target.auto-apply-fixits false', '-O', 'settings set
plugin.process.gdb-remote.packet-timeout 60', '-O', 'settings set
symbols.clang-modules-cache-path
"/home/mgorny/llvm-project/_build/lldb-test-build.noindex/module-cache-lldb/lldb-api"',
'-O', 'settings set use-color false', '-O', 'setting set
target.prefer-dynamic-value no-dynamic-values']
buffer (last 100 chars): b' \x1b[1G 2: \r\x1b[5C222^[[A+^[[B\x08
\x083\r\n\r\n222\x1b[1G\x1b[1A\x1b[1G 1:
\r\x1b[5C111+\x07\x1b[1B\x1b[9G\r\n(int) $0 = 333\r\n(lldb) '
before (last 100 chars): b' \x1b[1G 2: \r\x1b[5C222^[[A+^[[B\x08
\x083\r\n\r\n222\x1b[1G\x1b[1A\x1b[1G 1:
\r\x1b[5C111+\x07\x1b[1B\x1b[9G\r\n(int) $0 = 333\r\n(lldb) '
after: <class 'pexpect.exceptions.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 1330
child_fd: 6
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
0: b'(int) $0 = 334'
Config=x86_64-/home/mgorny/llvm-project/_build/bin/clang
======================================================================
ERROR: test_nav_arrow_up (TestMultilineNavigation.TestCase)
Tests that we can navigate back to the previous line with the up arrow
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/expect.py",
line 111, in expect_loop
incoming = spawn.read_nonblocking(spawn.maxread, timeout)
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/pty_spawn.py",
line 482, in read_nonblocking
raise TIMEOUT('Timeout exceeded.')
pexpect.exceptions.TIMEOUT: Timeout exceeded.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/usr/home/mgorny/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py",
line 136, in wrapper
return func(*args, **kwargs)
File
"/usr/home/mgorny/llvm-project/lldb/test/API/commands/expression/multiline-navigation/TestMultilineNavigation.py",
line 37, in test_nav_arrow_up
self.child.expect_exact("(int) $0 = 124")
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py",
line 418, in expect_exact
return exp.expect_loop(timeout)
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/expect.py",
line 119, in expect_loop
return self.timeout(e)
File
"/usr/home/mgorny/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/expect.py",
line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: Timeout exceeded.
<pexpect.pty_spawn.spawn object at 0x8089fb1d0>
command: /usr/home/mgorny/llvm-project/_build/bin/lldb
args: ['/usr/home/mgorny/llvm-project/_build/bin/lldb', '--no-lldbinit',
'--no-use-colors', '-O', 'settings clear -all', '-O', 'settings set
symbols.enable-external-lookup false', '-O', 'settings set target.inherit-tcc
true', '-O', 'settings set target.auto-apply-fixits false', '-O', 'settings set
plugin.process.gdb-remote.packet-timeout 60', '-O', 'settings set
symbols.clang-modules-cache-path
"/home/mgorny/llvm-project/_build/lldb-test-build.noindex/module-cache-lldb/lldb-api"',
'-O', 'settings set use-color false', '-O', 'setting set
target.prefer-dynamic-value no-dynamic-values']
buffer (last 100 chars): b' \x1b[1G 2: \r\x1b[5C^[[A\x08
\x084\r\n\r\n\x07\x1b[1G\x1b[1G\x1b[J 2: \r\n 3: \x1b[1G 3:
\r\x1b[5C\x1b[1A\x1b[6G\r\n(int) $0 = 123\r\n(lldb) '
before (last 100 chars): b' \x1b[1G 2: \r\x1b[5C^[[A\x08
\x084\r\n\r\n\x07\x1b[1G\x1b[1G\x1b[J 2: \r\n 3: \x1b[1G 3:
\r\x1b[5C\x1b[1A\x1b[6G\r\n(int) $0 = 123\r\n(lldb) '
after: <class 'pexpect.exceptions.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 1331
child_fd: 6
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
0: b'(int) $0 = 124'
Config=x86_64-/home/mgorny/llvm-project/_build/bin/clang
----------------------------------------------------------------------
Ran 2 tests in 61.441s
RESULT: FAILED (0 passes, 0 failures, 2 errors, 0 skipped, 0 expected failures,
0 unexpected successes)
--
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/20201127/2f530db3/attachment-0001.html>
More information about the llvm-bugs
mailing list