With standard gcc configuration ptsever segfaults whenever a client tries to connect. When idling (no connections) no errors or anything is reported. I tested it starting ptserver manually with strace and it really crashes the second a client tries to list the contents of its /afs. It can also be seen in the BosLog where ptserver sends a "signal 11". Switching to vanilla sources solved the problem for me (gcc-config -l) My System: > root@kitt $ cat /proc/version > Linux version 2.6.22-hardened-r8 (root@kitt) (gcc version 3.4.6 (Gentoo Hardened 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10)) #1 SMP Wed Dec 19 21:26:28 CET 2007 On an AMD 64 Machine with all packages on latest versions.
Please reopen with - ebuild version - emerge --info - a backtrace attached... http://www.gentoo.org/proj/en/qa/backtraces.xml Thanks.
Created attachment 139658 [details] Segmentation fault traced with strace
Created attachment 139660 [details] Segmentation fault traced with gdb
Comment on attachment 139660 [details] Segmentation fault traced with gdb This really isn't useful. You need to recompile the package w/ -gddb or similar, disable stripping and run bt in gdb when it crashes. Please re-read the howto.
Eh, stupid typo; -ggdb of course...
Portage 2.1.3.19 (hardened/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-hardened-r8 x86_64) ================================================================= System uname: 2.6.22-hardened-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Sun, 30 Dec 2007 15:16:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.32 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -w" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/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/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-mtune=k8 -O2 -pipe -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.inode.at http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_AT.utf8" LC_ALL="de_AT.utf8" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip acl amd64 apache2 async authdaemond berkdb bzip2 caps clamav clamd cli contentcache cracklib crypt ctype dio erandom extensions fam gd gdbm gpgme gpm gssapi hardened hardenedphp hddtemp iconv imap jpeg justify kerberos ldap ldapsam libclamav lm_sensors logrotate maildir memlimit mmap mysql mysqli ncurses nls no-htdocs no-old-linux nolvm1 nptl oav offensive pam pcre php pic png postfix procmail pyzord readline reiserfs sasl session slang smarty smime spamassassin spl sse sse2 ssl subject-rewrite swat symlink sysfs syslog tcpd test threads tools unicode xinetd xml zlib zsh-completion" 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 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Sorry, since I need openafs running I can't just recompile and test around for too long. I will try to do this in the next days but can't promise anything. Maybe the strace output will help too. ebuild version is 1.2