[lldb-dev] [Bug 35037] New: lldb provides imprecise informations to reproduce problems

via lldb-dev lldb-dev at lists.llvm.org
Mon Oct 23 09:38:05 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=35037

            Bug ID: 35037
           Summary: lldb provides imprecise informations to reproduce
                    problems
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: davide at freebsd.org
                CC: aprantl at apple.com, lhames at gmail.com,
                    llvm-bugs at lists.llvm.org, rnk at google.com,
                    zturner at google.com

I haven't (yet) looked into how hard this is to fix, but the current state is
definitely not ideal.

A failure will look like:

AssertionError: False is not True : Command 'expression auto $add = [](int a,
int b) { return a + b; }' returns successfully
Config=x86_64-/usr/bin/ccache
Session info generated @ Mon Oct 23 09:28:31 2017
To rerun this test, issue the following command from the 'test' directory:

./dotest.py -A x86_64 -C /usr/bin/ccache -v -t -N dsym lang/cpp/lambdas

If you copy-paste the command you get  an error, because of:
dotest.py: error: unrecognized arguments: -N

Removing the `-N` bit from the invocation is not really enough, because by
default dotest.py picks the first `lldb` in $PATH, which is not necessarily the
correct one (it's actually, almost never the correct one in development).

$ python dotest.py -A x86_64 -C /usr/bin/ccache -v -t lang/cpp/lambdas
['dotest.py', '-A', 'x86_64', '-C', '/usr/bin/ccache', '-v', '-t',
'lang/cpp/lambdas']
LLDB library dir: /usr/bin
LLDB import library dir: /usr/bin
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named lldb.embedded_interpreter
lldb version 3.8.0 ( revision )


Last but not least, I'm currrently bulding with an in-tree clang, so I'm
expecting tests to be run with that very clang. Either they're not (in which
case this might be taken in consideration for fix) or the cmdline to reproduce
lacks some relevant informations (again).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20171023/7090d654/attachment.html>


More information about the lldb-dev mailing list