Cups daemon dies on some time of inactivity

Juergen Schroeder js at turn.to
Sun Sep 5 23:43:35 PDT 2004


Michael Sweet <mike at easysw.com> wrote:

: Hmm, can you recompile with debug enabled (--enable-debug when you
: run the configure script)?  There are two main places where this could
: crash, and it looks like it might be the printer URI or name is not set
: prior to calling SetPrinterAttrs()?


Hello Michael,

here ist the last crash, cupsd with debug.

the end of the error logfile:

time()                                          = 1094221638
poll(0xFFBE91C0, 4, 11000)                      = 1
recvfrom(5, " 6   3   i p p : / / s u".., 1540, 0, 0xFFBEAD88, 0xFFBEB3AC) = 96
door_info(3, 0xFFBE6FF0)                        = 0
door_call(3, 0xFFBE6FD8)                        = 0
time()                                          = 1094221638
time()                                          = 1094221638
time()                                          = 1094221638
poll(0xFFBE91C0, 4, 1000)                       = 0
time()                                          = 1094221639
time()                                          = 1094221639
time()                                          = 1094221639
time()                                          = 1094221639
time()                                          = 1094221639
time()                                          = 1094221639
time()                                          = 1094221639
poll(0xFFBE91C0, 4, 11000)      (sleeping...)
signotifywait()                 (sleeping...)
lwp_cond_wait(0xFF2934E8, 0xFF2934F8, 0xFF28CD80) (sleeping...)
lwp_sema_wait(0xFEF0DE60)       (sleeping...)
door_return(0x00000000, 0, 0x00000000, 0) (sleeping...)
poll(0xFFBE91C0, 4, 11000)                      = 1
recvfrom(5, " 3 0 0 6   4   i p p : /".., 1540, 0, 0xFFBEAD88, 0xFFBEB3AC) = 125
door_info(3, 0xFFBE6FF0)                        = 0
door_call(3, 0xFFBE6FD8)                        = 0
time()                                          = 1094221642
[..]
time()                                          = 1094221642
poll(0xFFBE91C0, 4, 1000)                       = 0
time()                                          = 1094221643
time()                                          = 1094221643
time()                                          = 1094221643
time()                                          = 1094221643
time()                                          = 1094221643
time()                                          = 1094221643
time()                                          = 1094221643
poll(0xFFBE91C0, 4, 11000)                      = 1
recvfrom(5, " 3   3   i p p : / / p i".., 1540, 0, 0xFFBEAD88, 0xFFBEB3AC) = 108
door_info(3, 0xFFBE6FF0)                        = 0
door_call(3, 0xFFBE6FD8)                        = 0
time()                                          = 1094221644
open("/etc/printcap", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 9
write(9, " #   T h i s   f i l e  ".., 1062)    = 1062
close(9)                                        = 0
time()                                          = 1094221644
write(4, " I   [ 0 3 / S e p / 2 0".., 77)      = 77
time()                                          = 1094221644
    Incurred fault #6, FLTBOUNDS  %pc = 0xFF0B3218
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
        *** process killed ***

----

Im shure that I compiled cupsd with the option debug. I have seen that if
one use "make install" the binary will be striped) so I copied the  file
scheduler/cupsd manually.

> file cupsd
cupsd:          ELF 32-bit MSB executable SPARC Version 1, dynamically 
        linked, not stripped

> ll cupsd
-rwxrwxr-x    1 root     other     1955876 Sep  2 09:11 cupsd

> file /usr/local/lib/libcups.so.2
/usr/local/lib/libcups.so.2:    ELF 32-bit MSB dynamic lib SPARC Version 1, 
        dynamically linked, not stripped


But the debugger output is the same as before ...

----
/usr/local/src/cups-1.1.21rc1-debug/scheduler> gdb -c /tmp/core cupsd
GNU gdb 6.0
Copyright 2003 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 "sparc-sun-solaris2.8"...
Core was generated by /usr/local/sbin/cupsd -f'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libz.so...done.
Loaded symbols for /usr/local/lib/libz.so
Reading symbols from /usr/lib/libslp.so.1...done.
Loaded symbols for /usr/lib/libslp.so.1
Reading symbols from /usr/lib/libpam.so.1...done.
Loaded symbols for /usr/lib/libpam.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/local/lib/libcups.so.2...done.
Loaded symbols for /usr/local/lib/libcups.so.2
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/lib/libcmd.so.1...done.
Loaded symbols for /usr/lib/libcmd.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1
Reading symbols from /usr/lib/nss_files.so.1...done.
Loaded symbols for /usr/lib/nss_files.so.1
#0  0xff0b3218 in strlen () from /usr/lib/libc.so.1
(gdb) where
#0  0xff0b3218 in strlen () from /usr/lib/libc.so.1
#1  0xff0cf560 in strdup () from /usr/lib/libc.so.1
#2  0x00059ea0 in SetPrinterAttrs (p=0x1ad910) at printers.c:1314
#3  0x00018f70 in AddPrinterToClass (c=0x1ad910, p=0x4) at classes.c:125
(gdb) 

Juergen




More information about the cups-devel mailing list