After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 476299 - crash when launching gnome-cups-add-printer through gksu [only occurs with non-utf8 locale]
crash when launching gnome-cups-add-printer through gksu [only occurs with no...
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: window selector
2.20.x
Other Linux
: Normal critical
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 479889 480982 485799 485973 486273 486818 486824 487763 488613 489643 489687 489870 490433 490540 493191 494734 501981 508698 508699 508700 508701 508702 508703 508704 508705 533803 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-09-12 18:25 UTC by Frederic Crozat
Modified: 2008-05-20 20:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Frederic Crozat 2007-09-12 18:25:56 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

Thread 1 (Thread -1227393344 (LWP 11827))

  • #0 IA__g_markup_escape_text
    at gmarkup.c line 1910
  • #1 gtk_widget_set_property
    at gtkwidget.c line 2444
  • #2 IA__g_object_set_valist
    at gobject.c line 697
  • #3 IA__g_object_set
    at gobject.c line 1212
  • #4 IA__gtk_widget_set_tooltip_text
    at gtkwidget.c line 9354
  • #5 g_cclosure_marshal_VOID__ENUM
    at gmarshal.c line 334
  • #6 g_cclosure_marshal_VOID__ENUM
    at gmarshal.c line 334
  • #7 dispatch_event_foreach
    at sn-monitor.c line 494
  • #8 sn_list_foreach
    at sn-list.c line 157
  • #9 do_xmessage_event_foreach
    at sn-monitor.c line 587
  • #10 sn_list_foreach
    at sn-list.c line 157
  • #11 xmessage_func
    at sn-monitor.c line 900
  • #12 dispatch_message_foreach
    at sn-xmessages.c line 400
  • #13 sn_list_foreach
    at sn-list.c line 157
  • #14 sn_internal_xmessage_process_event
    at sn-xmessages.c line 452
  • #15 sn_display_process_event
    at sn-common.c line 180
  • #16 g_cclosure_marshal_VOID__ENUM
    at gmarshal.c line 334
  • #17 gdk_event_apply_filters
    at gdkevents-x11.c line 345
  • #18 gdk_event_translate
    at gdkevents-x11.c line 896
  • #19 _gdk_events_queue
    at gdkevents-x11.c line 2285
  • #20 gdk_event_dispatch
    at gdkevents-x11.c line 2345
  • #21 IA__g_main_context_dispatch
    at gmain.c line 2061
  • #22 g_main_context_iterate
    at gmain.c line 2694
  • #23 IA__g_main_loop_run
    at gmain.c line 2898
  • #24 IA__gtk_main
    at gtkmain.c line 1144
  • #25 main
    at main.c line 98

Comment 1 Sebastien Bacher 2007-10-02 11:06:16 UTC
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"
  • #1 gtk_widget_set_property
    at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwidget.c line 2444
  • #2 IA__g_object_set_valist
    at /build/buildd/glib2.0-2.14.1/gobject/gobject.c line 697
  • #3 IA__g_object_set
    at /build/buildd/glib2.0-2.14.1/gobject/gobject.c line 1212
  • #4 IA__gtk_widget_set_tooltip_text
    at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwidget.c line 9355
  • #5 wnck_task_create_widgets
    at tasklist.c line 3773
  • #6 wnck_tasklist_sn_event
    at tasklist.c line 4192
  • #7 dispatch_event_foreach
    at sn-monitor.c line 494
  • #8 sn_list_foreach
    at sn-list.c line 157
  • #9 do_xmessage_event_foreach
    at sn-monitor.c line 587
  • #10 sn_list_foreach
    at sn-list.c line 157
  • #11 xmessage_func
    at sn-monitor.c line 900
  • #12 dispatch_message_foreach
    at sn-xmessages.c line 400
  • #13 sn_list_foreach
    at sn-list.c line 157
  • #14 sn_internal_xmessage_process_event
    at sn-xmessages.c line 452
  • #15 sn_display_process_event
    at sn-common.c line 180
  • #16 filter_func
    at xutils.c line 763
  • #17 gdk_event_apply_filters
    at /build/buildd/gtk+2.0-2.12.0/gdk/x11/gdkevents-x11.c line 345
  • #18 gdk_event_translate
    at /build/buildd/gtk+2.0-2.12.0/gdk/x11/gdkevents-x11.c line 896
  • #19 _gdk_events_queue
    at /build/buildd/gtk+2.0-2.12.0/gdk/x11/gdkevents-x11.c line 2285
  • #20 gdk_event_dispatch
    at /build/buildd/gtk+2.0-2.12.0/gdk/x11/gdkevents-x11.c line 2345
  • #21 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.14.1/glib/gmain.c line 2061
  • #22 g_main_context_iterate
    at /build/buildd/glib2.0-2.14.1/glib/gmain.c line 2694
  • #23 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.14.1/glib/gmain.c line 2898
  • #24 IA__gtk_main
    at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c line 1144
  • #25 main
    at main.c line 95

Comment 2 Susana 2007-10-08 19:44:39 UTC
*** Bug 480982 has been marked as a duplicate of this bug. ***
Comment 3 Susana 2007-10-08 21:00:21 UTC
*** Bug 479889 has been marked as a duplicate of this bug. ***
Comment 4 Susana 2007-10-08 21:07:19 UTC
Good traces and a few duplicates from the duplicates. Confirming.
Comment 5 Vincent Untz 2007-10-11 17:54:58 UTC
*** Bug 485799 has been marked as a duplicate of this bug. ***
Comment 6 Vincent Untz 2007-10-15 19:07:59 UTC
*** Bug 486824 has been marked as a duplicate of this bug. ***
Comment 7 Vincent Untz 2007-10-15 19:08:19 UTC
*** Bug 486818 has been marked as a duplicate of this bug. ***
Comment 8 Vincent Untz 2007-10-15 19:18:46 UTC
*** Bug 486273 has been marked as a duplicate of this bug. ***
Comment 9 Vincent Untz 2007-10-15 19:23:51 UTC
*** Bug 485973 has been marked as a duplicate of this bug. ***
Comment 10 Vincent Untz 2007-10-15 22:26:31 UTC
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.
Comment 11 Vincent Untz 2007-10-15 22:38:58 UTC
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.
Comment 12 André Klapper 2007-10-18 23:21:53 UTC
*** Bug 487763 has been marked as a duplicate of this bug. ***
Comment 13 André Klapper 2007-10-28 15:10:09 UTC
*** Bug 488613 has been marked as a duplicate of this bug. ***
Comment 14 André Klapper 2007-10-28 15:10:10 UTC
*** Bug 489870 has been marked as a duplicate of this bug. ***
Comment 15 André Klapper 2007-10-28 15:10:12 UTC
*** Bug 490433 has been marked as a duplicate of this bug. ***
Comment 16 André Klapper 2007-10-28 15:10:14 UTC
*** Bug 490540 has been marked as a duplicate of this bug. ***
Comment 17 palfrey 2007-11-08 18:03:23 UTC
*** Bug 494734 has been marked as a duplicate of this bug. ***
Comment 18 Susana 2007-11-10 10:43:35 UTC
*** Bug 493191 has been marked as a duplicate of this bug. ***
Comment 19 Vincent Untz 2007-11-13 09:15:22 UTC
*** Bug 489643 has been marked as a duplicate of this bug. ***
Comment 20 Vincent Untz 2007-11-13 09:15:39 UTC
*** Bug 489687 has been marked as a duplicate of this bug. ***
Comment 21 palfrey 2007-12-06 19:22:43 UTC
*** Bug 501981 has been marked as a duplicate of this bug. ***
Comment 22 Bruno Boaventura 2008-01-11 10:36:36 UTC
*** Bug 508698 has been marked as a duplicate of this bug. ***
Comment 23 Bruno Boaventura 2008-01-11 10:36:57 UTC
*** Bug 508699 has been marked as a duplicate of this bug. ***
Comment 24 Bruno Boaventura 2008-01-11 10:37:24 UTC
*** Bug 508700 has been marked as a duplicate of this bug. ***
Comment 25 Bruno Boaventura 2008-01-11 10:37:31 UTC
*** Bug 508701 has been marked as a duplicate of this bug. ***
Comment 26 Bruno Boaventura 2008-01-11 10:37:42 UTC
*** Bug 508702 has been marked as a duplicate of this bug. ***
Comment 27 Bruno Boaventura 2008-01-11 10:37:44 UTC
*** Bug 508703 has been marked as a duplicate of this bug. ***
Comment 28 Bruno Boaventura 2008-01-11 10:37:53 UTC
*** Bug 508704 has been marked as a duplicate of this bug. ***
Comment 29 Bruno Boaventura 2008-01-11 10:38:41 UTC
*** Bug 508705 has been marked as a duplicate of this bug. ***
Comment 30 Diego Escalante Urrelo (not reading bugmail) 2008-05-20 20:11:45 UTC
*** Bug 533803 has been marked as a duplicate of this bug. ***