GNOME Bugzilla – Bug 133749
Infinite loop in pango_attr_iterator_next
Last modified: 2004-12-22 21:47:04 UTC
I think pango_attr_iterator_next is going into an infinite loop. Reverting the change done by Thu Feb 5 16:30:46 2004 Owen Taylor <otaylor@redhat.com> Fix problem with empty markup tags (#128102, Christian Persch) * pango/pango-context.c (itemize_state_process_run): Assert that the run is non-empty. * pango/pango-attributes.c (pango_attr_list_change): Just ignore empty attributes. * pango/pango-attributes.c (pango_attr_iterator_next): Skip empty attributes. seems to fix it.
How are you triggering this infinite loop?
Running gdm triggered it. If you can tell me what to look for, I can do that attaching a gdb to it...
Here's a trace from gst-editor that is doing it too: 0x40c227eb in pango_attr_iterator_next (iterator=0x82cc738) at pango-attributes.c:1280 1280 if (((PangoAttribute *)iterator->next_attribute->data)->end_index > iterator->start_index) (gdb) bt
+ Trace 43933
The arguments gst-editor is using for gnome_canvas_item_new are: 224 item->title = gnome_canvas_item_new(GNOME_CANVAS_GROUP (citem), 225 gnome_canvas_text_get_type(), 226 "font", "Sans", 227 "fill-color", "black", 228 NULL);
I'm seeing this too. Doing 'exec jhbuild run gnome-session' in my .Xclients and logging in through GDM.
Could you test the change I just checked in? Mon Feb 9 09:52:24 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_next): Fix infinite loop introduced with last change. (#133749, reported by Mariano Suárez-Alvarez)