This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/18393] GDB 7.9 segfaults on: python dir(gdb.current_progspace())


https://sourceware.org/bugzilla/show_bug.cgi?id=18393

vovcat at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vovcat at gmail dot com
          Component|gdb                         |python
            Version|7.9                         |7.10

--- Comment #2 from vovcat at gmail dot com ---
$ gdb -ex 'python dir(gdb.objfiles()[0])' /bin/ls
GNU gdb (Debian 7.10-1) 7.10
[...]
Reading symbols from /bin/ls...(no debugging symbols found)...done.
Segmentation fault (core dumped)

$ gdb /usr/bin/gdb /var/tmp/1001.gdb.11.10618
[...]
Reading symbols from /usr/bin/gdb...Reading symbols from
/usr/lib/debug/.build-id/c6/f43bbad2fe64d3ce948335d7ccf97cee9f8d93.debug...done.
done.
[New LWP 10618]
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Core was generated by `gdb -ex python dir(gdb.objfiles()[0]) /bin/ls'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  gdb_py_generic_dict (self=0xb6b5bfc0,
    closure=0x861df60 <objfile_object_type>)
    at /build/gdb-ywwWgT/gdb-7.10/gdb/python/py-utils.c:429
429     /build/gdb-ywwWgT/gdb-7.10/gdb/python/py-utils.c: No such file or
directory.
(gdb) bt 
#0  gdb_py_generic_dict (self=0xb6b5bfc0, 
    closure=0x861df60 <objfile_object_type>)
    at /build/gdb-ywwWgT/gdb-7.10/gdb/python/py-utils.c:429
#1  0xb7452bab in ?? () from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#2  0xb72b13e9 in _PyObject_GenericGetAttrWithDict ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#3  0xb72b162e in PyObject_GenericGetAttr ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#4  0xb72a3a20 in PyObject_GetAttr ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#5  0xb72a3bcc in _PyObject_GetAttrId ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#6  0xb72bf153 in ?? () from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#7  0xb72c767f in PyCFunction_Call ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#8  0xb73d20e3 in PyObject_Call ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#9  0xb741c79d in PyObject_CallFunctionObjArgs ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
#10 0xb72b0f85 in PyObject_Dir ()
   from /usr/lib/i386-linux-gnu/libpython3.4m.so.1.0
[...]

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]