libgcrypt v1.2.0 bug on SMP AMD64

Joseph S. Testa II jst3290 at ritvax.isc.rit.edu
Sun Oct 3 18:45:45 CEST 2004


libgcrypt v1.2.0 did this when I compiled and ran my test
prog on an SMP AMD64 box.  It is reproducible 100% of the time:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182894117696 (LWP 4042)]
0x00000037c7f127ff in md_write (a=0x510f60, inbuf=0x7fbfffee70 "(1:p129:",
     inlen=8) at md.c:716
716     md.c: No such file or directory.
         in md.c
(gdb) bt
#0  0x00000037c7f127ff in md_write (a=0x510f60, inbuf=0x7fbfffee70 
"(1:p129:",
     inlen=8) at md.c:716
#1  0x00000037c7f0fd44 in gcry_pk_get_keygrip (key=0x37c7f3ef2b,
     array=0x7fbfffeee0 "") at pubkey.c:2142
#2  0x0000000000409892 in get_key_fingerprint_from_sexp (key=0x7fbfffeed0,
     buffer=0x7fbffff080 "", buffer_len=120) at my_prog.c:3186
[...]
(gdb) bt full
#0  0x00000037c7f127ff in md_write (a=0x510f60, inbuf=0x7fbfffee70 
"(1:p129:",
     inlen=8) at md.c:716
         r = (GcryDigestEntry *) 0x512550
#1  0x00000037c7f0fd44 in gcry_pk_get_keygrip (key=0x37c7f3ef2b,
     array=0x7fbfffeee0 "") at pubkey.c:2142
         buf = "(1:p129:\000\237@\0170\000\000\000\177\000\000\000 \177"
         list = 0x512300
         l2 = 0x5124d0
         pubkey = (gcry_pk_spec_t *) 0x8
         module = 0x5124d8
         s = 0x37c7f3ef2b "pqgy"
         name = 0x5124d8 ""
         n = 3
         is_rsa = 0
         elems = 0x37c7f3ef2b "pqgy"
         md = 0x510f60
#2  0x0000000000409892 in get_key_fingerprint_from_sexp (key=0x7fbfffeed0,
     buffer=0x7fbffff080 "", buffer_len=120) at myprog.c:3186
         i = 0
         temp = '\0' <repeats 63 times>
         hex = '\0' <repeats 15 times>


Let me know if you need any more help in debugging this.

     - Joe




More information about the Gcrypt-devel mailing list