Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2014 11:13:12 -0400
From:      George Mitchell <george+freebsd@m5p.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Debugging cupsd
Message-ID:  <5325BF88.60309@m5p.com>

next in thread | raw e-mail | index | archive | help
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@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@pi:/usr/ports/print/cups-base #

Huh?                                                           -- George



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5325BF88.60309>