* 2.5.66-bk12 causes "rpm" errors
@ 2003-04-07 1:18 Robert P. J. Day
2003-04-07 1:32 ` Andrew Morton
2003-04-07 9:05 ` Felipe Alfaro Solana
0 siblings, 2 replies; 18+ messages in thread
From: Robert P. J. Day @ 2003-04-07 1:18 UTC (permalink / raw)
To: Linux kernel mailing list
got 2.5.66-bk12 to boot on my inspiron 8100, and ran
"rpm -q iptables", got the following:
rpmdb: write: 0xbfffc2d0, 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
package iptables is not installed
rebooted under 2.4.20, that command worked fine.
rday
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 2:04 ` Robert P. J. Day
@ 2003-04-07 1:28 ` Andrew Morton
2003-04-07 3:15 ` Robert Love
0 siblings, 1 reply; 18+ messages in thread
From: Andrew Morton @ 2003-04-07 1:28 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: linux-kernel
"Robert P. J. Day" <rpjday@mindspring.com> wrote:
>
> > The only change which comes to mind is the below one. Could you do a
> > patch -R of this and retest?
>
> ... patch deleted ...
>
> that fixed it, but i only this second noticed the "-R" for reversing
> the patch. i applied it normally against my 2.5.66-bk12 tree, and
> it apparently applied cleanly.
>
> wouldn't that suggest that that patch wasn't in my tree in the first
> place? i'm sure i'm up to bk12 at this point.
>
I am now very confused.
That patch _is_ in 2.5.66-bk12. If a `patch -R' of that patch made bk12 work
correctly then the patch was the source of the changed behaviour.
Please start again ;)
Test 2.5.66, then 2.5.66-bk12, then 2.5.66-bk12 with a `patch -R' of
the patch which I sent in the earlier email.
Thanks again.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:18 2.5.66-bk12 causes "rpm" errors Robert P. J. Day
@ 2003-04-07 1:32 ` Andrew Morton
2003-04-07 1:41 ` Robert Love
2003-04-07 2:04 ` Robert P. J. Day
2003-04-07 9:05 ` Felipe Alfaro Solana
1 sibling, 2 replies; 18+ messages in thread
From: Andrew Morton @ 2003-04-07 1:32 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: linux-kernel
"Robert P. J. Day" <rpjday@mindspring.com> wrote:
>
>
> got 2.5.66-bk12 to boot on my inspiron 8100, and ran
> "rpm -q iptables", got the following:
>
> rpmdb: write: 0xbfffc2d0, 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
> package iptables is not installed
>
Does it work OK with earlier 2.5 kernels?
The only change which comes to mind is the below one. Could you do a
patch -R of this and retest?
Also, the log from `strace -f -o log rpm -q iptables' would be interesting.
Thanks.
mm/filemap.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff -puN mm/filemap.c~file-limit-checking-cleanup mm/filemap.c
--- 25/mm/filemap.c~file-limit-checking-cleanup 2003-04-02 22:51:02.000000000 -0800
+++ 25-akpm/mm/filemap.c 2003-04-02 22:51:02.000000000 -0800
@@ -1509,9 +1509,8 @@ inline int generic_write_checks(struct i
send_sig(SIGXFSZ, current, 0);
return -EFBIG;
}
- if (*pos > 0xFFFFFFFFULL || *count > limit-(u32)*pos) {
- /* send_sig(SIGXFSZ, current, 0); */
- *count = limit - (u32)*pos;
+ if (*count > limit - (typeof(limit))*pos) {
+ *count = limit - (typeof(limit))*pos;
}
}
}
@@ -1525,9 +1524,8 @@ inline int generic_write_checks(struct i
send_sig(SIGXFSZ, current, 0);
return -EFBIG;
}
- if (*count > MAX_NON_LFS - (u32)*pos) {
- /* send_sig(SIGXFSZ, current, 0); */
- *count = MAX_NON_LFS - (u32)*pos;
+ if (*count > MAX_NON_LFS - (unsigned long)*pos) {
+ *count = MAX_NON_LFS - (unsigned long)*pos;
}
}
_
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:32 ` Andrew Morton
@ 2003-04-07 1:41 ` Robert Love
2003-04-07 1:47 ` Robert Love
` (2 more replies)
2003-04-07 2:04 ` Robert P. J. Day
1 sibling, 3 replies; 18+ messages in thread
From: Robert Love @ 2003-04-07 1:41 UTC (permalink / raw)
To: Andrew Morton; +Cc: Robert P. J. Day, linux-kernel
On Sun, 2003-04-06 at 21:32, Andrew Morton wrote:
> Does it work OK with earlier 2.5 kernels?
>
> The only change which comes to mind is the below one. Could you do a
> patch -R of this and retest?
This has been happening since 2.5.60-ish.
It is NPTL-related. Mr. Day, doing this:
LD_ASSUME_KERNEL=2.2.5 rpm <...>
should "fix" the problem.
I have not yet tracked down what in 2.5 is broken, but Red Hat's kernel
obviously does not have this flaw.
Robert Love
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:41 ` Robert Love
@ 2003-04-07 1:47 ` Robert Love
2003-04-07 11:45 ` Alan Cox
2003-04-07 1:49 ` Robert Love
2003-04-07 12:07 ` Robert P. J. Day
2 siblings, 1 reply; 18+ messages in thread
From: Robert Love @ 2003-04-07 1:47 UTC (permalink / raw)
To: Andrew Morton; +Cc: Robert P. J. Day, linux-kernel
On Sun, 2003-04-06 at 21:41, Robert Love wrote:
> I have not yet tracked down what in 2.5 is broken, but Red Hat's kernel
> obviously does not have this flaw.
I should clarify this.
I do not know if the flaw is in 2.5. It might be a behavior of Red
Hat's kernel which rpm(8) assumes.
Robert Love
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:41 ` Robert Love
2003-04-07 1:47 ` Robert Love
@ 2003-04-07 1:49 ` Robert Love
2003-04-07 2:59 ` J Sloan
2003-04-07 12:07 ` Robert P. J. Day
2 siblings, 1 reply; 18+ messages in thread
From: Robert Love @ 2003-04-07 1:49 UTC (permalink / raw)
To: Andrew Morton; +Cc: Robert P. J. Day, linux-kernel
On Sun, 2003-04-06 at 21:41, Robert Love wrote:
> This has been happening since 2.5.60-ish.
2.5.60-mm-ish I should say... which is a big difference if this bug just
cropped up in Linus's 2.5 tree.
Robert Love
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:32 ` Andrew Morton
2003-04-07 1:41 ` Robert Love
@ 2003-04-07 2:04 ` Robert P. J. Day
2003-04-07 1:28 ` Andrew Morton
1 sibling, 1 reply; 18+ messages in thread
From: Robert P. J. Day @ 2003-04-07 2:04 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
On Sun, 6 Apr 2003, Andrew Morton wrote:
> "Robert P. J. Day" <rpjday@mindspring.com> wrote:
> >
> >
> > got 2.5.66-bk12 to boot on my inspiron 8100, and ran
> > "rpm -q iptables", got the following:
> >
> > rpmdb: write: 0xbfffc2d0, 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
> > package iptables is not installed
> >
>
> Does it work OK with earlier 2.5 kernels?
sorry, i couldn't tell you about that.
> The only change which comes to mind is the below one. Could you do a
> patch -R of this and retest?
... patch deleted ...
that fixed it, but i only this second noticed the "-R" for reversing
the patch. i applied it normally against my 2.5.66-bk12 tree, and
it apparently applied cleanly.
wouldn't that suggest that that patch wasn't in my tree in the first
place? i'm sure i'm up to bk12 at this point.
rday
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:49 ` Robert Love
@ 2003-04-07 2:59 ` J Sloan
0 siblings, 0 replies; 18+ messages in thread
From: J Sloan @ 2003-04-07 2:59 UTC (permalink / raw)
To: linux-kernel
Yes, I loaded 2.5.66-mm3 on my new shrike box
and was disappointed to see that rpm was broken,
and I had to boot back to 2.4.20-8 (RH) to upgrade
anything -
I'll try the
LD_ASSUME_KERNEL=2.2.5 rpm <...>
routine and see if that does the trick -
Joe
Robert Love wrote:
>On Sun, 2003-04-06 at 21:41, Robert Love wrote:
>
>
>
>>This has been happening since 2.5.60-ish.
>>
>>
>
>2.5.60-mm-ish I should say... which is a big difference if this bug just
>cropped up in Linus's 2.5 tree.
>
> Robert Love
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:28 ` Andrew Morton
@ 2003-04-07 3:15 ` Robert Love
2003-04-07 3:19 ` Robert Love
2003-04-07 3:29 ` Andrew Morton
0 siblings, 2 replies; 18+ messages in thread
From: Robert Love @ 2003-04-07 3:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: Robert P. J. Day, linux-kernel
On Sun, 2003-04-06 at 21:28, Andrew Morton wrote:
> I am now very confused.
It is a battle tactic.
Backing out this patch (from a kernel roughly similar to 2.5.66-mm3)
does not resolve the problem:
[23:08:36]root@phantasy:~# rpm -q glibc
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 glibc is not installed
[23:10:57]root@phantasy:~# LD_ASSUME_KERNEL=2.2.5 rpm -q glibc
glibc-2.3.2-11.9
If I boot a kernel without NPTL the problem goes away. The problem also
does not exist in Red Hat 9's 2.4 kernel (which has NPTL).
When I first started tracking this down, I found an rpm version where
everything worked... like rpm-4.2-0.41 or so. I am currently running
rpm-4.2-0.69 which experiences the problem.
It only happens with root, by the way. I guess because non-root users
cannot do much, and everything they do do they do without getting a lock
on the db.
Baffling.
Robert Love
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 3:15 ` Robert Love
@ 2003-04-07 3:19 ` Robert Love
2003-04-07 3:29 ` Andrew Morton
1 sibling, 0 replies; 18+ messages in thread
From: Robert Love @ 2003-04-07 3:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: Robert P. J. Day, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
On Sun, 2003-04-06 at 23:15, Robert Love wrote:
> On Sun, 2003-04-06 at 21:28, Andrew Morton wrote:
>
> > I am now very confused.
>
> It is a battle tactic.
Here is the the strace of `rpm -q glibc' without disabling NPTL. It
fails.
Robert Love
[-- Attachment #2: rpm-nptl.log --]
[-- Type: text/plain, Size: 28903 bytes --]
1271 execve("/bin/rpm", ["rpm", "-q", "glibc"], [/* 29 vars */]) = 0
1271 uname({sys="Linux", node="phantasy", ...}) = 0
1271 brk(0) = 0x8069000
1271 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
1271 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/etc/ld.so.cache", O_RDONLY) = 3
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=36231, ...}) = 0
1271 old_mmap(NULL, 36231, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
1271 close(3) = 0
1271 open("/usr/lib/librpm-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\233"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=298016, ...}) = 0
1271 old_mmap(NULL, 344020, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40020000
1271 old_mmap(0x40066000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x46000) = 0x40066000
1271 old_mmap(0x40069000, 45012, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40069000
1271 close(3) = 0
1271 open("/usr/lib/librpmdb-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300|\1"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=898968, ...}) = 0
1271 old_mmap(NULL, 911744, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40074000
1271 old_mmap(0x4014d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd8000) = 0x4014d000
1271 old_mmap(0x40151000, 6528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40151000
1271 close(3) = 0
1271 open("/usr/lib/librpmio-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\300\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=349912, ...}) = 0
1271 old_mmap(NULL, 384636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40153000
1271 old_mmap(0x401a2000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4f000) = 0x401a2000
1271 old_mmap(0x401a9000, 32380, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401a9000
1271 close(3) = 0
1271 open("/usr/lib/libpopt.so.0", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\24\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=26896, ...}) = 0
1271 old_mmap(NULL, 29872, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401b1000
1271 old_mmap(0x401b8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6000) = 0x401b8000
1271 close(3) = 0
1271 open("/usr/lib/libelf.so.1", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\214\33"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=62272, ...}) = 0
1271 old_mmap(NULL, 65164, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401b9000
1271 old_mmap(0x401c8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x401c8000
1271 close(3) = 0
1271 open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320>\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=79744, ...}) = 0
1271 old_mmap(NULL, 50040, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401c9000
1271 old_mmap(0x401d3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa000) = 0x401d3000
1271 old_mmap(0x401d4000, 4984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401d4000
1271 close(3) = 0
1271 open("/lib/librt.so.1", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\33"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=37552, ...}) = 0
1271 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401d6000
1271 old_mmap(NULL, 73720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401d7000
1271 old_mmap(0x401dd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x401dd000
1271 old_mmap(0x401df000, 40952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401df000
1271 close(3) = 0
1271 open("/usr/lib/libbz2.so.1", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\22\0\000"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=62128, ...}) = 0
1271 old_mmap(NULL, 61008, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401e9000
1271 old_mmap(0x401f7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x401f7000
1271 close(3) = 0
1271 open("/lib/tls/libc.so.6", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`V\1B4\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=1531064, ...}) = 0
1271 old_mmap(0x42000000, 1257224, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000
1271 old_mmap(0x4212e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12e000) = 0x4212e000
1271 old_mmap(0x42131000, 7944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
1271 close(3) = 0
1271 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401f8000
1271 mprotect(0x40153000, 323584, PROT_READ|PROT_WRITE) = 0
1271 mprotect(0x40153000, 323584, PROT_READ|PROT_EXEC) = 0
1271 set_thread_area({entry_number:-1 -> 6, base_addr:0x401f8500, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
1271 munmap(0x40017000, 36231) = 0
1271 set_tid_address(0x401f8548) = 1271
1271 rt_sigaction(SIGRTMIN, {0x401cce30, [], SA_RESTORER, 0x401d2618}, NULL, 8) = 0
1271 rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
1271 getrlimit(0x3, 0xbffff944) = 0
1271 brk(0) = 0x8069000
1271 brk(0x806a000) = 0x806a000
1271 brk(0) = 0x806a000
1271 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=30313968, ...}) = 0
1271 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401f9000
1271 close(3) = 0
1271 open("/usr/lib/rpm/rpmpopt-4.2", O_RDONLY|O_LARGEFILE) = 3
1271 _llseek(3, 0, [20870], SEEK_END) = 0
1271 _llseek(3, 0, [0], SEEK_SET) = 0
1271 read(3, "#/*! \\page config_rpmpopt Defaul"..., 20870) = 20870
1271 close(3) = 0
1271 brk(0) = 0x806a000
1271 brk(0x806b000) = 0x806b000
1271 brk(0) = 0x806b000
1271 brk(0x806c000) = 0x806c000
1271 brk(0) = 0x806c000
1271 brk(0x806d000) = 0x806d000
1271 open("/etc/popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 getuid32() = 0
1271 geteuid32() = 0
1271 open("/home/rml/.popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 execve("/usr/lib/rpm/rpmq", ["/usr/lib/rpm/rpmq", "-q", "glibc"], [/* 29 vars */]) = 0
1271 uname({sys="Linux", node="phantasy", ...}) = 0
1271 brk(0) = 0x804b000
1271 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
1271 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/etc/ld.so.cache", O_RDONLY) = 3
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=36231, ...}) = 0
1271 old_mmap(NULL, 36231, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
1271 close(3) = 0
1271 open("/usr/lib/librpmbuild-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0Q\0\000"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=142268, ...}) = 0
1271 old_mmap(NULL, 216060, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40020000
1271 old_mmap(0x40041000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x21000) = 0x40041000
1271 old_mmap(0x40043000, 72700, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40043000
1271 close(3) = 0
1271 open("/usr/lib/librpm-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\233"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=298016, ...}) = 0
1271 old_mmap(NULL, 344020, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40055000
1271 old_mmap(0x4009b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x46000) = 0x4009b000
1271 old_mmap(0x4009e000, 45012, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4009e000
1271 close(3) = 0
1271 open("/usr/lib/librpmdb-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300|\1"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=898968, ...}) = 0
1271 old_mmap(NULL, 911744, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400a9000
1271 old_mmap(0x40182000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd8000) = 0x40182000
1271 old_mmap(0x40186000, 6528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40186000
1271 close(3) = 0
1271 open("/usr/lib/librpmio-4.2.so", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\300\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=349912, ...}) = 0
1271 old_mmap(NULL, 384636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40188000
1271 old_mmap(0x401d7000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4f000) = 0x401d7000
1271 old_mmap(0x401de000, 32380, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401de000
1271 close(3) = 0
1271 open("/usr/lib/libpopt.so.0", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\24\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=26896, ...}) = 0
1271 old_mmap(NULL, 29872, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401e6000
1271 old_mmap(0x401ed000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6000) = 0x401ed000
1271 close(3) = 0
1271 open("/usr/lib/libelf.so.1", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\214\33"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=62272, ...}) = 0
1271 old_mmap(NULL, 65164, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401ee000
1271 old_mmap(0x401fd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x401fd000
1271 close(3) = 0
1271 open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320>\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=79744, ...}) = 0
1271 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401fe000
1271 old_mmap(NULL, 50040, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401ff000
1271 old_mmap(0x40209000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa000) = 0x40209000
1271 old_mmap(0x4020a000, 4984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4020a000
1271 close(3) = 0
1271 open("/lib/librt.so.1", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\33"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=37552, ...}) = 0
1271 old_mmap(NULL, 73720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4020c000
1271 old_mmap(0x40212000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x40212000
1271 old_mmap(0x40214000, 40952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40214000
1271 close(3) = 0
1271 open("/usr/lib/libbz2.so.1", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\22\0\000"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=62128, ...}) = 0
1271 old_mmap(NULL, 61008, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4021e000
1271 old_mmap(0x4022c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x4022c000
1271 close(3) = 0
1271 open("/lib/tls/libc.so.6", O_RDONLY) = 3
1271 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`V\1B4\0"..., 512) = 512
1271 fstat64(3, {st_mode=S_IFREG|0755, st_size=1531064, ...}) = 0
1271 old_mmap(0x42000000, 1257224, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000
1271 old_mmap(0x4212e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12e000) = 0x4212e000
1271 old_mmap(0x42131000, 7944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
1271 close(3) = 0
1271 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4022d000
1271 mprotect(0x40188000, 323584, PROT_READ|PROT_WRITE) = 0
1271 mprotect(0x40188000, 323584, PROT_READ|PROT_EXEC) = 0
1271 set_thread_area({entry_number:-1 -> 6, base_addr:0x4022d8c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
1271 munmap(0x40017000, 36231) = 0
1271 set_tid_address(0x4022d908) = 1271
1271 rt_sigaction(SIGRTMIN, {0x40202e30, [], SA_RESTORER, 0x40208618}, NULL, 8) = 0
1271 rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
1271 getrlimit(0x3, 0xbffff924) = 0
1271 brk(0) = 0x804b000
1271 brk(0x804c000) = 0x804c000
1271 brk(0) = 0x804c000
1271 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=30313968, ...}) = 0
1271 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4022e000
1271 close(3) = 0
1271 open("/usr/lib/rpm/rpmpopt-4.2", O_RDONLY|O_LARGEFILE) = 3
1271 _llseek(3, 0, [20870], SEEK_END) = 0
1271 _llseek(3, 0, [0], SEEK_SET) = 0
1271 read(3, "#/*! \\page config_rpmpopt Defaul"..., 20870) = 20870
1271 close(3) = 0
1271 brk(0) = 0x804c000
1271 brk(0x804d000) = 0x804d000
1271 brk(0) = 0x804d000
1271 brk(0x804e000) = 0x804e000
1271 open("/etc/popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 getuid32() = 0
1271 geteuid32() = 0
1271 open("/home/rml/.popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/etc/rpm/platform", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 uname({sys="Linux", node="phantasy", ...}) = 0
1271 rt_sigaction(SIGILL, {0x400887e0, [ILL], SA_RESTORER|SA_RESTART, 0x420275c8}, {SIG_DFL}, 8) = 0
1271 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
1271 open("/usr/lib/rpm/rpmrc", O_RDONLY|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 gettimeofday({1049685359, 231411}, NULL) = 0
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=10193, ...}) = 0
1271 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 231794}, NULL) = 0
1271 read(3, "#/*! \\page config_rpmrc Default "..., 8192) = 8192
1271 gettimeofday({1049685359, 231926}, NULL) = 0
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 232069}, NULL) = 0
1271 read(3, "sv4.2\n\nos_compat: FreeMiNT: mint"..., 8192) = 2001
1271 gettimeofday({1049685359, 232150}, NULL) = 0
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 232278}, NULL) = 0
1271 read(3, "", 6191) = 0
1271 gettimeofday({1049685359, 232346}, NULL) = 0
1271 gettimeofday({1049685359, 232414}, NULL) = 0
1271 close(3) = 0
1271 gettimeofday({1049685359, 232489}, NULL) = 0
1271 gettimeofday({1049685359, 232549}, NULL) = 0
1271 gettimeofday({1049685359, 232583}, NULL) = 0
1271 munmap(0x40017000, 8192) = 0
1271 brk(0) = 0x804e000
1271 brk(0x804f000) = 0x804f000
1271 brk(0) = 0x804f000
1271 brk(0x8050000) = 0x8050000
1271 brk(0) = 0x8050000
1271 brk(0x8051000) = 0x8051000
1271 brk(0) = 0x8051000
1271 brk(0x8052000) = 0x8052000
1271 brk(0) = 0x8052000
1271 brk(0x8053000) = 0x8053000
1271 open("/usr/lib/rpm/redhat/rpmrc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/etc/rpmrc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/home/rml/.rpmrc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/usr/lib/rpm/macros", O_RDONLY|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 gettimeofday({1049685359, 234477}, NULL) = 0
1271 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 234714}, NULL) = 0
1271 read(3, "#/*! \\page config_macros Default"..., 8192) = 8192
1271 gettimeofday({1049685359, 234842}, NULL) = 0
1271 brk(0) = 0x8053000
1271 brk(0x8054000) = 0x8054000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 236325}, NULL) = 0
1271 read(3, "ity with legacy\n#\tversions of rp"..., 8192) = 8192
1271 gettimeofday({1049685359, 236423}, NULL) = 0
1271 brk(0) = 0x8054000
1271 brk(0x8055000) = 0x8055000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 237874}, NULL) = 0
1271 read(3, "================================"..., 8192) = 8192
1271 gettimeofday({1049685359, 237971}, NULL) = 0
1271 brk(0) = 0x8055000
1271 brk(0x8056000) = 0x8056000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 240345}, NULL) = 0
1271 read(3, "\\\n RPM_DOC_DIR=\\\"%{_docdir}\\\"\\\n"..., 8192) = 8192
1271 gettimeofday({1049685359, 240445}, NULL) = 0
1271 brk(0) = 0x8056000
1271 brk(0x8057000) = 0x8057000
1271 brk(0) = 0x8057000
1271 brk(0x8058000) = 0x8058000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 246284}, NULL) = 0
1271 read(3, "LAGS:-%{-s:-s}}\" ; export LDFLA"..., 8192) = 3503
1271 gettimeofday({1049685359, 246369}, NULL) = 0
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 246496}, NULL) = 0
1271 read(3, "", 4689) = 0
1271 gettimeofday({1049685359, 246575}, NULL) = 0
1271 brk(0) = 0x8058000
1271 brk(0x8059000) = 0x8059000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 247422}, NULL) = 0
1271 read(3, "", 8192) = 0
1271 gettimeofday({1049685359, 247489}, NULL) = 0
1271 gettimeofday({1049685359, 247546}, NULL) = 0
1271 close(3) = 0
1271 gettimeofday({1049685359, 247616}, NULL) = 0
1271 gettimeofday({1049685359, 247654}, NULL) = 0
1271 gettimeofday({1049685359, 247687}, NULL) = 0
1271 munmap(0x40017000, 8192) = 0
1271 open("/usr/lib/rpm/i686-linux/macros", O_RDONLY|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 gettimeofday({1049685359, 247883}, NULL) = 0
1271 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 248071}, NULL) = 0
1271 read(3, "# Per-platform rpm configuration"..., 8192) = 2429
1271 gettimeofday({1049685359, 248165}, NULL) = 0
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 248329}, NULL) = 0
1271 read(3, "", 5763) = 0
1271 gettimeofday({1049685359, 248398}, NULL) = 0
1271 brk(0) = 0x8059000
1271 brk(0x805a000) = 0x805a000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 249684}, NULL) = 0
1271 read(3, "", 8192) = 0
1271 gettimeofday({1049685359, 249751}, NULL) = 0
1271 gettimeofday({1049685359, 249789}, NULL) = 0
1271 close(3) = 0
1271 gettimeofday({1049685359, 249857}, NULL) = 0
1271 gettimeofday({1049685359, 249893}, NULL) = 0
1271 gettimeofday({1049685359, 249927}, NULL) = 0
1271 munmap(0x40017000, 8192) = 0
1271 open("/etc/rpm/macros.specspo", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/etc/rpm/macros.prelink", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/etc/rpm/macros.solve", O_RDONLY|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 gettimeofday({1049685359, 250203}, NULL) = 0
1271 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 250386}, NULL) = 0
1271 read(3, "#\tThe path to the dependency uni"..., 8192) = 768
1271 gettimeofday({1049685359, 250473}, NULL) = 0
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 250616}, NULL) = 0
1271 read(3, "", 7424) = 0
1271 gettimeofday({1049685359, 250683}, NULL) = 0
1271 select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {1, 0})
1271 gettimeofday({1049685359, 251131}, NULL) = 0
1271 read(3, "", 8192) = 0
1271 gettimeofday({1049685359, 251198}, NULL) = 0
1271 gettimeofday({1049685359, 251236}, NULL) = 0
1271 close(3) = 0
1271 gettimeofday({1049685359, 251302}, NULL) = 0
1271 gettimeofday({1049685359, 251338}, NULL) = 0
1271 gettimeofday({1049685359, 251371}, NULL) = 0
1271 munmap(0x40017000, 8192) = 0
1271 open("/etc/rpm/macros.up2date", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/etc/rpm/macros", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/etc/rpm/i686-linux/macros", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 open("/home/rml/.rpmmacros", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 time(NULL) = 1049685359
1271 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
1271 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
1271 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
1271 rt_sigaction(SIGHUP, {0x400ca860, [], SA_RESTORER, 0x40208618}, {SIG_DFL}, 8) = 0
1271 rt_sigaction(SIGINT, {0x400ca860, [], SA_RESTORER, 0x40208618}, {SIG_DFL}, 8) = 0
1271 rt_sigaction(SIGTERM, {0x400ca860, [], SA_RESTORER, 0x40208618}, {SIG_DFL}, 8) = 0
1271 rt_sigaction(SIGQUIT, {0x400ca860, [], SA_RESTORER, 0x40208618}, {SIG_DFL}, 8) = 0
1271 rt_sigaction(SIGPIPE, {0x400ca860, [], SA_RESTORER, 0x40208618}, {SIG_DFL}, 8) = 0
1271 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
1271 getgid32() = 0
1271 getuid32() = 0
1271 stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1271 stat64("/var/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1271 stat64("/var/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1271 stat64("/var/lib/rpm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1271 access("/var/lib/rpm", W_OK) = 0
1271 access("/var/lib/rpm/__db.001", F_OK) = 0
1271 access("/var/lib/rpm/Packages", F_OK) = 0
1271 open("/usr/share/locale/locale.alias", O_RDONLY) = 3
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
1271 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
1271 read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
1271 read(3, "", 4096) = 0
1271 close(3) = 0
1271 munmap(0x40017000, 4096) = 0
1271 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en_US.utf8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en_US/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en.utf8/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en/LC_MESSAGES/rpm.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 brk(0) = 0x805a000
1271 brk(0x805b000) = 0x805b000
1271 stat64("/var/lib/rpm/DB_CONFIG", 0xbfffe490) = -1 ENOENT (No such file or directory)
1271 open("/var/lib/rpm/DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1271 stat64("/var/lib/rpm/__db.001", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 open("/var/lib/rpm/__db.001", O_RDWR|O_DIRECT|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 close(3) = 0
1271 select(0, NULL, NULL, NULL, {3, 0}) = 0 (Timeout)
1271 stat64("/var/lib/rpm/__db.001", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 open("/var/lib/rpm/__db.001", O_RDWR|O_DIRECT|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 close(3) = 0
1271 select(0, NULL, NULL, NULL, {6, 0}) = 0 (Timeout)
1271 stat64("/var/lib/rpm/__db.001", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 open("/var/lib/rpm/__db.001", O_RDWR|O_DIRECT|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 close(3) = 0
1271 select(0, NULL, NULL, NULL, {9, 0}) = 0 (Timeout)
1271 stat64("/var/lib/rpm/__db.001", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 open("/var/lib/rpm/__db.001", O_RDWR|O_DIRECT|O_LARGEFILE) = 3
1271 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
1271 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1271 close(3) = 0
1271 write(2, "rpmdb: ", 7) = 7
1271 write(2, "unable to join the environment", 30) = 30
1271 write(2, "\n", 1) = 1
1271 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
1271 brk(0) = 0x805b000
1271 brk(0x805d000) = 0x805d000
1271 write(2, "error: ", 7) = 7
1271 write(2, "db4 error(11) from dbenv->open: "..., 65) = 65
1271 write(2, "error: ", 7) = 7
1271 write(2, "cannot open Packages index using"..., 77) = 77
1271 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
1271 rt_sigaction(SIGHUP, {SIG_DFL}, NULL, 8) = 0
1271 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
1271 rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
1271 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
1271 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
1271 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
1271 write(2, "error: ", 7) = 7
1271 write(2, "cannot open Packages database in"..., 46) = 46
1271 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
1271 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
1271 write(1, "package glibc is not installed\n", 31) = 31
1271 munmap(0x40017000, 4096) = 0
1271 exit_group(1) = ?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 3:15 ` Robert Love
2003-04-07 3:19 ` Robert Love
@ 2003-04-07 3:29 ` Andrew Morton
2003-04-07 3:35 ` Robert Love
1 sibling, 1 reply; 18+ messages in thread
From: Andrew Morton @ 2003-04-07 3:29 UTC (permalink / raw)
To: Robert Love; +Cc: rpjday, linux-kernel
Robert Love <rml@tech9.net> wrote:
>
>
> Backing out this patch (from a kernel roughly similar to 2.5.66-mm3)
> does not resolve the problem:
>
> [23:08:36]root@phantasy:~# rpm -q glibc
> 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 glibc is not installed
>
> [23:10:57]root@phantasy:~# LD_ASSUME_KERNEL=2.2.5 rpm -q glibc
> glibc-2.3.2-11.9
>
> If I boot a kernel without NPTL the problem goes away. The problem also
> does not exist in Red Hat 9's 2.4 kernel (which has NPTL).
But that's a different error. Robert (Day) reported:
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
but then again, there's no way in which the patch which we're discussing
could cause EAGAIN.
Has anyone straced a failing rpm command?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 3:29 ` Andrew Morton
@ 2003-04-07 3:35 ` Robert Love
0 siblings, 0 replies; 18+ messages in thread
From: Robert Love @ 2003-04-07 3:35 UTC (permalink / raw)
To: Andrew Morton; +Cc: rpjday, linux-kernel
On Sun, 2003-04-06 at 23:29, Andrew Morton wrote:
> But that's a different error. Robert (Day) reported:
>
> 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
>
> but then again, there's no way in which the patch which we're discussing
> could cause EAGAIN.
Oh, sorry for not mentioning. I see both... I think it depends whether a
previous error left a stale lock around. Its the same problem, trust
me.
> Has anyone straced a failing rpm command?
I sent one out...
Robert Love
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:18 2.5.66-bk12 causes "rpm" errors Robert P. J. Day
2003-04-07 1:32 ` Andrew Morton
@ 2003-04-07 9:05 ` Felipe Alfaro Solana
1 sibling, 0 replies; 18+ messages in thread
From: Felipe Alfaro Solana @ 2003-04-07 9:05 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux kernel mailing list
On Mon, 2003-04-07 at 03:18, Robert P. J. Day wrote:
> got 2.5.66-bk12 to boot on my inspiron 8100, and ran
> "rpm -q iptables", got the following:
Are you using RH9? Are you using rpm 4.2-0.69? If so, it's a know
problem. You should downgrade to 4.2-0.66.
________________________________________________________________________
Linux Registered User #287198
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:47 ` Robert Love
@ 2003-04-07 11:45 ` Alan Cox
2003-04-07 14:53 ` Robert Love
0 siblings, 1 reply; 18+ messages in thread
From: Alan Cox @ 2003-04-07 11:45 UTC (permalink / raw)
To: Robert Love; +Cc: Andrew Morton, Robert P. J. Day, Linux Kernel Mailing List
On Llu, 2003-04-07 at 02:47, Robert Love wrote:
> On Sun, 2003-04-06 at 21:41, Robert Love wrote:
>
> > I have not yet tracked down what in 2.5 is broken, but Red Hat's kernel
> > obviously does not have this flaw.
>
> I should clarify this.
>
> I do not know if the flaw is in 2.5. It might be a behavior of Red
> Hat's kernel which rpm(8) assumes.
I've forwarded the report to the RH RPM maintainer to look into. I know
the non NPTL cases are ok because I never run Red Hat kernels except in
the install process. If there are subtle NPTL differences anything is of
course possible
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 1:41 ` Robert Love
2003-04-07 1:47 ` Robert Love
2003-04-07 1:49 ` Robert Love
@ 2003-04-07 12:07 ` Robert P. J. Day
2 siblings, 0 replies; 18+ messages in thread
From: Robert P. J. Day @ 2003-04-07 12:07 UTC (permalink / raw)
To: Robert Love; +Cc: Andrew Morton, linux-kernel
On 6 Apr 2003, Robert Love wrote:
> On Sun, 2003-04-06 at 21:32, Andrew Morton wrote:
>
> > Does it work OK with earlier 2.5 kernels?
> >
> > The only change which comes to mind is the below one. Could you do a
> > patch -R of this and retest?
>
> This has been happening since 2.5.60-ish.
>
> It is NPTL-related. Mr. Day, doing this:
>
> LD_ASSUME_KERNEL=2.2.5 rpm <...>
>
> should "fix" the problem.
ok, based on messing around this morning with this, here's what
i've found.
(first, apologies to andrew morton; when i said his patch applied
on top of bk12, i was just confused. it's a "battle tactic". :-)
all of this is based on my RH 9 (shrike) box, running on a dell
inspiron 8100.
first, the rpm flaw exists using all three variations of the
kernel i tested:
2.5.66
2.5.66-bk12
2.5.66-bk12-mm (bk12 minus andrew's filemap patch)
the interesting part is that doing something simple like "rpm -q rpm"
works for a non-root user; it fails only when root tries it, even
though the operation is only a query. go figure.
next, backing out from rpm-4.2-0.69 to rpm-4.2-0.66 didn't seem to
fix the problem (at least, not for me -- a previous poster claimed
that it fixed it for him, but it didn't solve the problem here).
finally, using:
LD_ASSUME_KERNEL=2.2.5 rpm -q rpm
solves the problem (at least under the 2.5.66-bk12-mm kernel i'm
running at the moment -- i'll assume it does the same under the
others).
take whatever you can get from this.
rday
p.s. more 2.5.66-bk12 oddities coming up shortly
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 14:53 ` Robert Love
@ 2003-04-07 14:17 ` Alan Cox
0 siblings, 0 replies; 18+ messages in thread
From: Alan Cox @ 2003-04-07 14:17 UTC (permalink / raw)
To: Robert Love; +Cc: Andrew Morton, Robert P. J. Day, Linux Kernel Mailing List
On Llu, 2003-04-07 at 15:53, Robert Love wrote:
> On Mon, 2003-04-07 at 07:45, Alan Cox wrote:
>
> > I've forwarded the report to the RH RPM maintainer to look into. I know
> > the non NPTL cases are ok because I never run Red Hat kernels except in
> > the install process. If there are subtle NPTL differences anything is of
> > course possible
>
> Someone reported it was an issue with O_DIRECT, which I guess is also
> possible.
Confirmed by RH people. Its a problem with how rpm misuses O_DIRECT. When
non NPTL is in use the problem doesn't occur. So its an RPM bug, problems
to redhat not Linus 8)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
2003-04-07 11:45 ` Alan Cox
@ 2003-04-07 14:53 ` Robert Love
2003-04-07 14:17 ` Alan Cox
0 siblings, 1 reply; 18+ messages in thread
From: Robert Love @ 2003-04-07 14:53 UTC (permalink / raw)
To: Alan Cox; +Cc: Andrew Morton, Robert P. J. Day, Linux Kernel Mailing List
On Mon, 2003-04-07 at 07:45, Alan Cox wrote:
> I've forwarded the report to the RH RPM maintainer to look into. I know
> the non NPTL cases are ok because I never run Red Hat kernels except in
> the install process. If there are subtle NPTL differences anything is of
> course possible
Someone reported it was an issue with O_DIRECT, which I guess is also
possible.
Whatever it is, forcing the kernel to 2.2.5 in glibc fixes it. It is
also fine in the RH kernel.
Thanks for forwarded the issue onward.
Robert Love
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.5.66-bk12 causes "rpm" errors
@ 2004-04-20 8:10 Fred Shaul
0 siblings, 0 replies; 18+ messages in thread
From: Fred Shaul @ 2004-04-20 8:10 UTC (permalink / raw)
To: linux-kernel; +Cc: info
Wow, I just got this to happen with Fedora Core 1!
# uname -a
Linux bilbo.scalix.local 2.4.22-1.2115.nptl #1
Wed Oct 29 15:42:51 EST 2003 i686 i686 i386 GNU/Linux
Error I was having ...
# 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
Now it works when the following is done!!!!!
# rm /var/lib/rpm/__*
# export LD_ASSUME_KERNEL=2.2.5
# rpm -q rpm
rpm-4.2.1-0.30
Please cc any replies to me
- Fred Shaul
zap technologies
http://zaptech.com/
On 6 Apr 2003, Robert Love wrote:
> ok, based on messing around this morning with this, here's what i've
> found.
>
> (first, apologies to andrew morton; when i said his patch applied on
> top of bk12, i was just confused. it's a "battle tactic". :-)
>
> all of this is based on my RH 9 (shrike) box, running on a dell
> inspiron 8100.
>
> first, the rpm flaw exists using all three variations of the kernel i
> tested:
>
> 2.5.66
> 2.5.66-bk12
> 2.5.66-bk12-mm (bk12 minus andrew's filemap patch)
>
> the interesting part is that doing something simple like "rpm -q rpm"
> works for a non-root user; it fails only when root tries it, even
> though the operation is only a query. go figure.
>
> next, backing out from rpm-4.2-0.69 to rpm-4.2-0.66 didn't seem to
> fix the problem (at least, not for me -- a previous poster claimed
> that it fixed it for him, but it didn't solve the problem here).
>
> finally, using:
>
> LD_ASSUME_KERNEL=2.2.5 rpm -q rpm
>
> solves the problem (at least under the 2.5.66-bk12-mm kernel i'm
> running at the moment -- i'll assume it does the same under the
> others).
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2004-04-20 8:09 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07 1:18 2.5.66-bk12 causes "rpm" errors Robert P. J. Day
2003-04-07 1:32 ` Andrew Morton
2003-04-07 1:41 ` Robert Love
2003-04-07 1:47 ` Robert Love
2003-04-07 11:45 ` Alan Cox
2003-04-07 14:53 ` Robert Love
2003-04-07 14:17 ` Alan Cox
2003-04-07 1:49 ` Robert Love
2003-04-07 2:59 ` J Sloan
2003-04-07 12:07 ` Robert P. J. Day
2003-04-07 2:04 ` Robert P. J. Day
2003-04-07 1:28 ` Andrew Morton
2003-04-07 3:15 ` Robert Love
2003-04-07 3:19 ` Robert Love
2003-04-07 3:29 ` Andrew Morton
2003-04-07 3:35 ` Robert Love
2003-04-07 9:05 ` Felipe Alfaro Solana
-- strict thread matches above, loose matches on Subject: below --
2004-04-20 8:10 Fred Shaul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox