gpgsm crashes on checking detached signature

Albrecht Dreß albrecht.dress at arcor.de
Fri Dec 19 11:22:24 CET 2003


Am 19.12.03 09:12 schrieb(en) Werner Koch:
> Please do an "ldd gpgsm" to check whetehr the corrcet libraries are
> used.

[albrecht]$ ldd `which gpgsm`
        libgcrypt.so.7 => /usr/local/lib/libgcrypt.so.7 (0x0ff8d000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x0ff69000)
        libksba.so.8 => /usr/local/lib/libksba.so.8 (0x0ff1a000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0feeb000)
        libc.so.6 => /lib/libc.so.6 (0x0fd8b000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x0fd55000)
        /lib/ld.so.1 => /lib/ld.so.1 (0x30000000)

Afaict, this looks pretty normal to me (note that I created libgpg-error  
rpm's as I use them with gpgme, so it lives in the normal place. But, yes,  
it's 0.6!). So I'm not sure if it's really a linker problem.

> BTW, using "bt full" in gdb yields better information.

O.k., see the full dump below.

Thanks, Albrecht.

~~~~snip here~~~~~~~~snip here~~~~~~~~snip here~~~~~~~~snip here~~~~
[albrecht at antares albrecht]$ gdb gpgsm
GNU gdb Yellow Dog Linux (5.2.1-4b)
Copyright 2002 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 "ppc-yellowdog-linux"...
(gdb) run --verify smime.p7s Using-SMIME.ps
Starting program: /usr/local/bin/gpgsm --verify smime.p7s Using-SMIME.ps
Secure memory is not locked into core
gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
gpgsm: It is only intended for test purposes and should NOT be
gpgsm: used in a production environment or with production keys!

Program received signal SIGSEGV, Segmentation fault.
gcry_md_info (h=0x0, cmd=35, buffer=0x2, nbytes=0x0) at md.c:1163
1163                *nbytes = 0;
(gdb) bt full
#0  gcry_md_info (h=0x0, cmd=35, buffer=0x2, nbytes=0x0) at md.c:1163
        r = (GcryDigestEntry *) 0x0
        algo = 2
        err = GPG_ERR_NO_ERROR
#1  0x1001464c in gpgsm_verify (ctrl=0x7ffff608, in_fd=0, data_fd=0,  
out_fp=0x0) at verify.c:293
        i = 0
        rc = 268632064
        b64reader = 0x20746869
        b64writer = 0x67652920
        err = 0
        reader = 0x73205061
        writer = 0x73686f77
        cms = 0xa302e30
        stopreason = 808460336
        cert = 0x10042468
        kh = 0x10041c08
        data_md = 0x3020302e
        signer = 0
        algoid = 0x0
        algo = 0
        is_detached = 1
        fp = (FILE *) 0x10041df8
        p = 0x10030000 <Address 0x10030000 out of bounds>
#2  0x100057ec in main (argc=537538606, argv=0x30302030) at gpgsm.c:1212
        pargs = {argc = 0x0, argv = 0xffee7d0, flags = 268518988, err = 0,  
r_opt = 268632064, r_type = 0, r = {
    ret_int = 2147481024, ret_long = 2147481024, ret_ulong = 2147481024,  
ret_str = 0x7ffff5c0 "\177ÿöà\020"}, internal = {
    idx = 268518948, inarg = 842018867, stopped = 825372984, last =  
0x54313735 <Address 0x54313735 out of bounds>,
    aliases = 0x38343200, cur_alias = 0x70617468}}
        orig_argc = 2147481160
        orig_argv = (char **) 0x7ffff744
        may_coredump = 0
        sl = 0xa353030
        remusr = 0x20736574
        locusr = 0x72676263
        nrings = 0x302e3030
        detached_sig = 0
        configfp = (FILE *) 0x0
        configname = 0x10040000 "9`"
        configlineno = 1635085428
        parse_debug = 268704216
        no_more_options = 2147481164
        default_config = 5
        default_keyring = 268632064
        logfile = 0x0
        greeting = 268697600
        nogreeting = 268632064
        debug_wait = 0
        use_random_seed = 775495789
        with_fpr = 1870030196
        def_digest_string = 0x0
        cmd = 774909984
        ctrl = {no_server = 1836021349, status_fd = 1953434163,  
server_local = 0x39203020, with_colons = 1919707502,
  with_chain = 1702129440, autodetect_encoding = 807415089, is_pem =  
544369769, is_base64 = 1852142703,
  create_base64 = 539833145, create_pem = 540024946, pem_name = 0x6c696e65  
<Address 0x6c696e65 out of bounds>,
  include_certs = 1953439776}
        recplist = 0x37206630
        signerlist = 0x5f6c730a
        cmd = 268701160
        cmd = 268701160
        cmd = 268701160
#3  0x0fda704c in __libc_start_main (argc=603980930, ubp_av=0x10040000,  
ubp_ev=0x2, auxvec=0x10040de8, rtld_fini=0,
    stinfo=0x7ffff64c, stack_on_entry=0xffee7d0) at ../sysdeps/powerpc/ 
elf/libc-start.c:178
No locals.
~~~~snip here~~~~~~~~snip here~~~~~~~~snip here~~~~~~~~snip here~~~~


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
       Phone (+49) 228 6199571  -  mailto:albrecht.dress at arcor.de
_________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20031219/4a5f0ecf/attachment.bin


More information about the Gnupg-devel mailing list