[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to remove the second public key?



Axel Thimm wrote:

On Sun, Sep 14, 2003 at 03:19:37PM +1000, Alex Kruchkoff wrote:


rpm -qa gpg-pubkey*
error: rpmdbNextIterator: skipping h# 1351 Header V3 DSA signature: BAD, key ID db42a60e
Segmentation fault
[...]
Any ideas on how to fix my rpm?



I think your problem might not be directly related to signatures, it looks like your rpm database needs fixing (i.e. the signature error is not the cause, but probably the symptom). Have a look at

http://www.rpm.org/hintskinks/repairdb/

Tell us, if this fixed the issue. If it doesn't I'd suggest to remove
all signatures from rpm to eliminate that cause. There had been
problems with rpm and some kind of signatures in the past, but not
with atrpms or Red Hat signatures.

There have been similar reports on google with no definite answer
(some blame rpm, other gnupg):

http://www.google.com/search?q=%22Segmentation+fault%22+%22error%3A+rpmdbNextIterator%3A+skipping%22


Thanks, Axel.

1. rebuilddb is the 1st thing I tried (before posting my problem). I just run strace on it - it died with

open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=34349056, ...}) = 0
pread(5, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 4096, 0) = 4096
rt_sigprocmask(SIG_BLOCK, ~[], [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
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) = 0
access("/var/lib/rpm/__db.001", F_OK) = -1 ENOENT (No such file or directory)
access("/var/lib/rpm/Pubkeys", F_OK) = 0
brk(0) = 0x806b000
brk(0x806d000) = 0x806d000
write(2, "D: ", 3D: ) = 3
write(2, "opening db index /var/lib"..., 61opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
) = 61
stat64("/var/lib/rpm/Pubkeys", {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0
open("/var/lib/rpm/Pubkeys", O_RDONLY|O_LARGEFILE) = 6
fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
read(6, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 512) = 512
close(6) = 0
open("/var/lib/rpm/Pubkeys", O_RDONLY|O_LARGEFILE) = 6
fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0
pread(6, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"..., 4096, 0) = 4096
pread(6, "\0\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\4\0\324\17\0\2"..., 4096, 4096) = 4096
brk(0) = 0x806d000
brk(0x806e000) = 0x806e000
pread(5, "\0\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\n\0012\7\0\2\373"..., 4096, 4096) = 4096
brk(0) = 0x806e000
brk(0x806f000) = 0x806f000
pread(5, "\0\0\0\0\1\0\0\0\305\36\0\0\0\0\0\0\0\0\0\0\1\0p\16\0\7"..., 4096, 32264192) = 4096
brk(0) = 0x806f000
brk(0x8070000) = 0x8070000
brk(0) = 0x8070000
brk(0x8071000) = 0x8071000
write(2, "error: ", 7error: ) = 7
write(2, "rpmdbNextIterator: skipping h# "..., 85rpmdbNextIterator: skipping h# 1351 Header V3 DSA signature: BAD, key ID db42a60e
) = 85
pread(5, "\0\0\0\0\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\10\1<\7\0\2\373"..., 4096, 8192) = 4096
pread(5, "\0\0\0\0\1\0\0\0\274\5\0\0\0\0\0\0\0\0\0\0\1\0\230\16\0"..., 4096, 6012928) = 4096
brk(0) = 0x8071000
brk(0x8072000) = 0x8072000
write(2, "D: ", 3D: ) = 3
write(2, " read h# 1356 Header sanity c"..., 41 read h# 1356 Header sanity check: OK
) = 41
rt_sigprocmask(SIG_BLOCK, ~[], [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
write(2, "D: ", 3D: ) = 3
write(2, "========== ??? pubkey id 90100a4"..., 42========== ??? pubkey id 90100a4040d10940
) = 42
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


2. I backed up my /var/lib/rpm; dumped and restored Packages. Then I run

rpm -qa
error: rpmdbNextIterator: skipping h# 1351 Header V3 DSA signature: BAD, key ID db42a60e


the same with --nosignature runs ok, but I have 2 err msgs:

error: rpmdbNextIterator: skipping h# 128 blob size(3768): BAD, 8 + 16 * il(17) + dl(3456)
error: rpmdbNextIterator: skipping h# 117 blob size(3192): BAD, 8 + 16 * il(17) + dl(3456)


and another attempt to rebuilddb:

sudo rpm -vv --rebuilddb
Password:
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.14250
D: creating directory /var/lib/rpmrebuilddb.14250
D: opening old database with dbapi 3
D: unshared posix mutexes found(38), adding DB_PRIVATE, using fcntl lock
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool:private
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: unshared posix mutexes found(38), adding DB_PRIVATE, using fcntl lock
D: opening db environment /var/lib/rpmrebuilddb.14250/Packages create:mpool:private
D: opening db index /var/lib/rpmrebuilddb.14250/Packages create mode=0x42
D: unshared posix mutexes found(38), adding DB_PRIVATE, using fcntl lock
D: opening db environment /var/lib/rpm/Packages create:mpool:private
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
error: rpmdbNextIterator: skipping h# 1351 Header V3 DSA signature: BAD, key ID db42a60e
D: read h# 1356 Header sanity check: OK
D: ========== ??? pubkey id 90100a4040d10940
Segmentation fault


And below are all my signatures:

rpm --nosignature -qa gpg\*
error: rpmdbNextIterator: skipping h# 128 blob size(3768): BAD, 8 + 16 * il(17) + dl(3456)
gpg-pubkey-66534c2b-3e60b428
gpg-pubkey-72de25fe-3b79e9fe
gpg-pubkey-db42a60e-37ea5438
gpg-pubkey-c431416d-3db4c821
error: rpmdbNextIterator: skipping h# 117 blob size(3192): BAD, 8 + 16 * il(17) + dl(3456)
gpg-pubkey-66534c2b-3e60b428
gpg-pubkey-897da07a-3c979a7f


And I don't see freshrpms, newrpms or Dag's signature there.
Should I remove all these signatures? or?
Any ideas, hints?

Thanks in advance,
Alex Kruchkoff





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]