Bug#448623: gnome programs hang when trying to show printer list and network printer is not reachable

Soeren Sonnenburg bugreports at nn7.de
Tue Oct 30 13:55:46 UTC 2007


Package: libgnomecups1.0-1
Version: 0.2.2-5
Severity: normal

given one has a network printer which is currently not reachable
although the ip address of that printer can be resolved (but ping
		printer just hangs). in that case opening evince/eog etc and
trying to print will make the printer dialog and the application hang
when clicking on the non-pingable but resolvable printer name. this is
especially bad as e.g. evince remembers the last used printer which will
immediately cause it to hang.

I used gdb to attach to evince when it hangs and obtained the following
backtrace. Here the printer name is 'moppel' running on the printhost
moppel.not.reachable .

It all works OK as soon as no name can be resolved for moppel.not.reachable

Thread 2 (Thread 0xb6782b90 (LWP 15057)):
#0  0xb7f15410 in __kernel_vsyscall ()
#1  0xb7127676 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0x08061eb8 in ev_render_thread (data=0x0) at /evince-2.20.1/./shell/ev-job-queue.c:255
#3  0xb73894ff in g_thread_create_proxy (data=0x8110d70) at /tmp/buildd/glib2.0-2.14.2/glib/gthread.c:635
#4  0xb712346b in start_thread () from /lib/i686/cmov/libpthread.so.0
#5  0xb707072e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb69e26c0 (LWP 15056)):
#0  0xb7f15410 in __kernel_vsyscall ()
#1  0xb712a498 in connect () from /lib/i686/cmov/libpthread.so.0
#2  0xb541c89c in httpAddrConnect (addrlist=0x850d800, sock=0x85a03f0) at http-addrlist.c:114
#3  0xb541b1c6 in httpReconnect (http=0x85a03f0) at http.c:1657
#4  0xb541b8c7 in httpConnectEncrypt (host=0x852aab0 "moppel.not.reachable", port=631, encryption=HTTP_ENCRYPT_IF_REQUESTED) at http.c:440
#5  0xb546e6dc in gtk_cups_request_new (connection=0x0, req_type=GTK_CUPS_GET, operation_id=0, data_io=0x852aa30, server=0x842a010 "moppel.not.reachable", resource=0x8429d48 "/printers/moppel.ppd")
    at /tmp/buildd/gtk+2.0-2.12.1/modules/printbackends/cups/gtkcupsutils.c:143
#6  0xb546cb3c in cups_printer_request_details (printer=0x847fa38) at /tmp/buildd/gtk+2.0-2.12.1/modules/printbackends/cups/gtkprintbackendcups.c:1382
#7  0xb7a3b59e in IA__gtk_printer_request_details (printer=0x847fa38) at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtkprinter.c:759
#8  0xb7a4273e in selected_printer_changed (selection=0x8436200, dialog=0x8558268) at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtkprintunixdialog.c:1276
#9  0xb73f795f in IA__g_cclosure_marshal_VOID__VOID (closure=0x85101b8, return_value=0x0, n_param_values=1, param_values=0xbf834da4, invocation_hint=0xbf834cac, marshal_data=0xb7a420b0)
    at /tmp/buildd/glib2.0-2.14.2/gobject/gmarshal.c:77
#10 0xb73ea619 in IA__g_closure_invoke (closure=0x85101b8, return_value=0x0, n_param_values=1, param_values=0xbf834da4, invocation_hint=0xbf834cac) at /tmp/buildd/glib2.0-2.14.2/gobject/gclosure.c:490
#11 0xb73fee0f in signal_emit_unlocked_R (node=0x8373c28, detail=0, instance=0x8436200, emission_return=0x0, instance_and_params=0xbf834da4) at /tmp/buildd/glib2.0-2.14.2/gobject/gsignal.c:2440
#12 0xb7400a5f in IA__g_signal_emit_valist (instance=0xbf8347d0, signal_id=242, detail=0, var_args=0xbf834fdc "\032v\236�اP\b\n") at /tmp/buildd/glib2.0-2.14.2/gobject/gsignal.c:2199
#13 0xb7400da9 in IA__g_signal_emit (instance=0x8436200, signal_id=242, detail=0) at /tmp/buildd/glib2.0-2.14.2/gobject/gsignal.c:2243
#14 0xb79dd7e9 in _gtk_tree_selection_internal_select_node (selection=0x8436200, node=0x845a220, tree=0x850a7d8, path=0x8463db0, mode=0, override_browse_mode=0)
    at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtktreeselection.c:1409
