gnupg2-1.9.91 build failure (fedora core/x86_64)

Rex Dieter rdieter at math.unl.edu
Tue Oct 10 17:54:38 CEST 2006


Werner Koch wrote:

> On Tue, 10 Oct 2006 16:04, Rex Dieter said:
> 
>> Any further debugging that I can do (now that I actually have an x86_64
>> box to test with)?
> 
> Yes:
> 
> cd /builddir/build/BUILD/gnupg-1.9.91/tests/openpgp
> gdb ../../g10/gpg2
> 
> run  --homedir . --quiet --yes --no-permission-warning --import
> ./pubdemo.asc
> 
> and after the crash, do a "bt full".

mock-chroot> gdb ../../g10/gpg2
GNU gdb Red Hat Linux (6.5-8.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
libthread_db library "/lib64/libthread_db.so.1".

(gdb)
run  --homedir . --quiet --yes --no-permission-warning --import ./pubdemo.asc
Starting
program: /builddir/build/BUILD/gnupg-1.9.91/g10/gpg2 --homedir . --quiet --yes --no-permission-warning --import ./pubdemo.asc
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!

Program received signal SIGSEGV, Segmentation fault.
parse_key (inp=0x6a38e0, pkttype=<value optimized out>, pktlen=412,
hdr=<value optimized out>, hdrlen=<value optimized out>,
    pkt=<value optimized out>) at parse-packet.c:1956
1956                n = pktlen; pk->pkey[i] = mpi_read(inp, &n, 0 );
pktlen -=n;
(gdb) bt full
#0  parse_key (inp=0x6a38e0, pkttype=<value optimized out>, pktlen=412,
hdr=<value optimized out>, hdrlen=<value optimized out>,
    pkt=<value optimized out>) at parse-packet.c:1956
        pk = <value optimized out>
        i = 0
        version = <value optimized out>
        algorithm = <value optimized out>
        n = 130
        timestamp = <value optimized out>
        expiredate = <value optimized out>
        npkey = 4
        nskey = 5
        is_v4 = 1
        rc = 0
#1  0x0000000000426d7f in parse (inp=0x6a38e0, pkt=0x6a7b10, onlykeypkts=0,
retpos=<value optimized out>, skip=0x7fbffff43c, out=0x0, do_skip=0,
    dbg_w=0x47cfb2 "parse", dbg_f=0x4855bd "import.c", dbg_l=375) at
parse-packet.c:535
        rc = <value optimized out>
        c = <value optimized out>
        ctb = <value optimized out>
        pkttype = 6
        lenbytes = 2
        pktlen = <value optimized out>
        hdr = "\231\001\177\000\000"
        hdrlen = 3
        new_ctb = 0
        partial = 0
        __PRETTY_FUNCTION__ = "parse"
#2  0x0000000000427e6e in dbg_parse_packet (inp=0x6a38e0, pkt=0x6a7b10,
dbg_f=0x4855bd "import.c", dbg_l=375) at parse-packet.c:212
        skip = 0
        rc = 6978944
#3  0x0000000000448738 in import (inp=0x6a38e0,
fname=0x7fbfffff35 "./pubdemo.asc", stats=0x6a3850, fpr=0x0, fpr_len=0x0,
options=8) at import.c:375
        afx = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        pending_pkt = (PACKET *) 0x6a7b10
        keyblock = (KBNODE) 0x0
        rc = 0
#4  0x0000000000449486 in import_keys_internal (inp=<value optimized out>,
fnames=0x7fbffffd70, nnames=1, stats_handle=0x0, fpr=0x0, fpr_len=0x0,
    options=8) at import.c:198
        fname = 0x7fbfffff35 "./pubdemo.asc"
        inp2 = (IOBUF) 0x6a38e0
        i = 0
        rc = 0
        stats = (struct stats_s *) 0x6a3850
#5  0x000000000044957c in import_keys (fnames=0x6a7cf0, nnames=-1073745284,
stats_handle=0x0, options=<value optimized out>) at import.c:231
No locals.
#6  0x000000000040b720 in main (argc=dwarf2_read_address: Corrupted DWARF
expression.
) at gpg.c:3456
        cmdname = 0x1 <Address 0x1 out of bounds>
        pargs = dwarf2_read_address: Corrupted DWARF expression.




More information about the Gnupg-devel mailing list