RPM Community Forums

Mailing List Message of <rpm-devel>

key import hang?

From: Jason Corley <jason.corley@gmail.com>
Date: Mon 15 Oct 2007 - 16:17:55 CEST
Message-ID: <3118d8de0710150717sc27bf1fs5bf6e7c36711e35a@mail.gmail.com>
New devtool build this morning seems to hang on key import.  The last
thing I see in the standalone_testdrive log is:

++ /usr/local/bin/rpm -vv --import ./pubkeys/JBJ-GPG-KEY
D: opening  db environment /usr/local/var/rpm/db/Packages cdb:mpool
D: opening  db index       /usr/local/var/rpm/db/Packages create mode=0x202
D: locked   db index       /usr/local/var/rpm/db/Packages
D: opening  db index       /usr/local/var/rpm/db/Name create mode=0x202
D: adding "gpg-pubkey" to Name index.

Attaching gdb to the running rpm process shows this backtrace (snipped output):

$ gdb rpm 17308
0x000713c4 in headerGetExtension (h=0xb12320, tag=1016,
type=0xbfffeb24, p=0xbfffeb20, c=0xbfffeb1c) at header.c:1884
1884            nb = strlen(he_p.str) + 1;
(gdb) bt
#0  0x000713c4 in headerGetExtension (h=0xb12320, tag=1016,
type=0xbfffeb24, p=0xbfffeb20, c=0xbfffeb1c) at header.c:1884
#1  0x0007ab66 in headerGetExtension (h=0xb12320, tag=1016,
type=0xbfffeb24, p=0xbfffeb20, c=0xbfffeb1c) at ./hdrinline.h:272
#2  0x00080a64 in rpmdbAdd (db=0xb113b0, iid=1192456732, h=0xb12320,
ts=0x0) at rpmdb.c:3339
#3  0x0003d8ef in rpmcliImportPubkey (ts=<incomplete type>,
pkt=0x2001000 "\001?\004=??r\021\004", pktlen=899) at
rpmchecksig.c:580
#4  0x0003dba4 in rpmcliImportPubkeys (ts=0x2003000, qva=0x436dd0,
argv=0xb002f4) at rpmchecksig.c:658
#5  0x0003f55d in rpmcliSign (ts=0x2003000, qva=0x436dd0,
argv=0xb002f0) at rpmchecksig.c:1167
#6  0x00004780 in main (argc=4, argv=0xbfffef4c, envp=0xbfffef60) at
./rpmqv.c:768
(gdb)

Anything else I can do to help diagnose?  I can leave gdb and the
process running (it doesn't seem to be impacting performance at this
point).

Jason
Received on Mon Oct 15 16:17:58 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.