Bug#274333: libgnomeprint 2.8.0 breaks gpdf

Loïc Minier Loïc Minier , 274333@bugs.debian.org
Wed, 6 Oct 2004 17:05:45 +0200


     Hi,

[ this is a followup for Debian bug #274333 ]

 in short: stopping nfs-common shoudl workaround the problem.


 I am experiencing gpdf freezes too, I tried tracing gpdf and the
 gnome-pdf-viewer bonobo server form gdb.  The second produced an
 interesting backtrace when interrupting gnome-pdf-viewer while gpdf was
 freezed:
    (gdb) bt
    #0  0x407217ac in recv () from /lib/tls/libpthread.so.0
    #1  0x411337eb in httpRead () from /usr/lib/libcups.so.2
    #2  0x41133515 in httpFlush () from /usr/lib/libcups.so.2
    #3  0x411404dd in cupsDoFileRequest () from /usr/lib/libcups.so.2
    #4  0x41130b46 in cupsSetDests () from /usr/lib/libcups.so.2
    #5  0x4112fef6 in cupsGetDests () from /usr/lib/libcups.so.2
    #6  0x411215f6 in gnome_cups_printer_get_info ()
       from /usr/lib/libgnomecups-1.0.so.1
    #7  0x41121705 in gnome_cups_printer_get_info ()
       from /usr/lib/libgnomecups-1.0.so.1
    #8  0x41121a69 in gnome_cups_printer_get_info ()
       from /usr/lib/libgnomecups-1.0.so.1
    #9  0x41120a89 in gnome_cups_init () from /usr/lib/libgnomecups-1.0.so.1
    #10 0x41102a12 in ?? ()
       from /usr/lib/libgnomeprint/2.8.0.1/modules/libgnomeprintcups.so
    #11 0x00000000 in ?? ()
    #12 0x00000001 in ?? ()
    #13 0x080757b8 in ?? ()
    #14 0x40e7e280 in ?? ()
    #15 0x408d86c8 in ?? () from /usr/lib/libgmodule-2.0.so.0
    #16 0x080757b8 in ?? ()
    #17 0x00000000 in ?? ()
    #18 0x408d86c8 in ?? () from /usr/lib/libgmodule-2.0.so.0
    #19 0x408d86e0 in ?? () from /usr/lib/libgmodule-2.0.so.0
    #20 0x40e7e280 in ?? ()
    #21 0x080757b8 in ?? ()
    #22 0x402c7188 in ?? () from /usr/lib/libgnomeprint-2-2.so.0
    #23 0x08453a18 in ?? ()
    #24 0x082c50e0 in ?? ()
    #25 0xbfffec28 in ?? ()
    #26 0x402aa1b6 in gpa_printer_get_type () from /usr/lib/libgnomeprint-2-2.so.0
    Previous frame identical to this frame (corrupt stack?)

 I had once a problem because I did not install the CUPS server (cupsd)
 in package cupsys.  The printer tray icon produced a message after a
 timeout.  This is now fixed in the printer tray icon, but installing
 cupsys sched light on my troubles:
    Unpacking cupsys (from .../cupsys_1.1.20final+rc1-8_i386.deb) ...
    Setting up cupsys (1.1.20final+rc1-8) ...
    Adding group `lpadmin' (109)...
    Done.
    Starting printing system service: cupsdcupsd: Child exited with status 98!
    invoke-rc.d: initscript cupsys, action "start" failed.


    bee# tail /var/log/cups/error_log 
    [...]
    E [06/Oct/2004:16:47:53 +0200] StartListening: Unable to bind socket for address 00000000:631 - Address already in use.
    bee# netstat -anp | grep 631
    tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN     2993/rpc.statd      

 Stopping nfs-common stopped rpc.statd, and I could start cupsd, and now
 gpdf runs fine.  Actually, cupsd doesn't need to be running, but it
 hangs when gnome-pdf-viewer or a lib it uses tries to talk to
 rpc.statd.

 I have no idea why rpc.statd uses 631, right now I suggest stopping NFS
 as a workaround.

     Regards,

-- 
Loïc Minier <lool@dooz.org>