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 17807 - Test test_with_dwarf (TestCallStdStringFunction.ExprCommandCallFunctionTestCase) fails on FreeBSD Buildbot
Summary: Test test_with_dwarf (TestCallStdStringFunction.ExprCommandCallFunctionTestCa...
Status: NEW
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC All
: P normal
Assignee: emaste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 18:53 PST by emaste
Modified: 2020-11-04 11:39 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
Log file from arm-linux buildbot (5.56 KB, text/x-log)
2016-06-02 03:37 PDT, Omair Javaid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emaste 2013-11-04 18:53:37 PST
This doesn't fail when I run the test locally, but consistently does on the buildbot.

Creating this PR to keep track of it.
Might be a duplicate of PR llvm.org/pr14437 on Linux, which claims to be a GCC issue.


Buildbot run:

http://llvm-amd64.freebsd.your.org:8010/builders/lldb-amd64-freebsd/builds/1544

Error log:

http://llvm-amd64.freebsd.your.org:8010/builders/lldb-amd64-freebsd/builds/1544/steps/check-lldb.1/logs/stdio

Error:

2: test_with_dwarf (TestCallStdStringFunction.ExprCommandCallFunctionTestCase)
   Test calling std::String member function. ... FAILURE

======================================================================
FAIL: test_with_dwarf
(TestCallStdStringFunction.ExprCommandCallFunctionTestCase)
   Test calling std::String member function.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/lldbtest.py",
line 370, in wrapper
    return func(self, *args, **kwargs)
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/lldbtest.py",
line 401, in expectedFailureGcc_easy_wrapper
    bugnumber(*args, **kwargs)
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/lldbtest.py",
line 473, in expectedFailureIcc_easy_wrapper
    bugnumber(*args, **kwargs)
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/expression_command/call-function/TestCallStdStringFunction.py",
line 34, in test_with_dwarf
    self.call_function()
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/expression_command/call-function/TestCallStdStringFunction.py",
line 55, in call_function
    substrs = ['Hello world'])
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/lldbtest.py",
line 1892, in expect
    self.runCmd(str, msg=msg, trace = (True if trace else False),
check = not error, inHistory=inHistory)
  File "/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/lldbtest.py",
line 1818, in runCmd
    msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Command 'print str.c_str()'
returns successfully
Config=amd64-clang
----------------------------------------------------------------------
Ran 2 tests in 5.228s

FAILED (failures=1, skipped=1)
Comment 1 emaste 2014-02-11 08:22:32 PST
Still failing on the buildbot
Comment 2 emaste 2015-09-14 10:18:09 PDT
This test is still passing for me locally and the buildbot has been retired. Need to investigate again once the new buildbot is in place.
Comment 3 John Wolfe 2015-09-19 22:53:00 PDT
This test is failing 100% of the time ( -r247709 & r248089 ) similar to the original problem report.

FAIL: test_with_dwarf (TestCallStdStringFunction.ExprCommandCallFunctionTestCase)
   Test calling std::String member function.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/lldbtest.py", line 551, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/lldbtest.py", line 615, in wrapper
    func(*args, **kwargs)
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/lldbtest.py", line 615, in wrapper
    func(*args, **kwargs)
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/expression_command/call-function/TestCallStdStringFunction.py", line 35, in test_with_dwarf
    self.call_function()
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/expression_command/call-function/TestCallStdStringFunction.py", line 52, in call_function
    substrs = ['Hello world'])
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/lldbtest.py", line 2616, in expect
    self.runCmd(str, msg=msg, trace = (True if trace else False), check = not error, inHistory=inHistory)
  File "/usr/home/jlw/LLDB/llvm-150919.wrk/tools/lldb/test/lldbtest.py", line 2542, in runCmd
    msg if msg else CMD_MSG(cmd))
AssertionError: False is not True : Command 'print str.c_str()' returns successfully
Config=x86_64-clang
Comment 4 emaste 2015-09-23 13:29:57 PDT
Interesting -- this test passes for me, on FreeBSD 10.2
Comment 5 emaste 2016-02-19 11:47:37 PST
This passes for me on FreeBSD 10 and on the WIP FreeBSD 11 buildbot. John, are you able to run this test with verbose logging on?
Comment 6 Omair Javaid 2016-06-02 03:37:08 PDT
Created attachment 16453 [details]
Log file from arm-linux buildbot
Comment 7 emaste 2017-08-10 10:02:05 PDT
FreeBSD decorator removed in r310626
Comment 8 emaste 2018-02-22 18:51:42 PST
FreeBSD xfail removed from the lit version of this test in r325856
Comment 9 emaste 2020-11-04 11:33:19 PST
Unsure if this test is still present
Comment 10 emaste 2020-11-04 11:39:40 PST
Oops, typo in my commandline. This passes consistently when run locally as
$ bin/lldb-dotest -p TestCallStdStringFunction

Will check on the status once the buildbot is restored