public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Shawn <core@enodev.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@digeo.com>
Subject: Re: odd db4 error with 2.5.69-mm4 [was Re: Huraaa for 2.5]
Date: Tue, 13 May 2003 19:18:26 -0700	[thread overview]
Message-ID: <20030514021826.GI8978@holomorphy.com> (raw)
In-Reply-To: <1052877161.3569.17.camel@www.enodev.com>

On Tue, May 13, 2003 at 08:52:41PM -0500, Shawn wrote:
> execve("/bin/rpm", ["rpm", "-qi", "iptables"], [/* 32 vars */]) = 0
> uname({sys="Linux", node="www.enodev.com", ...}) = 0
> brk(0)                                  = 0x8069000
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=82290, ...}) = 0
[...]


okay, the first thing I see is:

-getgid32()                              = 500
-getuid32()                              = 500
+getgid32()                              = 0
+getuid32()                              = 0
 stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 stat64("/var/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 stat64("/var/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
 stat64("/var/lib/rpm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
-access("/var/lib/rpm", W_OK)            = -1 EACCES (Permission denied)
+access("/var/lib/rpm", W_OK)            = 0
+access("/var/lib/rpm/__db.001", F_OK)   = 0
+access("/var/lib/rpm/Packages", F_OK)   = 0

They appear to either not be running in equivalent environments or
something has gone horribly wrong. The diff is incredibly noisy and not
useful for debugging, could you strace the working kernel's bit as root?

Also, things start getting wildly different after both examine DB_CONFIG,
where 2.4 and 2.5 open different files with different options, i.e. 2.5
does O_DIRECT on /var/lib/rpm/__db.001 and 2.4 never touches that file,
and 2.4 never does O_DIRECT either.

This may very well have something to do with the difference in
privileges.


-- wli

  parent reply	other threads:[~2003-05-14  2:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13 22:54 Huraaa for 2.5 Shawn
2003-05-14  1:27 ` William Lee Irwin III
2003-05-14  1:52   ` odd db4 error with 2.5.69-mm4 [was Re: Huraaa for 2.5] Shawn
2003-05-14  2:01     ` William Lee Irwin III
2003-05-14  2:06     ` Andrew Morton
2003-05-14  2:05       ` Shawn
2003-05-14  2:18     ` William Lee Irwin III [this message]
2003-05-14  2:24       ` Shawn
2003-05-14  2:27         ` William Lee Irwin III
2003-05-14  2:32     ` J Sloan
2003-05-14  2:47       ` Shawn
2003-05-14  2:51         ` Shawn
2003-05-14  3:24         ` J Sloan
2003-05-14  7:38     ` Matti Aarnio
2003-05-14 12:49     ` Tom Sightler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030514021826.GI8978@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@digeo.com \
    --cc=core@enodev.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox