[Bug 14437] New: Evaluating expressions that contain function calls is broken on Linux

http://llvm.org/bugs/show_bug.cgi?id=14437

             Bug #: 14437
           Summary: Evaluating expressions that contain function calls is
                    broken on Linux
           Product: lldb
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-dev@cs.uiuc.edu
        ReportedBy: daniel.malea@intel.com
    Classification: Unclassified

Attempting to evaluate an expression that contains a function call is broken on
Linux.

Sometimes, the expression is evaluated but the result is clearly incorrect:
(lldb) expression -- (int)strlen("hello world")
(int) $5 = -764888112

To reproduce the above, run: python dotest.py -i -v lang/c/strings

Sometimes, the expression command itself returns an error:
(lldb) print str.c_str()

To reproduce the above, run: python dotest.py -i -v
expression_command/call-function

Ashok Thirumurthi changed bug 14437

labath@google.com changed bug 14437

What | Removed | Added |

Comment # 4 on bug 14437 from labath@google.com

This bug has been fixed since it was first filed.