Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99766 - e2fsprogs test needs to be NON language specific
Summary: e2fsprogs test needs to be NON language specific
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-21 02:49 UTC by Attila Stehr
Modified: 2006-02-08 01:19 UTC (History)
3 users (show)

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


Attachments
sample (d_loaddump.failed,1.04 KB, text/plain)
2006-01-22 16:23 UTC, Attila Stehr
Details
e2fsprogs-locale.patch (e2fsprogs-locale.patch,631 bytes, patch)
2006-02-06 18:28 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Stehr 2005-07-21 02:49:54 UTC
79 test fail
( same result with FEATURES="-sandbox" )

-------snip---------------
f_misstable: missing inode table: failed
f_mke2fs2b: mke2fs version 0.2b created filesystem: failed
f_noroot: missing root directory: failed
f_okgroup: 8193 block long filesystem: failed
f_orphan: clearing orphan inodes: failed
f_overfsblks: overlapping inode and block bitmaps: failed
f_preen: preen shouldn't destroy backup superblocks: failed
f_recnect_bad: Reconnecting bad inode: failed
f_reconnect: simple disconnected file inode: failed
f_resize_inode: e2fsck with resize_inode: failed
f_salvage_dir: salvage corrupted directories: failed
f_selinux: SE Linux generated symlinks with EA data: failed
f_special_ea: Special files with extended attributes: failed
f_summary_counts: incorrect inode/block free counts: failed
f_swapfs: checking the e2fsck swapfs functionality: failed
f_valid_ea_in_inode: valid ea-in-inode examplars: failed
f_zero_group: fallback for damaged group descriptors: failed
f_zero_super: fallback for damaged superblock: failed
m_dasd_bs: 2048 byte sector devices: failed
m_large_file: largefile fs type: failed
m_meta_bg: meta blockgroup feature: failed
m_no_opt: no filesystem extensions: failed
m_raid_opt: raid options: failed
m_std: standard filesystem options: failed
----------------snip---------------
r_move_itable: resize2fs with resize_inode: failed
r_resize_inode: resize2fs with resize_inode: failed
2 tests succeeded       79 tests failed
make[1]: *** [check] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/e2fsprogs-1.38/work/e2fsprogs-1.38/tests'
make: *** [check-recursive] Fehler 1

!!! ERROR: sys-fs/e2fsprogs-1.38 failed.
!!! Function src_test, Line 566, Exitcode 0


Reproducible: Always
Steps to Reproduce:
1. emerge -vD e2fsprogs

Actual Results:  
test fail

Expected Results:  
test pass

