Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352356 - net-fs/openafs-1.4.12: ptserver segfaults on write attempts
Summary: net-fs/openafs-1.4.12: ptserver segfaults on write attempts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL: http://git.openafs.org/?p=openafs.git...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 18:44 UTC by Petr Polezhaev
Modified: 2011-01-25 21:07 UTC (History)
2 users (show)

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


Attachments
ptserver patch (015_all_ptserver.patch,873 bytes, patch)
2011-01-25 08:18 UTC, Andrej Filipcic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Polezhaev 2011-01-21 18:44:27 UTC
Upstream reported bug, response was:
"fixed by git sha1
acdef43d818ee56e6c1f1dc29f508c02793c8355
which is not in the 1.4 series yet"

Here comes mentioned patch: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src/ptserver/map.c;h=c82351633e3f02e0e3ed7f8ad32f0d0dfac8885f;hp=3ea4b26d6675e246265a81ee9487f1d9359b0459;hb=acdef43d818ee56e6c1f1dc29f508c02793c8355;hpb=01b9cee0d0d4a328b662c0138efcd8506126084c

Applies normally except stdint.h part.

Could you integrate it with current patchset until it will go into "stable" 1.4 tree?

Reproducible: Always




Portage 2.2.0_alpha14 (hardened/linux/amd64/no-multilib, gcc-4.5.2, glibc-2.12.1-r3, 2.6.37-gentoo-hellgate-0.18 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-hellgate-0.18-x86_64-Intel-R-_Xeon-R-_CPU_E5504_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 20 Jan 2011 23:45:02 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.68
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       3.4.6-r2, 4.3.5, 4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo hardened-dev niifaq sunrise rion ltsp webapp-experimental science
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --binpkg-respect-use y --jobs=4 -kb"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,--sort-common -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="ru"
MAKEOPTS="-j16"
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="/var/lib/layman/hardened-development /var/lib/layman/niifaq /var/lib/layman/sunrise /var/lib/layman/rion /var/lib/layman/ltsp /var/lib/layman/webapps-experimental /var/lib/layman/science"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl acpi afs amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify kerberos ldap mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline session snmp sse sse2 sse4 ssl ssse3 sysfs tcpd threads unicode urandom vim-syntax xorg zlib zsh-completion" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard" KERNEL="linux" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-fs/openafs-1.4.14 was built with the following:
USE="doc kerberos pam"
CFLAGS="-march=native -mtune=native -O2 -pipe -ggdb -ggdb -ggdb -ggdb -ggdb -ggdb -ggdb"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -ggdb -ggdb -ggdb -ggdb -ggdb -ggdb -ggdb"
LDFLAGS=""
Comment 1 Andrej Filipcic 2011-01-25 08:18:19 UTC
Created attachment 260648 [details, diff]
ptserver patch
Comment 2 Andrej Filipcic 2011-01-25 08:20:28 UTC
I have created the patch for net-fs/openafs-1.4.14. Could you test it please? It compiles fine for me.
Comment 3 Petr Polezhaev 2011-01-25 08:55:43 UTC
It works, I'm using it already (just done the same thing as you done - added failed chunk contents by hands) for ~a week, everything works just fine.
Comment 4 Andrej Filipcic 2011-01-25 11:09:39 UTC
The new net-fs/openafs-1.4.14-r1 should be prepared.

The attached patch 015_all_ptserver.patch should be added to cvs
/src/patchsets/openafs/patches/1.4
and the new patch tarball openafs-1.4.14-patches-2.tar.bz2 should be created.

The diff for the new ebuild (only PVER modified):
--- /usr/portage/net-fs/openafs/openafs-1.4.14.ebuild   2011-01-08 03:07:43.000000000 +0100
+++ openafs-1.4.14-r1.ebuild    2011-01-25 12:04:53.917678119 +0100
@@ -7,7 +7,7 @@
 inherit flag-o-matic eutils autotools toolchain-funcs versionator pam
 
 MY_PV=$(get_version_component_range 1-3)
-PVER="1"
+PVER="2"
 DESCRIPTION="The OpenAFS distributed file system"
 HOMEPAGE="http://www.openafs.org/"
 # We always d/l the doc tarball as man pages are not USE=doc material

Comment 5 SpanKY gentoo-dev 2011-01-25 21:07:46 UTC
added patch to openafs-1.4.14-r1.  thanks guys.