#15 0xb79de151 in IA__gtk_tree_selection_select_path (selection=0x8436200, path=0x8463db0) at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtktreeselection.c:742
#16 0xb79de205 in IA__gtk_tree_selection_select_iter (selection=0x8436200, iter=0xbf8350cc) at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtktreeselection.c:810
#17 0xb7a447dc in printer_added_cb (backend=0x84fae50, printer=0x847fa38, dialog=0x8558268) at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtkprintunixdialog.c:479
#18 0xb73f6e6a in IA__g_cclosure_marshal_VOID__OBJECT (closure=0x8509100, return_value=0x0, n_param_values=2, param_values=0xbf835414, invocation_hint=0xbf83531c, marshal_data=0xb7a44590)
    at /tmp/buildd/glib2.0-2.14.2/gobject/gmarshal.c:636
#19 0xb73ea619 in IA__g_closure_invoke (closure=0x8509100, return_value=0x0, n_param_values=2, param_values=0xbf835414, invocation_hint=0xbf83531c) at /tmp/buildd/glib2.0-2.14.2/gobject/gclosure.c:490
#20 0xb73fee0f in signal_emit_unlocked_R (node=0x8529d68, detail=0, instance=0x84fae50, emission_return=0x0, instance_and_params=0xbf835414) at /tmp/buildd/glib2.0-2.14.2/gobject/gsignal.c:2440
#21 0xb7400a5f in IA__g_signal_emit_valist (instance=0xbf8347d0, signal_id=309, detail=0, var_args=0xbf83565c "") at /tmp/buildd/glib2.0-2.14.2/gobject/gsignal.c:2199
#22 0xb7400d20 in IA__g_signal_emit_by_name (instance=0x84fae50, detailed_signal=0xb546ed5d "printer-added") at /tmp/buildd/glib2.0-2.14.2/gobject/gsignal.c:2267
#23 0xb546a04f in cups_request_printer_list_cb (cups_backend=0x84fae50, result=0x850fcc0, user_data=0x850fc88) at /tmp/buildd/gtk+2.0-2.12.1/modules/printbackends/cups/gtkprintbackendcups.c:1152
#24 0xb546978d in cups_dispatch_watch_dispatch (source=0x851e040, callback=0xb5469ba0 <cups_request_printer_list_cb>, user_data=0x850fc88)
    at /tmp/buildd/gtk+2.0-2.12.1/modules/printbackends/cups/gtkprintbackendcups.c:598
#25 0xb73661c6 in IA__g_main_context_dispatch (context=0x8104500) at /tmp/buildd/glib2.0-2.14.2/glib/gmain.c:2061
#26 0xb7369552 in g_main_context_iterate (context=0x8104500, block=1, dispatch=1, self=0x80e0280) at /tmp/buildd/glib2.0-2.14.2/glib/gmain.c:2694
#27 0xb7369937 in IA__g_main_loop_run (loop=0x810de18) at /tmp/buildd/glib2.0-2.14.2/glib/gmain.c:2898
#28 0xb78ee354 in IA__gtk_main () at /tmp/buildd/gtk+2.0-2.12.1/gtk/gtkmain.c:1146
#29 0x0808a860 in main (argc=2, argv=0x850d804) at /evince-2.20.1/./shell/main.c:383
#30 0xb6fb3050 in __libc_start_main () from /lib/i686/cmov/libc.so.6
#31 0x0805e781 in _start ()
#0  0xb7f15410 in __kernel_vsyscall ()




-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-sonne (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgnomecups1.0-1 depends on:
ii  libc6                         2.6.1-6    GNU C Library: Shared libraries
ii  libcupsys2                    1.3.2-1    Common UNIX Printing System(tm) - 
ii  libglib2.0-0                  2.14.2-1   The GLib library of C routines
ii  libgnutls13                   2.0.1-1    the GNU TLS library - runtime libr

Versions of packages libgnomecups1.0-1 recommends:
ii  cupsys                        1.3.2-1    Common UNIX Printing System(tm) - 

-- no debconf information






More information about the pkg-gnome-maintainers mailing list