You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
The text was updated successfully, but these errors were encountered:
Version: 1.2-current
CUPS.org User: jlovell
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
The text was updated successfully, but these errors were encountered: