Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65641 - cupsd segfaults on amd64 when trying to change printer settings
Summary: cupsd segfaults on amd64 when trying to change printer settings
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 23:53 UTC by Christian Roessner
Modified: 2004-12-24 05:40 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 Christian Roessner 2004-09-27 23:53:29 UTC
I have strange problems with cups on amd64. I have tested 1.1.20 and 1.1.21 and the following happens: I have configured a HP LaserJet 6P using the gentoo printing howto and I can print a test page. I saw that the page size is wrong and tried to change the settings with http://localhost:631 and with KDE, but in both ways cupsd terminates with the following message in dmesg:

cupsd[14154]: segfault at 0000000000000000 rip 0000003fc3c6dde0 rsp 0000007fbfff1d28 error 4

I looked at the ebuild and have re-emerged every package, cups depends on (This includes gettext and readline, too). Also I did prelinking after that (With or without does not seem to change anything). But nothing helped. I still can not change any settings.

I looked at bugzilla, but there seems no one to have such a problem.

One thing: Some time ago, everything worked without any problems, but because I do not print so often, I can not say at which time printing died.

Any help is appreciated

Thanks in advance

Christian

N.B.: I have coomented out the CFLAGS, CXXFLAGS and LDFLAGS variables in /etc/make.conf and even re-emerging cups with these changes this did not help me. And I even treid to use gcc 3.3.3, but still no luck.

Reproducible: Always
Steps to Reproduce:
1. Start cupsd with /etc/init.d/cups start
2. open http://localhost:631
3. Try to click on "configure printer"

Actual Results:  
The daemon segfaults and I get a connection refused error


Portage 2.0.51_rc6 (default-linux/amd64/gcc34-2004.2, gcc-3.4.2,
glibc-2.3.4.20040808-r0, 2.6.9-rc2-mm4 x86_64)
=================================================================
System uname: 2.6.9-rc2-mm4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.0
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE=""
ARCH="amd64"
AUTOCLEAN="yes"
AUTO_SYMLINK="no"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CC="gcc"
CFLAGS="-O1 -march=athlon64 -pipe -fcaller-saves -fpeephole2 -falign-loops
-falign-jumps -finline-functions -fweb -freduce-all-givs -funroll-all-loops
-ffinite-math-only -fno-signaling-nans -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CONF_LIBDIR="lib64"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-O1 -march=athlon64 -pipe -fno-merge-constants -fno-defer-pop
-fno-thread-jumps -fcse-follow-jumps -fgcse -fpeephole2 -fschedule-insns2
-fregmove -ffloat-store -ftracer -funroll-all-loops -ffinite-math-only
-fno-signaling-nans -fomit-frame-pointer"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0.0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
FEATURES="autoaddcvs ccache distlocks"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://gentoo.inode.at/"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl
ncurses -java -nptl"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="amd64"
INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4/info"
JAVAC="/opt/blackdown-jdk-1.4.2_rc1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2_rc1"
JDK_HOME="/opt/blackdown-jdk-1.4.2_rc1"
KBUILD_OUTPUT_PREFIX=""
KDEDIR="/usr/kde/3.3"
KDEDIRS="/usr"
KDE_MALLOC="1"
LANG="de_DE@euro"
LANGUAGE="de"
LC_CTYPE="de_DE@euro"
LDFLAGS="-Wl,-O1"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LINUX_PORTAGE_WRITABLE="no"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j4"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4/man:/usr/share/man::/opt/blackdown-jdk-1.4.2_rc1/man:/usr/qt/3/doc/man"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
NOCOLOR="false"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2_rc1/bin:/opt/blackdown-jdk-1.4.2_rc1/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 macos mips ppc ppc64 ppc-macos s390
sparc x86 x86-obsd x86-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="27113"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK="/usr/lib/wine:/usr/lib/valgrind"
PWD="/root"
PYTHONDOCS="/usr/share/doc/python-docs-2.3.4/html"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SANE_CONFIG_DIR="/etc/sane.d"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="25815"
SSH_ASKPASS="/usr/bin/gtk2-ssh-askpass"
SSH_AUTH_SOCK="/tmp/ssh-ZBaYf25814/agent.25814"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X acl acpi alsa amd64 arts artswrappersuid avi berkdb bitmap-fonts bonobo
cdr crypt cups directfb doc dvd encode faad fbcon foomaticdb gdbm gif gnome gpm
gtk2 gtkhtml imlib ipv6 jpeg kde ldap libg++ libwww mikmod mozilla mpeg mysql
nas ncurses nls oggvorbis opengl oss pam pdflib perl png pnp ppds python
quicktime readline samba scanner sdl slang spell ssl tcpd tetex tiff truetype
unicode usb vim-with-x wxwindows xml2 xmms xosd xv zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 1 Christian Roessner 2004-09-28 15:11:54 UTC
The problem is pam_usb. I use cups with USE-flag pam and pam uses pam_usb in system-auth. This crashes cups when cupsd is trying to authenticate a user.

Any suggestions?
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-12-24 05:40:46 UTC
please try cups-1.1.23_rc1, if the bug still exists open a bugreport on cups.org