Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 127547
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: TGL <tom.gl@free.fr>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
attr-2.4.28-libattr-fix.patch attr-2.4.28-libattr-fix.patch patch TGL 2006-03-25 10:30 0000 2.25 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 127547 depends on: Show dependency tree
Bug 127547 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-25 10:26 0000
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 From TGL 2006-03-25 10:30:59 0000 -------
Created an attachment (id=83097) [details]
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 From SpanKY 2006-03-27 21:39:35 0000 -------
added to 2.4.28-r1, thanks

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug