Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231972 - e2fsprogs-1.41.0 available
Summary: e2fsprogs-1.41.0 available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL: http://e2fsprogs.sourceforge.net/e2fs...
Whiteboard:
Keywords:
: 232317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-16 14:44 UTC by Bernhard Hartleb
Modified: 2008-08-16 14:56 UTC (History)
13 users (show)

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


Attachments
New version of the libintl patch needed by e2fsprogs-1.41 (e2fsprogs-1.41-libintl.patch,457 bytes, patch)
2008-07-20 14:43 UTC, Nigel Elliott
Details | Diff
New version of the makefile patch needed by e2fsprogs-1.41 (e2fsprogs-1.41-makefile.patch,3.19 KB, patch)
2008-07-20 14:43 UTC, Nigel Elliott
Details | Diff
e2fsprogs-1.41.0.ebuild - This contains a fudge to link in the libss.so which is needed by the debugfs section of the compile (e2fsprogs-1.41.0.ebuild,4.29 KB, text/plain)
2008-07-20 14:45 UTC, Nigel Elliott
Details
Fix "mount -l" SigFault (e2fsprogs-1.41-devname.patch,513 bytes, patch)
2008-08-03 17:57 UTC, Luigi 'Comio' Mantellini
Details | Diff
Add patch for devname.c (e2fsprogs-1.41.0.ebuild.patch,492 bytes, patch)
2008-08-03 17:59 UTC, Luigi 'Comio' Mantellini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Hartleb 2008-07-16 14:44:35 UTC
A new version of e2fsprogs (1.41.0) is out since July 10, 2008.
There are a lot of enhancements so an updated ebuild would be great.

Release notes can be found here:
http://e2fsprogs.sourceforge.net/e2fsprogs-release.html#1.41.0

Reproducible: Always
Comment 1 haarp 2008-07-18 13:25:37 UTC
I'm suffering from the following bug, that affects my automated backup-scripts. A version bump would fix this.

>>Fix blkid handling of stale devices. Fix a bug which could cause a core dump while garbage collecting the blkid cache, and assure that blkid_find_dev_with_tag() never returns a non-existent device. Also, if a filesystem is found at a new /dev location, eliminate any duplicate stale entries which can not be verified. (Addresses-Debian-Bugs: #487758, #487783)
Comment 2 Aron 2008-07-18 14:02:45 UTC
I'm looking forward to this so I can test ext4 with all in-tree packages.  This and the 2.6.26 kernel will make ext4 a viable option for some of my partitions.
Comment 3 Antek Grzymała (antoszka) 2008-07-18 21:04:46 UTC
For the adventurous, com_err and ss compile fine on x86 with ebuilds just bumped to 1.41.0, e2fsprogs doesn't like two patches (the Makefile patch, and the *intl patch), otherwise compiles as well. You may get badly broken software after this operation, as it's neither vanilla nor consciously patched by Gentoo, so run at your own risk™.
Comment 4 Antek Grzymała (antoszka) 2008-07-18 21:07:34 UTC
(In reply to comment #3)
> For the adventurous, com_err and ss compile fine on x86 with ebuilds just
> bumped to 1.41.0, e2fsprogs doesn't like two patches (the Makefile patch, and
> the *intl patch), otherwise compiles as well. You may get badly broken software
> after this operation, as it's neither vanilla nor consciously patched by
> Gentoo, so run at your own risk™.

Actually disregard the last comment, I must have looked at a wrong terminal window. e2fsprogs will not compile without further work with the ebuild. Sorry about the noise.
Comment 5 Kyle Elbert 2008-07-20 02:34:31 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > For the adventurous, com_err and ss compile fine on x86 with ebuilds just
> > bumped to 1.41.0, e2fsprogs doesn't like two patches (the Makefile patch, and
> > the *intl patch), otherwise compiles as well. You may get badly broken software
> > after this operation, as it's neither vanilla nor consciously patched by
> > Gentoo, so run at your own risk™.
> 
> Actually disregard the last comment, I must have looked at a wrong terminal
> window. e2fsprogs will not compile without further work with the ebuild. Sorry
> about the noise.
> 

