[lldb-dev] [Bug 22730] New: PythonAPI debugger.SetOutputFileHandle() causes crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 27 10:56:46 PST 2015


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

            Bug ID: 22730
           Summary: PythonAPI debugger.SetOutputFileHandle() causes crash
           Product: lldb
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: kevin.kirkup at cisco.com
    Classification: Unclassified

Created attachment 13961
  --> http://llvm.org/bugs/attachment.cgi?id=13961&action=edit
Python LLDB script

Using a Python script in LLDB to redirect the debugger output to a file causes
lldb to crash.

Steps to Reproduce:
===============
1) Start lldb with an executable
2) Load the attached python script
lldb) command script import ~/Desktop/po.py
3) Create a breakpoint somewhere interesting
4) Run the executable
5) At the breakpoint, write some frame data using the Python script
lldb) print_to_file fr v param.blah
6) Re-run the previous command or dump another frame variable
lldb) print_to_file fr v param.blah
7) Core Dump - "segmentation fault (core dump) lldb <executable path>"

-- 
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/20150227/aecfe02f/attachment.html>


More information about the lldb-dev mailing list