Python lldb module hangs

Originator:and.damore
Number:rdar://19267056 Date Originated:2014-12-16
Status:Open Resolved:
Product:Developer Tools Product Version:6.1
Classification: Reproducible:always
 
Summary:
Python lldb module hangs  process hangs after executing commands in lldb module.

Steps to Reproduce:
Execute the attached example python script with system's builtin python interpreter.

Expected Results:
The process should complete and exit.

Actual Results:
The process prints out the text line in success if branch but then keeps running with 100% of cpu time without returning the prompt.

Version:
OS X 6.1 on OS X 10.10.1

Notes:


Configuration:
The system is a MacBook Pro 13" early 2011.

Attachments:
'example.py' was successfully uploaded.


*** START OF PASTE - example.py
#!/usr/bin/python
import sys
sys.path.append('/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python')
import lldb

result = lldb.SBCommandReturnObject()
interpreter = lldb.SBDebugger.Create().GetCommandInterpreter()
interpreter.HandleCommand("expr 1", result)
if result.Succeeded():
    print('Success:', result.GetOutput())
else:
    print('Error:', result.GetError())
*** END OF PASTE

Comments

Apple Developer Relations15-Jan-2015 10:21 PM

We believe this issue has been addressed in Xcode 6.2.

This is a pre-release version of the complete Xcode developer toolset for Mac, iPhone, iPad, and Apple Watch. This release requires OS X Yosemite or OS X Mavericks.

Xcode 6.2 - Build 6C107a https://developer.apple.com/xcode/downloads/

Please let us know if that resolves the issue for you by updating your bug report.

By and.damore at Jan. 16, 2015, 10:45 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!