GNOME Bugzilla – Bug 476299
crash when launching gnome-cups-add-printer through gksu [only occurs with non-utf8 locale]
Last modified: 2008-05-20 20:11:45 UTC
wncklist is crashing when gnome-cups-add-printer is started through gksu : rogram received signal SIGSEGV, Segmentation fault. [Switching to Thread -1227393344 (LWP 11827)] IA__g_markup_escape_text (text=0x84c0000 <Address 0x84c0000 out of bounds>, length=-1) at gmarkup.c:1910 1910 next = g_utf8_next_char (p); (gdb) thread apply all bt
+ Trace 162426
Thread 1 (Thread -1227393344 (LWP 11827))
There is a similar crash on https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/148012 "#0 0xb76a24a0 in IA__g_markup_escape_text (text=0x8709000 <Address 0x8709000 out of bounds>, length=-1) at /build/buildd/glib2.0-2.14.1/glib/gmarkup.c:1913 str = (GString *) 0x86e1060 __PRETTY_FUNCTION__ = "IA__g_markup_escape_text"
+ Trace 167092
*** Bug 480982 has been marked as a duplicate of this bug. ***
*** Bug 479889 has been marked as a duplicate of this bug. ***
Good traces and a few duplicates from the duplicates. Confirming.
*** Bug 485799 has been marked as a duplicate of this bug. ***
*** Bug 486824 has been marked as a duplicate of this bug. ***
*** Bug 486818 has been marked as a duplicate of this bug. ***
*** Bug 486273 has been marked as a duplicate of this bug. ***
*** Bug 485973 has been marked as a duplicate of this bug. ***
Got the bug. Actually, there are three bugs: + libgksu calls sn_launcher_context_set_description (context->sn_context, _("Granting Rights")); However, it doesn't make sure the string is UTF-8. + libsn should not accept this string in sn_launcher_context_set_description(). Also, in xmessage_func(), libsn should make sure the description (and all other elements) is UTF-8. + libwnck assumes that libsn gives valid UTF-8 strings. Fred, Sebastien: can you report the libgksu bug? I can't open a bug there without creating an account, it seems. I'll report the libsn bug, and commit a fix for libwnck.
Oh, I was wrong about libsn: there's no bug there. We just weren't telling it to use the glib utf-8 validator. Fixed now.
*** Bug 487763 has been marked as a duplicate of this bug. ***
*** Bug 488613 has been marked as a duplicate of this bug. ***
*** Bug 489870 has been marked as a duplicate of this bug. ***
*** Bug 490433 has been marked as a duplicate of this bug. ***
*** Bug 490540 has been marked as a duplicate of this bug. ***
*** Bug 494734 has been marked as a duplicate of this bug. ***
*** Bug 493191 has been marked as a duplicate of this bug. ***
*** Bug 489643 has been marked as a duplicate of this bug. ***
*** Bug 489687 has been marked as a duplicate of this bug. ***
*** Bug 501981 has been marked as a duplicate of this bug. ***
*** Bug 508698 has been marked as a duplicate of this bug. ***
*** Bug 508699 has been marked as a duplicate of this bug. ***
*** Bug 508700 has been marked as a duplicate of this bug. ***
*** Bug 508701 has been marked as a duplicate of this bug. ***
*** Bug 508702 has been marked as a duplicate of this bug. ***
*** Bug 508703 has been marked as a duplicate of this bug. ***
*** Bug 508704 has been marked as a duplicate of this bug. ***
*** Bug 508705 has been marked as a duplicate of this bug. ***
*** Bug 533803 has been marked as a duplicate of this bug. ***