[Pkg-cups-devel] Bug#494168: Interesting tidbit.

Brandon winterknight at nerdshack.com
Sat Sep 6 06:31:50 UTC 2008


I discovered something interesting. If, the first thing I do after
logging in (before starting the X server), I run "/etc/init.d/cups
restart", cups works fine. From what I've tested at least.

Running this command from within xorg, it goes back to it's buggy
behavior. It is something like this:

1) Boot computer
2) Log in as root
2a) ps -A | grep cups (cupsd is running)
3) /etc/init.d/cups restart
4) Log back out
5) Log in as regular user (wk)
6) Start X server (startx)
7) lpstat as many times as I want. No crashes
8) Log in as root in other terminal
9) As root, /etc/init.d/cups restart
10) In regular user terminal, run lpstat twice more
11) And cupsd crashes again.

Interesting that xorg would have an affect on cupsd.

Also, cupsd and lpstat behaves the same way if I never run the X server
in the first place.

1) Boot computer
2) Log in as root
3) lpstat twice and crash

1) Boot computer
2) Log in as root
3) /etc/init.d/cups restart
4) lpstat as many times as I want. No crashes.

So what I get from this, is that any cupsd that is started by init
scripts, or that is started from within xorg, will crash. But any time
that I start it manually, but outside of xorg, it will not crash.

-Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20080905/1600635b/attachment.pgp 


More information about the Pkg-cups-devel mailing list