I tried that a few days ago, I probabily could have saved you some effort if I had commented that, instead of just silently adding my name to the CC list ... I hope it gets in soon.
Comment 6 Nigel Elliott 2008-07-20 14:43:04 UTC
Created attachment 160932 [details, diff]
New version of the libintl patch needed by e2fsprogs-1.41
Comment 7 Nigel Elliott 2008-07-20 14:43:33 UTC
Created attachment 160934 [details, diff]
New version of the makefile patch needed by e2fsprogs-1.41
Comment 8 Nigel Elliott 2008-07-20 14:45:12 UTC
Created attachment 160936 [details]
e2fsprogs-1.41.0.ebuild - This contains a fudge to link in the libss.so which is needed by the debugfs section of the compile
Comment 9 Nigel Elliott 2008-07-20 14:49:36 UTC
(In reply to comment #6)
> Created an attachment (id=160932) [edit]
> New version of the libintl patch needed by e2fsprogs-1.41
> 

(In reply to comment #7)
> Created an attachment (id=160934) [edit]
> New version of the makefile patch needed by e2fsprogs-1.41
> 

(In reply to comment #8)
> Created an attachment (id=160936) [edit]
> e2fsprogs-1.41.0.ebuild - This contains a fudge to link in the libss.so which
> is needed by the debugfs section of the compile
> 

If you use all three of these attached files then e2fsprogs-1.41 will compile successfully. You do need to make sure you compile com_err and ss (This only needs you to copy the 1.40 version of the ebuild to the 1.41).
Comment 10 Kyle Elbert 2008-07-20 23:34:01 UTC
Using these ebuilds, mount -l for some reason segfaults. Using gdb points to libc for some reason, also, recompiling util-linux doesn't help. but, mount , aside from -l, works fine.. 

This GDB was configured as "x86_64-pc-linux-gnu".
(gdb) exec /bin/mount -l
(gdb) exec /bin/mount
(gdb) set args -l
(gdb) run
Starting program: /bin/mount -l
(no debugging symbols found)
(no debugging symbols found)
rootfs on / type rootfs (rw)

Program received signal SIGSEGV, Segmentation fault.
0x00007f91535fc672 in strcmp () from /lib/libc.so.6
(gdb)
Comment 11 Krzysztof Olędzki 2008-07-24 19:41:10 UTC
(In reply to comment #10)
> Using these ebuilds, mount -l for some reason segfaults. Using gdb points to
> libc for some reason, also, recompiling util-linux doesn't help. but, mount ,
> aside from -l, works fine.. 
> 
> This GDB was configured as "x86_64-pc-linux-gnu".
> (gdb) exec /bin/mount -l
> (gdb) exec /bin/mount
> (gdb) set args -l
> (gdb) run
> Starting program: /bin/mount -l
> (no debugging symbols found)
> (no debugging symbols found)
> rootfs on / type rootfs (rw)
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007f91535fc672 in strcmp () from /lib/libc.so.6
> (gdb)

Any chances to compile it with debug symbols and to run it under dev-util/valgrind?
Comment 12 Jimmy.Jazz 2008-07-26 15:08:06 UTC
(In reply to comment #11)


# gdb --args  /bin/mount -l
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(no debugging symbols found)
(no debugging symbols found)
(gdb) run
Starting program: /bin/mount -l
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
/dev/md/d0p2 on / type ext3 (rw,noatime,acl,user_xattr) [root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
cachedir on /lib64/splash/cache type tmpfs (rw,size=4096k,mode=644)

Program received signal SIGSEGV, Segmentation fault.
0x00007fa109fc7f62 in strcmp () from /lib/libc.so.6
(gdb) bt
#0  0x00007fa109fc7f62 in strcmp () from /lib/libc.so.6
#1  0x00007fa10a2a5352 in blkid_get_dev () from /lib/libblkid.so.1
#2  0x00007fa10a2a8b3d in blkid_get_tag_value () from /lib/libblkid.so.1
#3  0x0000000000402c90 in print_one ()
#4  0x000000000040648b in main ()
(gdb) 
Comment 13 Jimmy.Jazz 2008-07-26 15:43:30 UTC
(In reply to comment #11)

With -ggdb3 and -01

# gdb --args  /bin/mount -l
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(no debugging symbols found)
(no debugging symbols found)
(gdb) run
Starting program: /bin/mount -l
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
/dev/md/d0p2 on / type ext3 (rw,noatime,acl,user_xattr) [root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
cachedir on /lib64/splash/cache type tmpfs (rw,size=4096k,mode=644)

Program received signal SIGSEGV, Segmentation fault.
0x00007f80dff19f62 in strcmp () from /lib/libc.so.6
(gdb) bt
#0  0x00007f80dff19f62 in strcmp () from /lib/libc.so.6
#1  0x00007f80e01f732e in blkid_get_dev (cache=0x2534310, 
    devname=0x2540950 "boot", flags=<value optimized out>) at devname.c:99
#2  0x00007f80e01fa45b in blkid_get_tag_value (cache=0x2534310, 
    tagname=0x41459d "LABEL", devname=0x25409f0 "/dev/md/d0p1") at resolve.c:45
#3  0x0000000000402c90 in print_one ()
#4  0x000000000040648b in main ()
(gdb) 
Comment 14 Kyle Elbert 2008-07-28 16:54:53 UTC
my bt is similer
#0  0x00007fbf9d12a6d2 in strcmp () from /lib/libc.so.6
#1  0x00007fbf9d406ee2 in blkid_get_dev (cache=0x674820, devname=<value optimized out>, flags=2) at devname.c:99
#2  0x00007fbf9d40a1ad in blkid_get_tag_value (cache=0x674820, tagname=0x411f9d "LABEL", devname=0x674a60 "/dev/sda5")
    at resolve.c:45
#3  0x0000000000402be0 in print_one ()
#4  0x0000000000405fc3 in main ()
(gdb)
Comment 15 Kyle Elbert 2008-07-28 16:55:55 UTC
/dev/sda5 is my root fs, btw
Comment 16 Luigi 'Comio' Mantellini 2008-08-03 17:57:08 UTC
Created attachment 162127 [details, diff]
Fix "mount -l" SigFault

this patch avoid to compare a NULL string.

ciao

luigi
Comment 17 Luigi 'Comio' Mantellini 2008-08-03 17:59:01 UTC
Created attachment 162129 [details, diff]
Add patch for devname.c
Comment 18 Nigel Elliott 2008-08-04 18:54:09 UTC
I have applied the new patches and can confirm that mount -l now work correctly.

Thank you comio

Comment 19 Raúl Porcel (RETIRED) gentoo-dev 2008-08-06 18:04:43 UTC
*** Bug 232317 has been marked as a duplicate of this bug. ***
Comment 20 SpanKY gentoo-dev 2008-08-16 04:59:26 UTC
e2fsprogs-1.41.0 in the tree
Comment 21 Luigi 'Comio' Mantellini 2008-08-16 09:12:22 UTC
(In reply to comment #20)
> e2fsprogs-1.41.0 in the tree
> 

The following packages should be fixed before to use the new e2fsprogs:

./app-crypt/mit-krb5/mit-krb5-1.6.3-r1.ebuild (includes sys-libs/{ss,com_err})
./app-crypt/mit-krb5/mit-krb5-1.6.3.ebuild (includes sys-libs/{ss,com_err})
./app-crypt/mit-krb5/mit-krb5-1.5.3-r1.ebuild (includes sys-libs/{ss,com_err})
./app-crypt/heimdal/heimdal-0.7.2-r3.ebuild (includes sys-libs/{ss,com_err})
./app-crypt/heimdal/heimdal-1.2.1.ebuild (includes sys-libs/{ss,com_err})
./sci-mathematics/gimps/gimps-25.6.ebuild (includes sys-libs/com_err)
./net-mail/fetchmail/fetchmail-6.3.8.ebuild (includes sys-libs/com_err)
./net-mail/fetchmail/fetchmail-6.3.6.ebuild (includes sys-libs/com_err)
./net-mail/fetchmail/fetchmail-6.3.7-r1.ebuild (includes sys-libs/com_err)
./net-mail/fetchmail/fetchmail-6.3.8-r1.ebuild (includes sys-libs/com_err)
./net-mail/fetchmail/fetchmail-6.3.8-r2.ebuild (includes sys-libs/com_err)

ciao

luigi
Comment 22 Antek Grzymała (antoszka) 2008-08-16 14:56:05 UTC
There are some collisions in the two packages:

 * Messages for package sys-fs/e2fsprogs-1.41.0:

[...]

 * Detected file collision(s):
 * 
 *      /usr/share/info/libext2fs.info.bz2
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * sys-libs/e2fsprogs-libs-1.41.0
 *      /usr/share/info/libext2fs.info.bz2