Python Exception <class 'TypeError'> iter() returned non-iterator of type '_iterator'
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | GLib |
Fix Released
|
Medium
|
||
| | gdb (Ubuntu) |
Undecided
|
Unassigned | ||
| | glib2.0 (Ubuntu) |
Low
|
Unassigned | ||
Bug Description
I tried to gdb a gnome-shell segfault:
(gdb) bt
#0 0x00007f8cad51f638 in g_slice_alloc (magazine_
#1 0x00007f8cad51f638 in g_slice_alloc (tmem=<optimized out>, ix=1) at /build/
#2 0x00007f8cad51f638 in g_slice_alloc (mem_size=
Python Exception <class 'TypeError'> iter() returned non-iterator of type '_iterator':
This looks like a bug in a gdb pretty-printer that's shipped with Ubuntu.
| Marius Gedminas (mgedmin) wrote : | #1 |
| Marius Gedminas (mgedmin) wrote : | #2 |
gdb in Ubuntu links against libpython3.4.
The Python scripts in /usr/share/
| Changed in gdb (Ubuntu): | |
| status: | New → Invalid |
| Marius Gedminas (mgedmin) wrote : | #3 |
Somewhat-related upstream bug: https:/
| Marius Gedminas (mgedmin) wrote : | #4 |
Upstream bug with a patch: https:/
| Iain Lane (laney) wrote : | #5 |
Cheers - I think it'd be good to get this naturally via upstream. Do you agree? When the patch is acked, you can ask to have it put into the stable branch too & then we'll get it in vivid.
| Changed in glib2.0 (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Low |
| Changed in glib: | |
| importance: | Unknown → Medium |
| status: | Unknown → Confirmed |
| Changed in glib: | |
| status: | Confirmed → Fix Released |
| Changed in glib2.0 (Ubuntu): | |
| status: | Triaged → Fix Released |


The command to list Python scripts that have been autoloaded is:
(gdb) info auto-load python-scripts
I'm guessing /usr/share/ gdb/auto- load/lib/ x86_64- linux-gnu/ libglib- 2.0.so. 0.4400. 0-gdb.py is the one that causes my problem. glib-2. 0/gdb to sys.path and imports stuff from it.
It's a small script that adds /usr/share/
/usr/share/ glib-2. 0/gdb is shipped in libglib2.0-0-dbg.