LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 25172 - TestBatchMode is flaky on linux and FreeBSD
Summary: TestBatchMode is flaky on linux and FreeBSD
Status: NEW
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: LLDB commit list
URL:
Keywords:
: 22784 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-14 03:56 PDT by labath
Modified: 2019-07-19 15:19 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description labath 2015-10-14 03:56:02 PDT
The test (very rarely) fails on the linux buildbot. The reported error is:

File "/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/driver/batch_mode/TestBatchMode.py", line 81, in batch_mode
    self.expect_string("Got there on time and it did not crash.")
  File "/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/driver/batch_mode/TestBatchMode.py", line 37, in expect_string
    self.fail ("Got EOF waiting for '%s'"%(string))
AssertionError: Got EOF waiting for 'Got there on time and it did not crash.'
Comment 1 emaste 2015-11-24 12:32:16 PST
This test failed once for me on the (not-yet-connected-to-the-buildmaster) FreeBSD 11 builder as well:

======================================================================
FAIL: test_driver_batch_mode_dwo (TestBatchMode.DriverBatchModeTest)
   Test that the lldb driver's batch mode works correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 578, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2306, in dwo_test_method
    return attrvalue(self)
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 862, in wrapper
    func(*args, **kwargs)
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 781, in wrapper
    func(*args, **kwargs)
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 636, in wrapper
    func(*args, **kwargs)
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py", line 24, in test_driver_batch_mode
    self.batch_mode()
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py", line 58, in batch_mode
    self.expect_string ("continue")
  File "/usr/home/user/llvm/tools/lldb/packages/Python/lldbsuite/test/driver/batch_mode/TestBatchMode.py", line 40, in expect_string
    self.fail ("Timed out waiting for '%s'"%(string))
AssertionError: Timed out waiting for 'continue'
Config=x86_64-/usr/bin/cc
----------------------------------------------------------------------
Comment 2 emaste 2016-01-13 15:12:01 PST
Annotation removed in http://llvm.org/viewvc/llvm-project?rev=257656&view=rev
Comment 3 labath 2016-01-14 03:26:14 PST
(In reply to comment #2)
> Annotation removed in http://llvm.org/viewvc/llvm-project?rev=257656&view=rev

The annotation was removed from TestCommandScriptImmediateOutput, which is a new test an the annotation ended up there only due to copy-paste. TestBatchMode is still marked as flaky and it *is* flaky, see build e.g., 10321 <http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/10321/steps/test2/logs/stdio>.

After looking at this again, I suspect this might be actually a duplicate of bug 25652 (at least the linux issue).
Comment 4 Jonas Devlieghere 2019-07-19 15:19:45 PDT
*** Bug 22784 has been marked as a duplicate of this bug. ***