Portage 2.0.51.22-r2 (default-linux/amd64/2004.3/lib64, gcc-3.4.3,
glibc-2.3.5-r0, 2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox severe sfperms strict test"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 audiofile avi berkdb bitmap-fonts bzlib cdr crypt
cups curl dga directfb dlloader dmalloc dpms dts dvd dvdr dvdread eds emacs
encode esd exif fam fame fat fbcon ffmpeg flac font-server foomaticdb fortran
gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 hal hardened howl imagemagick
imlib ipv6 ithreads javascript jp2 jpeg jpeg2k kde lcms libwww lzo lzw lzw-tiff
mad matroska memlimit mikmod mjpeg mmap mng mozdevelop mozsvg mp3 mpeg mpi
multilib ncurses nls nptl nptlonly ntfs nvidia ogg oggvorbis on-the-fly-crypt
openal opengl oss pam pda pdflib perl png ppds python qt quicktime readline real
reiserfs sdl slang sndfile spell ssl svg symlink tcltk tcpd test tetex tga
threads tidy tiff toolbar truetype truetype-fonts type1-fonts unicode usb
userlocales videos vorbis wmf xine xml2 xmms xpm xprint xrandr xtermtoolbar xv
xvid xvmc yv12 zlib linguas_de_DE@euro userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-07-21 09:19:42 UTC
all the tests passed for me on amd64 ...

try with CFLAGS='-pipe' maybe ?
Comment 2 Attila Stehr 2005-07-21 12:23:35 UTC
my CFLAGS contains pipe:

CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
Comment 3 SpanKY gentoo-dev 2005-07-21 17:28:35 UTC
i didnt say add -pipe i said try it with *only* -pipe
Comment 4 Attila Stehr 2005-07-22 07:41:50 UTC
same result with
CFLAGS="-pipe" CXXFLAGS="-pipe" emerge -vD e2fsprogs
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2005-08-05 23:28:55 UTC
confirmed on x86-hardened-uclibc.
Comment 6 Attila Stehr 2005-08-14 22:36:21 UTC
Changed summary from "e2fsprogs-1.38 test fails" since it happened as well with
1.37-r1 when I tried to reemerge that.


The difference is, that 1.37-r1 _finishes_install_ even _with_test_failed_.

-----------------snip------------------------------
r_resize_inode: resize2fs with resize_inode: failed
2 tests succeeded       78 tests failed
make[1]: Leaving directory
`/var/tmp/portage/e2fsprogs-1.37-r1/work/e2fsprogs-1.37/tests'

>>> Install e2fsprogs-1.37-r1 into /var/tmp/portage/e2fsprogs-1.37-r1/image/
category sys-fs
make[1]: Entering directory `/var/tmp/portage/e2fsprogs-1.37-r1/work/e2fsprogs-1.37'
----------------snip--------------------------------
--- !targe sym /lib64/libblkid.so
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> sys-fs/e2fsprogs-1.37-r1 merged.
----------------snip--------------------------------

Thats probably why the problem wasn't noticed with prior versions. imho

magic scripts # emerge --info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox severe sfperms strict test"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 audiofile avi berkdb bitmap-fonts bzlib cdr crypt
cups curl dbus dga directfb dlloader dmalloc dpms dts dvd dvdr dvdread eds emacs
encode esd exif fam fame fat fbcon ffmpeg firefox flac foomaticdb fortran gdbm
gif gimpprint gnome gpm gstreamer gtk gtk2 hal hardened howl imagemagick imlib
ipv6 ithreads javascript jpeg jpeg2k kde lcms libsamplerate libwww lzo lzw
lzw-tiff mad matroska memlimit mikmod mjpeg mmap mng mozcalendar mozdevelop
mozsvg mp3 mpeg mpi ncurses nls nptl nptlonly ntfs nvidia ogg oggvorbis
on-the-fly-crypt openal openexr opengl pam pda pdflib perl png ppds python qt
quicktime readline real reiserfs sdl slang sndfile spell ssl svg symlink tcltk
tcpd test tetex tga theora threads tidy tiff toolbar truetype truetype-fonts
type1-fonts unicode usb userlocales videos vorbis wmf xine xml2 xmms xpm xprint
xtermtoolbar xv xvid xvmc yv12 zlib linguas_de userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, PORTDIR_OVERLAY
Comment 7 Michal Suchanek 2005-12-04 03:04:33 UTC
I also got failed tests for e2fsprogs (on x86 32bit) but after upgrading
something the problem went away.
Perhaps the software used for testing e2fsprogs was broken?
Comment 8 Attila Stehr 2005-12-04 04:55:54 UTC
Can you please check your /var/log/portage and tell us which packages you
updated recently?
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2006-01-07 06:19:04 UTC
I've encountered the same problem in my chroot and after an hour of reading sources, I'm happy to tell you that I found the reason! :) It was missing */etc/mtab* file!

ex2fsck checks if the filesystem is mounted. If you do not have /etc/mtab it produces warning:
ext2fs_check_if_mount: No such file or directory while determining whether ./test.img is mounted.

Tests in e2fsprogs package call e2fsck many times (on different special files) and then compare output of test with the files expect.* in test_name directories. If test failed output of the diff (between what output should be and what it actually is) is written into test_name.failed file.

So to make sure you have the same issue just check test_name.failed file for line:
+ext2fs_check_if_mount: No such file or directory while determining whether ./test.img is mounted.

If you have such line, if you have /etc/mtab :)

HTH.
Comment 10 Attila Stehr 2006-01-22 16:04:20 UTC
I did not find such entries.

----------------------

