[cups.bugs] [HIGH] STR #1659: Segfault in compare_srcs

twaugh.redhat twaugh at redhat.com
Fri May 5 09:19:39 PDT 2006


[STR New]

This is from svn5491.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208059408 (LWP 4757)]
0x00b1786a in strcmp () from /lib/libc.so.6
(gdb) up
#1  0x00d710e1 in compare_srcs (f0=0x9934e90, f1=0x99199e0) at
filter.c:214
214       if ((i = strcmp(f0->src->super, f1->src->super)) == 0)
(gdb) p f0
$1 = (mime_filter_t *) 0x9934e90
(gdb) p f0->src
$2 = (mime_type_t *) 0x9914a58
(gdb) p f0->src->super
$3 = "application\000\000\000\000"
(gdb) p f1
$4 = (mime_filter_t *) 0x99199e0
(gdb) p f1->src
$5 = (mime_type_t *) 0x0
(gdb) bt
#0  0x00b1786a in strcmp () from /lib/libc.so.6
#1  0x00d710e1 in compare_srcs (f0=0x9934e90, f1=0x99199e0) at
filter.c:214
#2  0x001973fd in cups_array_find (a=0x990f0c8, e=0x9934e90, prev=3,
    rdiff=0xbfca6784) at array.c:859
#3  0x001977b4 in cups_array_add (a=0x990f0c8, e=0x9934e90, insert=0)
    at array.c:739
#4  0x00d71048 in mimeAddFilter (mime=0x990e240, src=0x9914a58,
dst=0x9908288,
    cost=0, filter=0xbfca6c28 "-") at filter.c:137
#5  0x00d693e6 in add_printer_filter (p=0x9907c08, filter=Variable
"filter" is not available.
) at printers.c:2877
#6  0x00d6af3d in cupsdSetPrinterAttrs (p=0x9907c08) at printers.c:1848
#7  0x00d57426 in add_printer (con=0x993a498, uri=0x9938378) at ipp.c:2458
#8  0x00d5e15d in cupsdProcessIPPRequest (con=0x993a498) at ipp.c:531
#9  0x00d3d081 in cupsdReadClient (con=0x993a498) at client.c:1854
#10 0x00d4be6e in main (argc=1, argv=0xbfcb9b84) at main.c:911

The last line from /var/log/cups/error_log is:

d [05/May/2006:17:13:16 +0100] add_printer_filter: deskjet: adding filter
application/vnd.cups-raw printer/deskjet 0 -

Link: http://www.cups.org/str.php?L1659
Version: 1.2-current





More information about the cups-devel mailing list