Debugging cupsd
George Mitchell
george+freebsd at m5p.com
Sun Mar 16 15:13:20 UTC 2014
So I decided to try to find out why cupsd core dumps on my RP. I
built it WITH_DEBUG=yes and embarked on the following session:
root at pi:/usr/ports/print/cups-base # gdb `find . -name cupsd`
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "armv6-marcel-freebsd"...
(gdb) set args -C /usr/local/etc/cups/cupsd.conf
(gdb) l
147 /* Idle exit on select
timeout? */
148 #endif /* HAVE_LAUNCHD */
149
150
151 #ifdef HAVE_GETEUID
152 /*
153 * Check for setuid invocation, which we do not support!
154 */
155
156 if (getuid() != geteuid())
(gdb) r
Starting program:
/usr/ports/print/cups-base/work/cups-1.5.4/scheduler/cupsd -C
/usr/local/etc/cups/cupsd.conf
User signal 1
root at pi:/usr/ports/print/cups-base #
Huh? -- George
More information about the freebsd-arm
mailing list