Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301203 - net-print/cups crash-1.4.2-r1 when www-client/firefox is resuming cups session
Summary: net-print/cups crash-1.4.2-r1 when www-client/firefox is resuming cups session
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 16:43 UTC by Joseph
Modified: 2012-04-05 18:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph 2010-01-16 16:43:16 UTC
I have a fresh installation of xfce4 on two boxes (AMD quad core and ATOM 330), both with xfce4; cupsd is in rc-config "default" on both boxes and boots indicate that cupsd started OK

but when I try to connect to: localhost:631 it does not run.
/etc/inid.d/cupsd status
* status: stopped

When I start it manually, it starts and I can connect to localhost:631
There are no error messages so I have nothing to go on (cups emerges without errors) 
The problem is intermittent, at boot time the cupsd shows mounting status OK every time, and when I log in, sometimes the process run OK, but most of the time "cupsd" process does not start.

I think it could be related to xfce4 as cups is running OK on my other boxes running kde.
I'm using baselayout-1.12.13

I used current cups-1.3.11 but tried as well cups-1.4.2-r1 same problem.



Reproducible: Always




Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 07 Jan 2010 20:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/X11/xkb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/voip"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 berkdb brandingdvd bzip2 cdr cgi cli cracklib crypt cups cxx dbus dri fam foomaticdb fortran gdbm gimp gimpprint gpm hal iconv ipv6 java jpeg lm_sensors lock mmx modules mudflap multilib mysql ncurses nls nplt nptl nptlonly opengl openmp pam pcre perl png ppds pppd python readline reflection scanner session spell spl sse sse2 ssl startup-notification sysfs tcpd tetex thunar tiff truetype type1 unicode usb xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joseph 2010-01-17 04:00:09 UTC
I've tried to delay cups start up script: cupsd 

depend() {
	use net
	need dbus
	after *
}
but it make no difference it boot show it started OK but the process is not running.
Comment 2 Joseph 2010-01-19 18:43:01 UTC
Can any of you try it: open a tab in firefox "localhost:631" (without closing the firefox) restart your computer (so the firefox will be open when you next time login)
Is the cups still running after restarting?

The cupsd is closed by: "cupsdAcceptClient: 11" ???
Here is a log from cups error.log:
D [19/Jan/2010:09:39:59 -0700] cupsdAcceptClient: 11 from localhost:631 (IPv4)
D [19/Jan/2010:09:39:59 -0700] cupsdReadClient: 11 GET /favicon.ico HTTP/1.1
D [19/Jan/2010:09:39:59 -0700] cupsdAuthorize: No authentication data provided.
D [19/Jan/2010:09:39:59 -0700] cupsdCloseClient: 11
D [19/Jan/2010:09:39:59 -0700] cupsdCloseClient: -607871304

It only happens in xfce4, it doesn't effect KDE

