[Pkg-xfce-devel] Bug#472066: #472066: xfprint4: xfprint4 segfaults when requested to print a file

rollingbits (aka Lucas) rollingbits at gmail.com
Fri Mar 21 21:24:54 UTC 2008


$ gdb xfprint4
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
(...)
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/xfprint4 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7419720 (LWP 22284)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7419720 (LWP 22284)]
0x08051002 in print_dialog_set_property (object=0x81db028, prop_id=1, value=0xbff80598, pspec=0x80ebc78) at print_dialog.c:409
409     print_dialog.c: No such file or directory.
        in print_dialog.c
(gdb) bt
#0  0x08051002 in print_dialog_set_property (object=0x81db028, prop_id=1, value=0xbff80598, pspec=0x80ebc78)
    at print_dialog.c:409
#1  0xb786c3b9 in ?? () from /usr/lib/libgobject-2.0.so.0
#2  0x081db028 in ?? ()
#3  0x00000001 in ?? ()
#4  0xbff80598 in ?? ()
#5  0x080ebc78 in ?? ()
#6  0xb7853248 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0x08084298 in ?? ()
#8  0xbff80538 in ?? ()
#9  0xb77d0523 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
#10 0xb786c9a8 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#11 0xb786d556 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#12 0xb786d660 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#13 0x0804f241 in print_dialog_new (ps=0x81dc7e0, input_file=0x818ac20 "/home/rollingbits/historico.ps") at print_dialog.c:662
#14 0x0804e2e1 in main (argc=1836017711, argv=0x6f722f65) at main.c:169
(gdb) stop
(gdb) quit
The program is running.  Exit anyway? (y or n) y

Using the version in the archive (rebuilt with nostrip) with a link
/usr/etc/printcap -> /etc/printcap, same thing happens:

$ gdb xfprint4
GNU gdb 6.7.1-debian
(...)
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/xfprint4 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7401720 (LWP 1465)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7401720 (LWP 1465)]
0x08051164 in print_dialog_set_property (object=0x81d7068, prop_id=1, value=0xbfbc1f58, pspec=0x80e6850) at print_dialog.c:409
409         if (!default_printer_found && g_ascii_strcasecmp (default_printer->name, printer_data->name) == 0) {
(gdb) bt
#0  0x08051164 in print_dialog_set_property (object=0x81d7068, prop_id=1, value=0xbfbc1f58, pspec=0x80e6850)
    at print_dialog.c:409
#1  0xb78253b9 in ?? () from /usr/lib/libgobject-2.0.so.0
#2  0x081d7068 in ?? ()
#3  0x00000001 in ?? ()
#4  0xbfbc1f58 in ?? ()
#5  0x080e6850 in ?? ()
#6  0xb780c248 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0x0808feb8 in ?? ()
#8  0xbfbc1ef8 in ?? ()
#9  0xb7789523 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
#10 0xb78259a8 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#11 0xb7826556 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#12 0xb7826660 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#13 0x0804f371 in print_dialog_new (ps=0x81de7f8, input_file=0x81510e0 "/home/rollingbits/.bashrc") at print_dialog.c:662
#14 0x0804e544 in main (argc=1836017711, argv=0x6f722f65) at main.c:169
(gdb) quit
The program is running.  Exit anyway? (y or n) y

The procedure to print a file with lpr is a bit standard among lpr
implementations: pipe the file to $(lpr). This works with lpr, lprng
and with cupsys-bsd packages. Other actions aren't supposed to react
in the same way (to manage the print queue, for example). I did the
backtrace with lprng.

Cheers,
-- 
,-. rollingbits -- rollingbits at gmail.com, rollingbits at globo.com
\`' lucasnm at ig.com.br, rollingbits at terra.com.br, rollingbits at yahoo.com
 `  Get my public GPG key in http://rollingbits.tripod.com/mykey.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20080321/7b7ef244/attachment.pgp 


More information about the Pkg-xfce-devel mailing list