public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18393] New: GDB 7.9 segfaults on: python dir(gdb.current_progspace())
@ 2015-05-09 21:33 zachriggle+gdb at gmail dot com
2015-05-09 21:43 ` [Bug gdb/18393] " zachriggle+gdb at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zachriggle+gdb at gmail dot com @ 2015-05-09 21:33 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18393
Bug ID: 18393
Summary: GDB 7.9 segfaults on: python
dir(gdb.current_progspace())
Product: gdb
Version: 7.9
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: zachriggle+gdb at gmail dot com
Target Milestone: ---
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) file /bin/bash
Reading symbols from /bin/bash...(no debugging symbols found)...done.
(gdb) set stop-on-solib-events 1
(gdb) r
Starting program: /bin/bash
Stopped due to shared library event (no libraries added or removed)
(gdb) python print(dir(gdb.current_progspace()))
[1] 2090 segmentation fault /usr/bin/gdb
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/18393] GDB 7.9 segfaults on: python dir(gdb.current_progspace())
2015-05-09 21:33 [Bug gdb/18393] New: GDB 7.9 segfaults on: python dir(gdb.current_progspace()) zachriggle+gdb at gmail dot com
@ 2015-05-09 21:43 ` zachriggle+gdb at gmail dot com
2015-09-27 22:51 ` [Bug python/18393] " vovcat at gmail dot com
2015-09-27 22:55 ` vovcat at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: zachriggle+gdb at gmail dot com @ 2015-05-09 21:43 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18393
--- Comment #1 from Zach Riggle <zachriggle+gdb at gmail dot com> ---
Actually, most of that is unnecessary...
$ gdb --eval-command="python print(dir(gdb.current_progspace()))"
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
...
Segmentation fault
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/18393] GDB 7.9 segfaults on: python dir(gdb.current_progspace())
2015-05-09 21:33 [Bug gdb/18393] New: GDB 7.9 segfaults on: python dir(gdb.current_progspace()) zachriggle+gdb at gmail dot com
2015-05-09 21:43 ` [Bug gdb/18393] " zachriggle+gdb at gmail dot com
@ 2015-09-27 22:51 ` vovcat at gmail dot com
2015-09-27 22:55 ` vovcat at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: vovcat at gmail dot com @ 2015-09-27 22:51 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/18393] GDB 7.9 segfaults on: python dir(gdb.current_progspace())
2015-05-09 21:33 [Bug gdb/18393] New: GDB 7.9 segfaults on: python dir(gdb.current_progspace()) zachriggle+gdb at gmail dot com
2015-05-09 21:43 ` [Bug gdb/18393] " zachriggle+gdb at gmail dot com
2015-09-27 22:51 ` [Bug python/18393] " vovcat at gmail dot com
@ 2015-09-27 22:55 ` vovcat at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: vovcat at gmail dot com @ 2015-09-27 22:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18393
vovcat at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kevin.pouget at gmail dot com
--- Comment #3 from vovcat at gmail dot com ---
*** Bug 18734 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-27 22:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-09 21:33 [Bug gdb/18393] New: GDB 7.9 segfaults on: python dir(gdb.current_progspace()) zachriggle+gdb at gmail dot com
2015-05-09 21:43 ` [Bug gdb/18393] " zachriggle+gdb at gmail dot com
2015-09-27 22:51 ` [Bug python/18393] " vovcat at gmail dot com
2015-09-27 22:55 ` vovcat at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).