magic tests # ls
.                       f_badprimary.failed   f_dupdot                f_h_reindex.2.log       f_miss_journal         f_summary_counts.1.log
..                      f_badroot             f_dupdot.1.log          f_h_reindex.failed      f_miss_journal.1.log   f_summary_counts.2.log
ChangeLog               f_badroot.1.log       f_dupdot.2.log          f_hurd                  f_miss_journal.2.log   f_summary_counts.failed
defaults                f_badroot.2.log       f_dupdot.failed         f_hurd.1.log            f_miss_journal.failed  f_swapfs
d_loaddump              f_badroot.failed      f_dup.failed            f_hurd.2.log            f_misstable            f_swapfs.failed
d_loaddump.failed       f_badsymlinks         f_dupfsblks             f_hurd.failed           f_misstable.1.log      f_swapfs.log
d_loaddump.log          f_badsymlinks.1.log   f_dupfsblks.1.log       f_illbbitmap            f_misstable.2.log      f_valid_ea_in_inode
d_loaddump.log.new      f_badsymlinks.2.log   f_dupfsblks.2.log       f_illbbitmap.1.log      f_misstable.failed     f_valid_ea_in_inode.1.log
e_brel_bma              f_badsymlinks.failed  f_dupfsblks.failed      f_illbbitmap.2.log      f_mke2fs2b             f_valid_ea_in_inode.failed
e_icount_normal         f_badtable            f_dup_resize            f_illbbitmap.failed     f_mke2fs2b.1.log       f_zero_group
e_icount_normal.log     f_badtable.1.log      f_dup_resize.1.log      f_illibitmap            f_mke2fs2b.2.log       f_zero_group.1.log
e_icount_normal.ok      f_badtable.2.log      f_dup_resize.2.log      f_illibitmap.1.log      f_mke2fs2b.failed      f_zero_group.2.log
e_icount_opt            f_badtable.failed     f_dup_resize.failed     f_illibitmap.2.log      f_noroot               f_zero_group.failed
e_icount_opt.log        f_bbfile              f_dupsuper              f_illibitmap.failed     f_noroot.1.log         f_zero_super
e_icount_opt.ok         f_bbfile.1.log        f_dupsuper.1.log        f_illitable             f_noroot.2.log         f_zero_super.1.log
e_irel_ima              f_bbfile.2.log        f_dupsuper.2.log        f_illitable.1.log       f_noroot.failed        f_zero_super.2.log
f_16384_block           f_bbfile.failed       f_dupsuper.failed       f_illitable.2.log       f_okgroup              f_zero_super.failed
f_16384_block.1.log     f_bbinode             f_end-bitmap            f_illitable.failed      f_okgroup.1.log        Makefile
f_16384_block.2.log     f_bbinode.1.log       f_end-bitmap.1.log      filter_dumpe2fs         f_okgroup.2.log        Makefile.in
f_16384_block.failed    f_bbinode.2.log       f_end-bitmap.2.log      f_imagic                f_okgroup.failed       m_dasd_bs
f_8192_block            f_bbinode.failed      f_end-bitmap.failed     f_imagic.1.log          f_orphan               m_dasd_bs.1.log
f_8192_block.1.log      f_big_sparse          f_expand                f_imagic.2.log          f_orphan.1.log         m_dasd_bs.failed
f_8192_block.2.log      f_big_sparse.1.log    f_expand.1.log          f_imagic.failed         f_orphan.2.log         m_large_file
f_8192_block.failed     f_big_sparse.2.log    f_expand.2.log          f_imagic_fs             f_orphan.failed        m_large_file.1.log
f_badbblocks            f_big_sparse.failed   f_expand.failed         f_imagic_fs.1.log       f_overfsblks           m_large_file.failed
f_badbblocks.1.log      f_bitmaps             f_ext_journal           f_imagic_fs.2.log       f_overfsblks.1.log     m_meta_bg
f_badbblocks.2.log      f_bitmaps.1.log       f_ext_journal.1.log     f_imagic_fs.failed      f_overfsblks.2.log     m_meta_bg.1.log
f_badbblocks.failed     f_bitmaps.2.log       f_ext_journal.2.log     f_journal               f_overfsblks.failed    m_meta_bg.failed
f_baddir                f_bitmaps.failed      f_ext_journal.failed    f_journal.1.log         f_preen                m_no_opt
f_baddir.1.log          f_clear_xattr         f_extra_journal         f_journal.2.log         f_preen.1.log          m_no_opt.1.log
f_baddir.2.log          f_clear_xattr.1.log   f_extra_journal.1.log   f_journal.failed        f_preen.2.log          m_no_opt.failed
f_baddir.failed         f_clear_xattr.2.log   f_extra_journal.2.log   f_lotsbad               f_preen.failed         m_raid_opt
f_baddotdir             f_clear_xattr.failed  f_extra_journal.failed  f_lotsbad.1.log         f_recnect_bad          m_raid_opt.1.log
f_baddotdir.1.log       f_crashdisk           f_filetype              f_lotsbad.2.log         f_recnect_bad.1.log    m_raid_opt.failed
f_baddotdir.2.log       f_crashdisk.1.log     f_filetype.1.log        f_lotsbad.failed        f_recnect_bad.2.log    m_std
f_baddotdir.failed      f_crashdisk.failed    f_filetype.2.log        f_lpf                   f_recnect_bad.failed   m_std.1.log
f_badinode              f_dirlink             f_filetype.failed       f_lpf.1.log             f_reconnect            m_std.failed
f_badinode.1.log        f_dirlink.1.log       f_h_badnode             f_lpf2                  f_reconnect.1.log      progs
f_badinode.2.log        f_dirlink.2.log       f_h_badnode.1.log       f_lpf2.1.log            f_reconnect.2.log      README
f_badinode.failed       f_dirlink.failed      f_h_badnode.2.log       f_lpf2.2.log            f_reconnect.failed     r_move_itable
f_badjourblks           f_dup                 f_h_badnode.failed      f_lpf2.failed           f_resize_inode         r_move_itable.failed
f_badjourblks.1.log     f_dup.1.log           f_h_badroot             f_lpf.2.log             f_resize_inode.failed  r_move_itable.log
f_badjourblks.2.log     f_dup2                f_h_badroot.1.log       f_lpf.failed            f_resize_inode.log     r_resize_inode
f_badjourblks.failed    f_dup2.1.log          f_h_badroot.2.log       f_lpffile               f_salvage_dir          r_resize_inode.failed
f_bad_local_jnl         f_dup2.2.log          f_h_badroot.failed      f_lpffile.1.log         f_salvage_dir.1.log    r_resize_inode.log
f_bad_local_jnl.1.log   f_dup2.failed         f_h_normal              f_lpffile.2.log         f_salvage_dir.2.log    run_e2fsck
f_bad_local_jnl.2.log   f_dup.2.log           f_h_normal.1.log        f_lpffile.failed        f_salvage_dir.failed   run_mke2fs
f_bad_local_jnl.failed  f_dup3                f_h_normal.2.log        f_messy_inode           f_selinux              test_config
f_badorphan             f_dup3.1.log          f_h_normal.failed       f_messy_inode.1.log     f_selinux.1.log        test.img
f_badorphan.1.log       f_dup3.2.log          f_holedir               f_messy_inode.2.log     f_selinux.2.log        test_script
f_badorphan.2.log       f_dup3.failed         f_holedir.1.log         f_messy_inode.failed    f_selinux.failed       test_script.in
f_badorphan.failed      f_dup_de              f_holedir.2.log         f_miss_blk_bmap         f_special_ea
f_badprimary            f_dup_de.1.log        f_holedir.failed        f_miss_blk_bmap.1.log   f_special_ea.1.log
f_badprimary.1.log      f_dup_de.2.log        f_h_reindex             f_miss_blk_bmap.2.log   f_special_ea.failed
f_badprimary.2.log      f_dup_de.failed       f_h_reindex.1.log       f_miss_blk_bmap.failed  f_summary_counts
magic tests # grep +ext2fs_check_if_mount * -r
magic tests # grep "No such" *
magic tests #
Comment 11 Attila Stehr 2006-01-22 16:23:47 UTC
Created attachment 77867 [details]
sample
Comment 12 Attila Stehr 2006-01-22 16:26:06 UTC
lol

