Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127547 - sys-apps/attr-2.4.28: attr segfaults
Summary: sys-apps/attr-2.4.28: attr segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-25 10:26 UTC by TGL
Modified: 2006-03-27 21:39 UTC (History)
0 users

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


Attachments
attr-2.4.28-libattr-fix.patch (attr-2.4.28-libattr-fix.patch,2.25 KB, patch)
2006-03-25 10:30 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2006-03-25 10:26:40 UTC
I'm getting segfaults from "attr". For instance :

% gdb --args /bin/attr -l /home/thomas/test
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /bin/attr -l /home/thomas/test

Program received signal SIGSEGV, Segmentation fault.
0xb7ef1ca5 in strncmp () from /lib/libc.so.6
(gdb) bt
#0  0xb7ef1ca5 in strncmp () from /lib/libc.so.6
#1  0xb7fc1ab0 in _fini () from /lib/libattr.so.1
Previous frame inner to this frame (corrupt stack?)
(gdb) 


This patch from upstream's CVS seems to have fixed the issue:
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-cmds/attr/libattr/libattr.c.diff?r1=1.12;r2=1.13;f=h;only_with_tag=HEAD;f=u


% em --info
Portage 2.1_pre6-r7 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-archck1 i686)
=================================================================
System uname: 2.6.16-archck1 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/cursors/xorg-x11/default /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/dev.d /etc/env.d /etc/gconf /etc/hotplug /etc/hotplug.d /etc/init.d /etc/revdep-rebuild /etc/sound /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -g"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig digest distlocks fixpackages manifest parallel-fetch sandbox sfperms splitdebug userpriv usersandbox"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/ http://pandemonium.tiscali.de/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.ussg.iu.edu/linux/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="fr fr_FR en en_US"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/portage/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/overlays/crossdev /var/portage/overlays/gentopia /var/portage/overlays/bugzilla /var/portage/overlays/tgl /var/portage/overlays/demexp /var/portage/overlays/camelis /var/portage/overlays/tiny /var/portage/overlays/xgl-coffee"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acpi adns alsa apache2 audiofile avahi avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdparanoia cdr cli cross crypt cscope ctype cups curl dba dbus dga dpms dri dvd dvdr dvdread emboss encode expat faad fam fame fastbuild fastcgi fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran freetype ftp gd gdbm ggz gif gimp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imap imlib imlib2 ipv6 java jikes jpeg junit lcms leim libcaca libg++ libwww lirc logrotate lzo mad mailwrapper matroska mbox memlimit mikmod mjpeg mmx mng mono mozilla mp3 mpeg musepack musicbrainz ncurses network nls nodrm nptl nsplugin offensive ogg oggvorbis openal opengl oss pam pcre pdf pdflib plotutils png pnp posix postgres ppds python qt quicktime readline ruby scanner sdl session simplexml slang slp smooth sndfile snmp soap sockets sox speex spell spl sqlite sse sse2 ssl svg sysfs syslog tcltk tcpd tetex theora threads tiff tmpfs tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vhosts vorbis wifi win32codecs wmf wxwindows xface xinerama xml xml2 xosd xpm xscreensaver xsl xv xvid zeo zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_fr linguas_fr_FR linguas_en linguas_en_US userland_GNU video_cards_ati video_cards_dummy"
Unset:  ASFLAGS, CTARGET
Comment 1 TGL 2006-03-25 10:30:59 UTC
Created attachment 83097 [details, diff]
attr-2.4.28-libattr-fix.patch

That's the upstream patch, just attaching it for convenience.


Oh, and here is the expected result of my test case:
% attr -l /home/thomas/test
Attribute "Beagle.Uid" has a 22 byte value for /home/thomas/test
Attribute "Beagle.MTime" has a 14 byte value for /home/thomas/test
Attribute "Beagle.AttrTime" has a 14 byte value for /home/thomas/test
Attribute "Beagle.Fingerprint" has a 25 byte value for /home/thomas/test
Comment 2 SpanKY gentoo-dev 2006-03-27 21:39:35 UTC
added to 2.4.28-r1, thanks