[lldb-dev] LLDB crashes on "frame variable"

Enrico Granata egranata at apple.com
Wed May 8 10:22:59 PDT 2013


This looks like an issue with your “custom” (i.e. non OS-provided) version of Python
Does this work if you redirect to the system-wide Python.framework?
Most probably some of your variables require a Python data formatter, and this is causing the script interpreter to start, and that in turn causes this issue
A workaround is to type

(lldb) type category disable *

but this will disable all data formatters, and might not be what you want given that you are extensively using the STL

My first bet would be to try the same thing with the Python built into OSX and then take it from there

Enrico Granata
✉ egranata@.com
✆ 27683

On May 8, 2013, at 9:18 AM, Richard Catlin <richard.m.catlin at gmail.com> wrote:

> I just upgraded to Mountain Lion.  I am getting this error when I try to debug using "frame variable".  I use brew to install python.  Let me know if you need more information.  This was working fine before the upgrade.
> 
> Thank you.
> Richard Catlin
> 
> SDGL10fd4f1cb:mybuilddirdebug2 rcatlin1$ lldb bin/TPL
> Current executable set to 'bin/TPL' (x86_64).
> (lldb) breakpoint set --line 1877
> Breakpoint 1: where = TPL`main + 2497 at tpl.cpp:1877, address = 0x000000010000ab11
> (lldb) process launch 
> Process 66661 launched: '/Users/rcatlin1/lldb/mybuilddirdebug2/bin/TPL' (x86_64)
> Process 66661 stopped
> * thread #1: tid = 0x1c03, 0x000000010000ab11 TPL`main + 2497 at tpl.cpp:1877, stop reason = breakpoint 1.1
>     frame #0: 0x000000010000ab11 TPL`main + 2497 at tpl.cpp:1877
>    1874
>    1875   // Call block_dep function in libBLOCKDEP
>    1876   block_dep bd;
> -> 1877   std::list<std::string> order2 = bd.execute(map1, edges);
>    1878   std::reverse(order2.begin(), order2.end());
>    1879   std::list<std::string> order;
>    1880   for(std::list<std::string>::iterator iter(order2.begin()); iter != order2.end(); ++iter) {
> (lldb) frame variable 
> Traceback (most recent call last):
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 563, in <module>
>     main()
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 545, in main
>     known_paths = addusersitepackages(known_paths)
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 278, in addusersitepackages
>     user_site = getusersitepackages()
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 253, in getusersitepackages
>     user_base = getuserbase() # this will also set USER_BASE
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 243, in getuserbase
>     USER_BASE = get_config_var('userbase')
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 472, in get_config_var
>     return get_config_vars().get(name)
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 405, in get_config_vars
>     import re
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 105, in <module>
>     import sre_compile
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py", line 14, in <module>
>     import sre_parse
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py", line 17, in <module>
>     from sre_constants import *
>   File "/usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py", line 18, in <module>
>     from _sre import MAXREPEAT
> ImportError: cannot import name MAXREPEAT
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130508/8795ded8/attachment.html>


More information about the lldb-dev mailing list