Comment 3 Wormo (RETIRED) gentoo-dev 2010-02-02 06:50:09 UTC
How about changing LogLevel to 'debug' in your cupsd.conf, and then attach logs from a working KDE startup vs a broken xfce4 startup
Comment 4 Joseph 2010-02-03 05:09:00 UTC
I just change "info" to "debug" in cupcd.conf and cupsd sript to --verbose
here is the output:
Code:
I [19/Jan/2010:09:39:31 -0700] Listening to ::1:631 (IPv6)
I [19/Jan/2010:09:39:31 -0700] Listening to 127.0.0.1:631 (IPv4)
I [19/Jan/2010:09:39:31 -0700] Listening to /var/run/cups/cups.sock (Domain)
I [19/Jan/2010:09:39:31 -0700] Remote access is disabled.
I [19/Jan/2010:09:39:31 -0700] Loaded configuration file "/etc/cups/cupsd.conf"
I [19/Jan/2010:09:39:31 -0700] Using default TempDir of /var/spool/cups/tmp...
I [19/Jan/2010:09:39:31 -0700] Configured for up to 100 clients.
I [19/Jan/2010:09:39:31 -0700] Allowing up to 100 client connections per host.
I [19/Jan/2010:09:39:31 -0700] Using policy "default" as the default!
I [19/Jan/2010:09:39:31 -0700] Full reload is required.
I [19/Jan/2010:09:39:31 -0700] Loaded MIME database from '/etc/cups': 35 types, 39 filters...
I [19/Jan/2010:09:39:31 -0700] Loading job cache file "/var/cache/cups/job.cache"...
I [19/Jan/2010:09:39:31 -0700] Full reload complete.
I [19/Jan/2010:09:39:31 -0700] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [19/Jan/2010:09:39:31 -0700] Listening to ::1:631 on fd 4...
I [19/Jan/2010:09:39:31 -0700] Listening to 127.0.0.1:631 on fd 6...
I [19/Jan/2010:09:39:31 -0700] Listening to /var/run/cups/cups.sock on fd 7...
I [19/Jan/2010:09:39:31 -0700] Resuming new connection processing...
D [19/Jan/2010:09:39:31 -0700] Discarding unused server-started event...
D [19/Jan/2010:09:39:32 -0700] Report: clients=0
D [19/Jan/2010:09:39:32 -0700] Report: jobs=0
D [19/Jan/2010:09:39:32 -0700] Report: jobs-active=0
D [19/Jan/2010:09:39:32 -0700] Report: printers=0
D [19/Jan/2010:09:39:32 -0700] Report: printers-implicit=0
D [19/Jan/2010:09:39:32 -0700] Report: stringpool-string-count=165
D [19/Jan/2010:09:39:32 -0700] Report: stringpool-alloc-bytes=6080
D [19/Jan/2010:09:39:32 -0700] Report: stringpool-total-bytes=3592

cupsd start fine but when I open a firefox with one of the tab pointing to:
localhost:631 (cups) and restart the computer without shutting down firefox (having localhost:631 tab open)
the cups is being shut down by: "cupsdAcceptClient: 11" log:
Code:
D [19/Jan/2010:09:39:59 -0700] cupsdAcceptClient: 11 from localhost:631 (IPv4)
D [19/Jan/2010:09:39:59 -0700] cupsdReadClient: 11 GET /favicon.ico HTTP/1.1
D [19/Jan/2010:09:39:59 -0700] cupsdAuthorize: No authentication data provided.
D [19/Jan/2010:09:39:59 -0700] cupsdCloseClient: 11
D [19/Jan/2010:09:39:59 -0700] cupsdCloseClient: -607871304

Who is "cupsdAcceptClient: 11"???

Here are steps to reproduce this "bug" (only on XFCE4):

1.) open firefox tab "localhost:631" (don't close the firefox or the "localhost:631" tab) and restart your computer; so the firefox tries to open "localhost:631" upon log-in.
The "cupsd" closes after firefox opens the "localhost:631" I can reproduce it on two different computers running amd64 
It only happens in xfce4, it doesn't effect KDE
Here is a link to the forum where I posted this information.
Comment 5 Wormo (RETIRED) gentoo-dev 2010-02-03 06:15:13 UTC
I've tried to update the subject line to reflect your latest information on how to reproduce the problem. 

Also, here's the forum topic that you were intending to post, though it looks like you have included the relevant info in this bug already (which is good):
http://forums.gentoo.org/viewtopic-t-811389-highlight-cups+xfce4.html
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2011-02-24 11:18:26 UTC
Well, Xfce doesn't do anything printing related since 4.8.x, even xfprint was removed in favour of GTK+ native printing dialogs.   Removing Xfce from summary.
Comment 7 Jory A. Pratt gentoo-dev 2011-02-24 13:00:29 UTC
No mozilla issue here, this is strickly cups.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2012-01-22 21:17:06 UTC
Do you still have this problem with current cups?
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2012-04-05 18:54:24 UTC
(In reply to comment #8)
> Do you still have this problem with current cups?

No reply for some months...