[lldb-dev] [Bug 21550] New: lldb reports values for null pointers on FreeBSD -- test_expr_null (TestAnonymous.AnonymousTestCase)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 12 12:51:36 PST 2014


            Bug ID: 21550
           Summary: lldb reports values for null pointers on FreeBSD --
                    test_expr_null (TestAnonymous.AnonymousTestCase)
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: emaste at freebsd.org
    Classification: Unclassified

This test started failing:

FAIL: test_expr_null (TestAnonymous.AnonymousTestCase)
Traceback (most recent call last):
  File "/tank/emaste/src/llvm/tools/lldb/test/lldbtest.py", line 382, in
    return func(self, *args, **kwargs)
"/tank/emaste/src/llvm/tools/lldb/test/lang/c/anonymous/TestAnonymous.py", line
71, in test_expr_null
"/tank/emaste/src/llvm/tools/lldb/test/lang/c/anonymous/TestAnonymous.py", line
152, in expr_null
    self.expect("expression *(type_z *)pz", error = True)
  File "/tank/emaste/src/llvm/tools/lldb/test/lldbtest.py", line 1849, in
    "Command '" + str + "' is expected to fail!")
AssertionError: True is not False : Command 'expression *(type_z *)pz' is
expected to fail!

Reproducing manually:

(lldb) expression pz
(type_z *) $1 = 0x0000000000000000
(lldb) expression *pz
(type_z) $2 = {
  y = (dummy = 0)
(lldb) expression *(int *)0
(int) $3 = 0

The test has the comment # This should fail because pz is 0, but it succeeds on

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/20141112/733efed2/attachment.html>

More information about the lldb-dev mailing list