I just realized the problem is that the expected result is in english language ... you should modify the respectively use a 'pattern'.
Comment 13 Attila Stehr 2006-01-22 16:27:03 UTC
sry ... "you should modify the test resp. use a suitable pattern"
Comment 14 SpanKY gentoo-dev 2006-01-22 17:35:19 UTC
or we just force LC_ALL to 'C' when running tests
Comment 15 Attila Stehr 2006-01-22 17:47:00 UTC
no objections ...
if that doesn't result in failed tests elsewhere like audacity which needs this settings:

### for audacity:
# LANG="C audacity"
# LC_ALL="C audacity"
Comment 16 Attila Stehr 2006-02-06 14:04:12 UTC
grammar corrected in summary =)
Comment 17 SpanKY gentoo-dev 2006-02-06 18:28:36 UTC
Created attachment 79079 [details, diff]
e2fsprogs-locale.patch

try this patch please
Comment 18 Attila Stehr 2006-02-07 16:36:57 UTC
m_std: standard filesystem options: ok
r_move_itable: resize2fs with resize_inode: ok
r_resize_inode: resize2fs with resize_inode: ok

81 tests succeeded      0 tests failed

make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.38/work/e2fsprogs-1.38/tests'

thanks! =)
Comment 19 Attila Stehr 2006-02-07 16:38:08 UTC
Ups ... I was a bit too fast marking this bug fixed ... 'we' first have to put the patch into the protage tree - hence reopened. :->
Comment 20 SpanKY gentoo-dev 2006-02-07 17:16:52 UTC
added to cvs, thanks for testing
Comment 21 Attila Stehr 2006-02-08 01:19:10 UTC
you're welcome =)