! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfprint4-manager segmentation fault
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Xfprint4
Component:
General

Comments

Description Juergen Daubert 2006-11-06 15:26:15 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061028 Firefox/2.0
Build Identifier: 

xfprint4-manager segfaults, though printing in general works.
gdb backtrace attached.


Reproducible: Always
Comment 1 Juergen Daubert 2006-11-06 15:31:46 CET
Created attachment 856 
gdb backtrace
Comment 2 Jasper Huijsmans editbugs 2006-12-09 10:45:51 CET
I think the patch below should fix the crash. I have committed this to SVN with revision 24070.

Index: libxfprint/printer-list-window.c
===================================================================
--- libxfprint/printer-list-window.c    (revision 24068)
+++ libxfprint/printer-list-window.c    (working copy)
@@ -347,7 +347,8 @@
     if (strcmp (default_printer, printer->name) == 0)
       gtk_tree_selection_select_iter (selection, &iter);
 
-    g_object_unref (G_OBJECT (icon));
+    if (icon)
+      g_object_unref (G_OBJECT (icon));
 
     printer_el = g_list_next (printer_el);
   }
Comment 3 Juergen Daubert 2006-12-09 17:11:50 CET
Yep, confirmed. The patch fixed the crash. Thanks !

Bug #2523

Reported by:
Juergen Daubert
Reported on: 2006-11-06
Last modified on: 2009-07-14

People

Assignee:
Jean-François Wauthy
CC List:
0 users

Version

Attachments

gdb backtrace (1.45 KB, text/plain)
2006-11-06 15:31 CET , Juergen Daubert
no flags

Additional information