rpm-4.2 problem with kernel-2.5.65 NPTL
Jeff Johnson suspected from this behavior that NPTL in my kernel is broken in kernel-2.5.65 compiled with gcc-3.2.2-2. Any ideas of what I can try?
(I am not subscribed to LKML at the moment. Please CC me. Thanks.) Warren Togami
[email protected]
Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Warren Togami
Quoted 8 lines
Quoted 8 lines
rpm-4.2-0.70 seems to be broken while I am using kernel-2.5.65 with Rawhide. When I use LD_ASSUME_KERNEL=2.2.5 it works properly as you can see below.
Is this a bug in rpm or upstream kernel? Should I file a Red Hat Bugzilla report for rpm?
Then you have a broken NPTL implementation, which is a glibc/kernel, not rpm, problem.
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
(Is rpm-4.2-0.72 or higher available packaged anywhere?)
Use CVS. rpm-4.2 is on the -r rpm-4_2 branch.
73 de Jeff
[root@laptop root]# rpm -Uvh gaim*
rpmdb: write: 0xbfffd350, 8192: Invalid argument
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm [root@laptop root]# ls
bin gaim-0.60-0.fdr.0.1.cvs20030319.i386.rpm gaim-plugin-encrypt-0.60-0.fdr.0.1.cvs20030319.i386.rpm kernel [root@laptop root]# LD_ASSUME_KERNEL=2.2.5 rpm -Uvh gaim*
Preparing... ###########################################
[100%]
1:gaim ###########################################
[ 50%]
2:gaim-plugin-encrypt ###########################################
[100%]
[root@laptop root]# uname -a
Linux laptop 2.5.65 #2 Tue Mar 18 23:39:11 HST 2003 i686 athlon i386 GNU/Linux
[root@laptop root]# rpm -q rpm
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
package rpm is not installed
[root@laptop root]# LD_ASSUME_KERNEL=2.2.5 rpm -q rpm rpm-4.2-0.70
[reply-to set]
Quoted 3 lines · Warren Togami
Jeff Johnson suspected from this behavior that NPTL in my kernel is broken in kernel-2.5.65 compiled with gcc-3.2.2-2. Any ideas of what I can try?
I think I tracked this down yesterday to the fact that RPM is opening its files with the O_DIRECT flag and then is trying to create a sparse file. If I am reading the archives of this mailing list correctly, this is no longer supported.
I "solved" the problem by rebuilding rpm. It didn't use the O_DIRECT flag when I rebuilt it and things seemed to work better.
Sure wish I remembered LD_ASSUME_KERNEL=2.2.5 yesterday when I was banging my head against the wall trying to figure this out...
cgf
Quoted 63 lines
(I am not subscribed to LKML at the moment. Please CC me. Thanks.) Warren Togami
[email protected]Quoted 4 lines · Jeff Johnson
Quoted 4 lines · Warren Togami
Quoted 3 lines
Quoted 3 lines
rpm-4.2-0.70 seems to be broken while I am using kernel-2.5.65 with Rawhide. When I use LD_ASSUME_KERNEL=2.2.5 it works properly as
you can
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines
see below.
Is this a bug in rpm or upstream kernel? Should I file a Red Hat Bugzilla report for rpm?
Then you have a broken NPTL implementation, which is a glibc/kernel, not rpm, problem.
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
(Is rpm-4.2-0.72 or higher available packaged anywhere?)
Use CVS. rpm-4.2 is on the -r rpm-4_2 branch.
73 de Jeff
[root@laptop root]# rpm -Uvh gaim*
rpmdb: write:0xbfffd350, 8192: Invalid argument
error: db4 error(22) fromdbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in/var/lib/rpm
rpmdb: unable to join the environment
error: db4 error(11) fromdbenv->open: Resource temporarily unavailable
error: cannot open Packages database in/var/lib/rpm
rpmdb: unable to join the environment
error: db4 error(11) fromdbenv->open: Resource temporarily unavailable
error: cannot open Packages database in/var/lib/rpm[root@laptop root]# ls
bin gaim-0.60-0.fdr.0.1.cvs20030319.i386.rpm gaim-plugin-encrypt-0.60-0.fdr.0.1.cvs20030319.i386.rpm kernel [root@laptop root]# LD_ASSUME_KERNEL=2.2.5 rpm -Uvh gaim*
Preparing... ###########################################
[100%]
1:gaim ###########################################
[ 50%]
2:gaim-plugin-encrypt ###########################################
[100%]
[root@laptop root]# uname -a
Linux laptop 2.5.65 #2 Tue Mar 18 23:39:11 HST 2003 i686 athlon i386 GNU/Linux
[root@laptop root]# rpm -q rpm
rpmdb: unable to join the environment
error: db4 error(11) fromdbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in/var/lib/rpm
package rpm is not installed
[root@laptop root]# LD_ASSUME_KERNEL=2.2.5 rpm -q rpm rpm-4.2-0.70