Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339765 - sys-apps/attr segfault on file copy during dev-dotnet/xsp merge
Summary: sys-apps/attr segfault on file copy during dev-dotnet/xsp merge
Status: RESOLVED DUPLICATE of bug 300166
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 22:05 UTC by Radoslaw Szkodzinski
Modified: 2010-10-07 01:59 UTC (History)
0 users

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


Attachments
Full backtrace of the issue (cp-fail.log,16.00 KB, text/plain)
2010-10-04 22:08 UTC, Radoslaw Szkodzinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2010-10-04 22:05:22 UTC
Hello,
I've hit a segfault in libattr during dev-dotnet/xsp merge
with portage tmpdir on tmpfs.
Other copies don't cause this segfault, so it is something very specific to this merge. It's 100% reproducible.

The log will be attached in the next comment.

emerge --info:
Portage 2.2_rc88_p72 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35.7-ck1+ x86_64)
=================================================================
System uname: Linux-2.6.35.7-ck1+-x86_64-AMD_Turion-tm-_X2_Ultra_Dual-Core_Mobile_ZM-82-with-gentoo-2.0.1
Timestamp of tree: Mon, 04 Oct 2010 17:45:02 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O0 -g -ggdb -march=x86-64 -mtune=generic -fprefetch-loop-arrays -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config/kdm /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo"
CXXFLAGS="-O0 -g -ggdb -march=x86-64 -mtune=generic -fprefetch-loop-arrays -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://212.219.56.139/sites/www.ibiblio.org/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--as-needed,--hash-style=gnu"
LINGUAS="pl en en_GB en_US de"
MAKEOPTS="-j2"
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/sabayon /var/lib/layman/mozilla /var/lib/layman/gechi /var/lib/layman/xen /var/lib/layman/foo-overlay /var/lib/layman/x11 /var/lib/layman/multimedia /var/lib/layman/sunrise /var/lib/layman/zugaina /var/lib/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X X509 a52 aac aacs accessibility acl acpi activefilter additions adns adplug aiglx aio alsa amd64 amr ao apm archive ares aspell ass asyncns audacious audiofile audit avahi bash-completion bazaar beagle berkdb bidi binary-drivers bittorrent bluetooth bluray boundschecking branding bs2b bsf bzip2 bzr cairo caps cdaudio cdda cddb cdparanoia cdr chm cjk clamav cli common-lisp compiz connection-sharing consolekit contrib coverage cpudetection cracklib cron crypt cscope ctypes-python cue cups curl custom-cflags custom-cpuopts custom-optimization cvs cxx dbus device-mapper dga dhclient dhcp disk-partition djbfft djvu dmraid dmx dns dri dts dv dvd dvdnav dvi eap-tls emerald enca entropy excel exceptions exif expat extensions extra-tools extras faac fam fame fat fbcon fbcondecor fdt ffmpeg fftw firefox fits flac flash fluidsynth fontconfig fontforge foomatic-db fortran fpx freetds freetype ftp fuse gadu gcj gconf gd gdbm gdm geoip gif gimp gimpprint git glade gmp gnome gnome-keyring gnome-vfs gnomecanvas gnutls gpg gphoto2 gpm graphviz gs gsm gstreamer gtk guile h323 hal hardened hddtemp hdri hfs hvm icecast iconv icu id3tag idn ieee1394 ifp imagemagick imap imlib inotify ioemu iphone ipod iproute2 ipv6 irc irda isag ithreads jabber jack java java5 java6 javamail javascript jbig jce jfs jingle jms jmx jpeg jpeg2k justify kate kdrive kerberos krb4 kvm ladspa lame lapack laptop lash lcd lcdfilter lcms ldap libass libedit libffi libkms libnl libnotify libproxy libsamplerate libssh2 libtiger libv4l libv4l2 lirc live llvm llvm-gcc lm_sensors loop-aes lua lzma lzo mad mail matroska md5sum mdadm mercurial midi mikmod mjpeg mktemp mmx mmxext mng modemmanager modplug modules mono mp2 mp3 mp3rtp mp4 mpeg mpi mpi-threads mplayer mtp mudflap multilib musepack ncurses network networking networkmanager nls nptl nptlonly nsplugin nss ntfs ntlm ntp oav obex objc objc++ objc-gc odbc ogg openal openexr opengl openmp openssl openvz otp pae pam pango passwd passwdqc pcap pcmcia pcre pcsc-lite pda pdf perl physfs pic pkinit plotutils plugins pm-utils png pnm policykit pop portaudio postproc ppds pppd pth pulseaudio python quota radius rar rdesktop rdesktop-vrdp readline realmedia realtime reflection regex reiserfs resolvconf rfc3779 rle romio rss rsync rtc rtmp ruby samba sasl scanner schroedinger scsi sdl secure-delete servletapi session shout sid silc skey skype slang slp smp smtp sndfile snmp soap socks5 sourceview speex spell sqlite sqlite3 srp sse sse2 ssl startup-notification static-libs stream subtitles subversion svg swig sysfs syslog systemtap t1lib taglib tcpd tdb tga theora threads thumbnail thunar thunar-vfs tiff timezone timidity tools tpm truetype udev udis86 unicode unsupported upnp urandom usb utils v4l v4l2 vaapi vala vcdx vde vhosts video vim-pager vim-syntax visualisation vorbis vpx vserver wav wavpack webdav wifi winbind wmf wps wxwidgets x264 xattr xcb xcomposite xen xfce xfs xft xinerama xinetd xml xorg xpm xprint xrandr xulrunner xv xvid xvmc zeroconf zip 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 cgi cgid 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" APACHE2_MPMS="prefork" 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="evdev keyboard mouse void synaptics virtualbox vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en en_GB en_US de" LIRC_DEVICES="audio audio_alsa serial alsa_usb userspace xboxusb udp" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="i386 x86_64 arm" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon fglrx catalyst r600 vmware virtualbox" XFCE_PLUGINS="brightness menu" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Radoslaw Szkodzinski 2010-10-04 22:08:30 UTC
Created attachment 249597 [details]
Full backtrace of the issue
Comment 2 Radoslaw Szkodzinski 2010-10-04 22:40:12 UTC
Sorry, forgot to mention:
sys-apps/attr-2.4.44 and sys-apps/attr-2.4.43 fail in the same way. The stacktrace is from 2.4.44
Coreutils is version 8.5-r1. Merging coreutils with USE=-xattr works around the bug.

Before you ask, I've checked w/o -fprefetch-loop-arrays and that's not responsible.
Comment 3 SpanKY gentoo-dev 2010-10-06 15:14:19 UTC
try with a non-hardened kernel.  at least Bug 300166 indicates this was the problem.
Comment 4 Radoslaw Szkodzinski 2010-10-06 18:45:29 UTC
2.6.35.7-ck1+ - does that look hardened to you? :)
Unless hardened gcc enabled something there for me...
I did get warnings about missing SSP from this kernel.
Possibly the same problem with SMACK, I have it enabled (and use it for some data).

Might be the same thing as in that bug, SMACK creating some xattrs that make libattr explode. Is there an upstream bug report? Where is coreutils upstream now?
Comment 5 SpanKY gentoo-dev 2010-10-07 01:59:36 UTC

*** This bug has been marked as a duplicate of bug 300166 ***