[Bug 36490] New: Segmentation fault when accessing any Python script object

Bug ID 36490
Summary Segmentation fault when accessing any Python script object
Product lldb
Version 3.6
Hardware Other
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter evgeny@loop54.com
CC llvm-bugs@lists.llvm.org

Running on Ubuntu 16.04 x64
lldb version 3.6.2 ( revision )

root@linuxtest24:~# lldb-3.6
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> print lldb.debugger
>>> Segmentation fault (core dumped)

The same happens when I try to access other objects like lldb.target or
lldb.process.

labath@google.com changed bug 36490

What Removed Added
CC labath@google.com
Resolution WONTFIX
Status NEW RESOLVED

Comment # 3 on bug 36490 from labath@google.com

3.6 is ancient. There isn't anything we could do about your crash even if we
found the cause (also, 3.6 had plenty of other issues as well).

I'd recommend trying a newer version of the debugger, 3.8 at the very least.

Evgeny Morozov changed bug 36490

What Removed Added
Resolution WONTFIX
Status RESOLVED REOPENED

Comment # 5 on bug 36490 from Evgeny Morozov

OK, it turns out there is a version of libsosplugin.so that works with later
LLDB versions. I still get a Segmentation fault in 5.0 (but not 3.9 or 4.0):

$ lldb-5.0
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> lldb
>>> Segmentation fault (core dumped)

Sometimes it works the first time, but crashes the second time:

(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> lldb
>>> <module 'lldb' from '/usr/lib/python2.7/dist-packages/lldb/__init__.py'>

>>> lldb
Segmentation fault (core dumped)