Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296595 - =sys-fs/e2fsprogs-1.41.9 debugfs test fails on x86_64
Summary: =sys-fs/e2fsprogs-1.41.9 debugfs test fails on x86_64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 306589
Blocks:
  Show dependency tree
 
Reported: 2009-12-12 09:21 UTC by Thomas Beierlein
Modified: 2010-03-07 02:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beierlein gentoo-dev 2009-12-12 09:21:59 UTC
The package failed tests during upgrade to the shortly stabled version 1.41.9 with the same output as on bug 284745 comment #6.

Running './configure & make & make check' (see comment 7 on above mentioned bug) fails also.

It failes on actual amd64 working system as well as in stable amd64 chroot.


emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 12 Dec 2009 05:15:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Beierlein gentoo-dev 2009-12-12 11:01:16 UTC
digging deeper into it it seems that always 'debugfs' segfaults. Building debugfs with -g and running it in gdb shows the following after the segfault:

(gdb) bt
#0  0xffffffffffffffff in ?? ()
#1  0x00007f6252274a3a in ss_delete_invocation () from /lib/libss.so.2
#2  0x00000000004038b3 in main (argc=4, argv=<value optimized out>)
    at debugfs.c:2236

libss.so.2 is part of e2fsprogs-libs
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-12-15 07:47:39 UTC
http://bugs.gentoo.org/attachment.cgi?id=206079&action=view
Comment 3 Thomas Beierlein gentoo-dev 2009-12-16 07:29:44 UTC
The reason for the segfault lie in e2fsprogs-libs handling of the function pointer for readline_shutdown(). It is left uninitalized and if ss_get_readline() can not open libreadline.so or if the readline implementation does not support readline_shutdown() ss_delete_invocations() segfaults. 

See also the patch and log entry at e2fsprogs git at http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=commitdiff;h=06ef971be505678ee462ae1844204ed24f14aedc;hp=97f466394eb8fe0f874e9f734ee7ef178e229575
Comment 4 Thomas Beierlein gentoo-dev 2009-12-16 13:50:53 UTC
Applying the patch from upstream (see comment #3) to e2fsprogs-libs fixes the problem. Afterward e2fsprogs runs successfully through all tests.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-12-16 13:58:15 UTC
Don't close bugs if the fix is not in Portage yet, thanks.
Comment 6 Thomas Beierlein gentoo-dev 2009-12-16 19:12:35 UTC
Sorry. Was not my intention to close it. Seems I made a mistake on using bugzilla. Thanks for watching and reopening. 
Comment 7 SpanKY gentoo-dev 2010-03-07 02:34:53 UTC
1.41.10 is in the tree, so this should be fixed now