[cups.bugs] [MOD] STR #1558: mimeDelete should free filters before types

jlovell.apple jlovell at apple.com
Wed Apr 12 11:10:17 PDT 2006


[STR New]

mimeDelete should free filters before types.

Steps to reproduce:

$ sudo gdb -q cupsd
(gdb) set env DYLD_INSERT_LIBRARIES /usr/local/lib/libgmalloc.B.dylib
(gdb) r -f
Starting program: /usr/sbin/cupsd -f
Allocations will be placed on word (4 byte) boundaries.
....
>From another shell: 
$ sudo killall -HUP cupsd
....
Program received signal SIGHUP, Hangup.
0x9001f8c8 in select ()
(gdb) c
Continuing.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xb0d95fec
0x90002a20 in strcmp ()
(gdb) bt
#0  0x90002a20 in strcmp ()
#1  0x0005334c in compare_filters (f0=0xb0f1def4, f1=0xb0f1def4) at
filter.c:189
#2  0x00219fdc in cups_array_find (a=0xb0f1bf5c, e=0xb0f1def4, prev=0,
rdiff=0xbfffab60) at array.c:859
#3  0x002197f0 in cupsArrayRemove (a=0xb0f1bf5c, e=0xb0f1def4) at
array.c:568
#4  0x00052c8c in mimeDeleteFilter (mime=0xb0cf1ff8, filter=0xb0f1def4) at
mime.c:138
#5  0x00052be4 in mimeDelete (mime=0xb0cf1ff8) at mime.c:115
#6  0x000262c8 in cupsdReadConfiguration () at conf.c:949
#7  0x00003590 in main (argc=2, argv=0xbffff6cc) at main.c:634

Link: http://www.cups.org/str.php?L1558
Version: 1.2-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mime.c.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20060412/86ab2f04/attachment.ksh>


More information about the cups-devel mailing list