gnutls 2.3.11 testsuite failure on sparc (openpgpself)

Simon Josefsson simon at josefsson.org
Wed Jun 4 05:21:34 CEST 2008


Nikos Mavrogiannopoulos <nmav at gnutls.org> writes:

> Andreas Metzler wrote:
>> On 2008-06-01 Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:
>> [...]
>>> the following program in this system: (I think the output shouldn't be
>>> anything else than 8 but just to eliminate suspicions).
>> 
>>> #include <stdio.h>
>> 
>>> typedef unsigned char gnutls_openpgp_keyid_t[8];
>> 
>>> gnutls_openpgp_keyid_t t;
>> 
>>> int main()
>>> {
>>>   printf("size: %u\n", sizeof(t));
>>> }
>> 
>> Hello,
>> 
>> size: 8
>
> This is really strange error. Something that has been set using
> gnutls_openpgp_crt_set_preferred_key_id() is returned differently when
> gnutls_openpgp_crt_get_preferred_key_id() is used. Maybe the output of
> valgrind might help when running openpgpself (in my system it prints
> nothing suspicious).
>
> As far as I understand this is a big endian machine but endianess
> shouldn't affect the code that is involved. Do you have results of make
> check in other big endian systems? If yes and they are successful could
> it be a compiler issue?
>
> If the above don't help I'd appreciate if it was possible to have access
> in this system to try to debug it with gdb,

FWIW, this seems to happen on my system as well, a normal x86 debian
box.  Does it work on your machine?  There are valgrind errors, see
below.

/Simon

==18506== Memcheck, a memory error detector.
==18506== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==18506== Using LibVEX rev 1804, a library for dynamic binary translation.
==18506== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==18506== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework.
==18506== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==18506== For more details, rerun with: -v
==18506== 
==18506== Use of uninitialised value of size 4
==18506==    at 0x4181141: (within /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x4183079: vfprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x41A0E9B: vsprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x418B24D: sprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x40600D6: _gnutls_bin2hex (gnutls_str.c:265)
==18506==    by 0x406E19E: _gnutls_openpgp_privkey_to_gkey (gnutls_openpgp.c:731)
==18506==    by 0x406EA83: gnutls_certificate_set_openpgp_key (gnutls_openpgp.c:149)
==18506==    by 0x406EE6E: gnutls_certificate_set_openpgp_key_mem2 (gnutls_openpgp.c:424)
==18506==    by 0x8049AAC: server_start (openpgpself.c:391)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== Conditional jump or move depends on uninitialised value(s)
==18506==    at 0x4181147: (within /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x4183079: vfprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x41A0E9B: vsprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x418B24D: sprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x40600D6: _gnutls_bin2hex (gnutls_str.c:265)
==18506==    by 0x406E19E: _gnutls_openpgp_privkey_to_gkey (gnutls_openpgp.c:731)
==18506==    by 0x406EA83: gnutls_certificate_set_openpgp_key (gnutls_openpgp.c:149)
==18506==    by 0x406EE6E: gnutls_certificate_set_openpgp_key_mem2 (gnutls_openpgp.c:424)
==18506==    by 0x8049AAC: server_start (openpgpself.c:391)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== Conditional jump or move depends on uninitialised value(s)
==18506==    at 0x4182D9D: vfprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x41A0E9B: vsprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x418B24D: sprintf (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x40600D6: _gnutls_bin2hex (gnutls_str.c:265)
==18506==    by 0x406E19E: _gnutls_openpgp_privkey_to_gkey (gnutls_openpgp.c:731)
==18506==    by 0x406EA83: gnutls_certificate_set_openpgp_key (gnutls_openpgp.c:149)
==18506==    by 0x406EE6E: gnutls_certificate_set_openpgp_key_mem2 (gnutls_openpgp.c:424)
==18506==    by 0x8049AAC: server_start (openpgpself.c:391)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
client |<2>| Importing Openpgp key and using openpgp sub key: 837b6fb4f0d53104
==18506== 
==18506== Conditional jump or move depends on uninitialised value(s)
==18506==    at 0x409650A: _gnutls_openpgp_find_subkey_idx (pgp.c:753)
==18506==    by 0x4099E49: gnutls_openpgp_privkey_get_subkey_idx (privkey.c:501)
==18506==    by 0x406E1E3: _gnutls_openpgp_privkey_to_gkey (gnutls_openpgp.c:736)
==18506==    by 0x406EA83: gnutls_certificate_set_openpgp_key (gnutls_openpgp.c:149)
==18506==    by 0x406EE6E: gnutls_certificate_set_openpgp_key_mem2 (gnutls_openpgp.c:424)
==18506==    by 0x8049AAC: server_start (openpgpself.c:391)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
client |<2>| ASSERT: pgp.c:762
client |<2>| ASSERT: privkey.c:505
client |<2>| ASSERT: gnutls_openpgp.c:739
client |<2>| ASSERT: gnutls_openpgp.c:152
client |<2>| ASSERT: privkey.c:1058
client |<2>| Importing Openpgp key and using main openpgp key.
client |<2>| ASSERT: pgp.c:1460
client |<2>| Importing Openpgp cert and using main openpgp key
client |<2>| ASSERT: pgp.c:156
client |<2>| EXT[432bef0]: Sending extension CERT_TYPE
client |<2>| ASSERT: gnutls_cipher.c:205
server |<2>| ASSERT: gnutls_cipher.c:205
server |<2>| ASSERT: gnutls_db.c:238
server |<2>| EXT[431dde8]: Received extension 'CERT_TYPE/9'
server |<2>| EXT[431dde8]: Received extension 'CERT_TYPE/9'
server |<2>| ASSERT: ext_cert_type.c:106
server |<2>| ASSERT: ext_cert_type.c:106
server |<2>| ASSERT: ext_cert_type.c:123
server |<2>| ASSERT: gnutls_handshake.c:2875
server |<1>| Could not find an appropriate certificate: Insufficient credentials for that request.
server |<2>| ASSERT: gnutls_handshake.c:706
server |<2>| ASSERT: gnutls_handshake.c:465
server |<2>| ASSERT: gnutls_handshake.c:2024
server |<2>| ASSERT: gnutls_handshake.c:2550
client |<2>| ASSERT: gnutls_buffers.c:638
client |<2>| ASSERT: gnutls_record.c:909
client |<2>| ASSERT: gnutls_buffers.c:1152
client |<2>| ASSERT: gnutls_handshake.c:1031
client |<2>| ASSERT: gnutls_handshake.c:2330
server: Handshake has failed (Could not negotiate a supported cipher suite.)

client: Handshake failed
GNUTLS ERROR: A TLS packet with unexpected length was received.
Launched, setting DH parameters...
server: ready. Listening to port '5556'.
Setting key files...
Connecting...
==18507== 
==18507== ERROR SUMMARY: 15 errors from 4 contexts (suppressed: 21 from 1)
==18507== malloc/free: in use at exit: 69,062 bytes in 4,046 blocks.
==18507== malloc/free: 5,824 allocs, 1,778 frees, 188,294 bytes allocated.
==18507== For counts of detected errors, rerun with: -v
==18507== searching for pointers to 4,046 not-freed blocks.
==18507== checked 174,588 bytes.
==18507== 
==18507== 
==18507== 4 bytes in 1 blocks are still reachable in loss record 1 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40DE626: do_malloc (global.c:558)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18507==    by 0x4125497: _gcry_mpi_alloc_limb_space (mpiutil.c:92)
==18507==    by 0x4125570: _gcry_mpi_alloc (mpiutil.c:54)
==18507==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18507==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18507==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18507==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18507==    by 0x405F3D3: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:379)
==18507==    by 0x8049B06: server_start (openpgpself.c:289)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 8 bytes in 1 blocks are still reachable in loss record 2 of 22
==18507==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18507==    by 0x405EA88: gnutls_dh_params_init (gnutls_dh_primes.c:195)
==18507==    by 0x8049AEA: server_start (openpgpself.c:288)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 20 bytes in 1 blocks are still reachable in loss record 3 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40DE626: do_malloc (global.c:558)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18507==    by 0x4125558: _gcry_mpi_alloc (mpiutil.c:53)
==18507==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18507==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18507==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18507==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18507==    by 0x405F3D3: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:379)
==18507==    by 0x8049B06: server_start (openpgpself.c:289)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 20 bytes in 1 blocks are still reachable in loss record 4 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40DE626: do_malloc (global.c:558)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18507==    by 0x4125558: _gcry_mpi_alloc (mpiutil.c:53)
==18507==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18507==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18507==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18507==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18507==    by 0x405F3AA: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:369)
==18507==    by 0x8049B06: server_start (openpgpself.c:289)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 32 bytes in 1 blocks are still reachable in loss record 5 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x4022BFC: realloc (vg_replace_malloc.c:429)
==18507==    by 0x4059E2E: gnutls_realloc_fast (gnutls_mem.c:79)
==18507==    by 0x406EA5E: gnutls_certificate_set_openpgp_key (gnutls_openpgp.c:140)
==18507==    by 0x406EE6E: gnutls_certificate_set_openpgp_key_mem2 (gnutls_openpgp.c:424)
==18507==    by 0x8049AAC: server_start (openpgpself.c:391)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 76 bytes in 1 blocks are still reachable in loss record 6 of 22
==18507==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18507==    by 0x4056968: gnutls_certificate_allocate_credentials (gnutls_cert.c:275)
==18507==    by 0x8049A7F: server_start (openpgpself.c:389)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 98 bytes in 9 blocks are still reachable in loss record 7 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18507==    by 0x429B638: asn1_array2tree (structure.c:205)
==18507==    by 0x4057C2D: gnutls_global_init (gnutls_global.c:300)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 120 bytes in 5 blocks are still reachable in loss record 8 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40E1E0F: _gcry_private_malloc (stdmem.c:106)
==18507==    by 0x40DE65B: do_malloc (global.c:560)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40E2A86: _gcry_module_add (module.c:89)
==18507==    by 0x40E58E3: gcry_pk_register_default (pubkey.c:194)
==18507==    by 0x40E5BC3: _gcry_pk_init (pubkey.c:2578)
==18507==    by 0x40DEB6D: global_init (global.c:89)
==18507==    by 0x40DF191: _gcry_check_version (global.c:171)
==18507==    by 0x40DDC9C: gcry_check_version (visibility.c:66)
==18507==    by 0x4057A55: gnutls_global_init (gnutls_global.c:243)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 128 bytes in 1 blocks are still reachable in loss record 9 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40DE626: do_malloc (global.c:558)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18507==    by 0x4125497: _gcry_mpi_alloc_limb_space (mpiutil.c:92)
==18507==    by 0x4125570: _gcry_mpi_alloc (mpiutil.c:54)
==18507==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18507==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18507==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18507==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18507==    by 0x405F3AA: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:369)
==18507==    by 0x8049B06: server_start (openpgpself.c:289)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 129 bytes in 59 blocks are still reachable in loss record 10 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18507==    by 0x42995AB: _asn1_change_integer_value (parser_aux.c:534)
==18507==    by 0x429B7EF: asn1_array2tree (structure.c:249)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 312 bytes in 13 blocks are still reachable in loss record 11 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40E1E0F: _gcry_private_malloc (stdmem.c:106)
==18507==    by 0x40DE65B: do_malloc (global.c:560)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40E2A86: _gcry_module_add (module.c:89)
==18507==    by 0x40EDA3F: gcry_md_register_default (md.c:154)
==18507==    by 0x40EDAB3: _gcry_md_init (md.c:1252)
==18507==    by 0x40DEB64: global_init (global.c:86)
==18507==    by 0x40DF191: _gcry_check_version (global.c:171)
==18507==    by 0x40DDC9C: gcry_check_version (visibility.c:66)
==18507==    by 0x4057A55: gnutls_global_init (gnutls_global.c:243)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 432 bytes in 18 blocks are still reachable in loss record 12 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40E1E0F: _gcry_private_malloc (stdmem.c:106)
==18507==    by 0x40DE65B: do_malloc (global.c:560)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40E2A86: _gcry_module_add (module.c:89)
==18507==    by 0x40E3471: gcry_cipher_register_default (cipher.c:272)
==18507==    by 0x40E3533: _gcry_cipher_init (cipher.c:1711)
==18507==    by 0x40DEB34: global_init (global.c:83)
==18507==    by 0x40DF191: _gcry_check_version (global.c:171)
==18507==    by 0x40DDC9C: gcry_check_version (visibility.c:66)
==18507==    by 0x4057A55: gnutls_global_init (gnutls_global.c:243)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 502 bytes in 52 blocks are still reachable in loss record 13 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x41B5E3F: strdup (in /lib/i686/cmov/libc-2.7.so)
==18507==    by 0x429944D: _asn1_set_name (parser_aux.c:252)
==18507==    by 0x429B614: asn1_array2tree (structure.c:203)
==18507==    by 0x4057C2D: gnutls_global_init (gnutls_global.c:300)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 664 bytes in 1 blocks are still reachable in loss record 14 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40DE626: do_malloc (global.c:558)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18507==    by 0x40DE90C: _gcry_xcalloc (global.c:770)
==18507==    by 0x40F152B: initialize (random.c:337)
==18507==    by 0x40F215E: _gcry_randomize (random.c:563)
==18507==    by 0x40DBC9A: gcry_randomize (visibility.c:1056)
==18507==    by 0x406FE0B: gc_pseudo_random (gc-libgcrypt.c:83)
==18507==    by 0x4067C62: _gnutls_rnd_init (random.c:51)
==18507==    by 0x4057C4F: gnutls_global_init (gnutls_global.c:309)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 664 bytes in 1 blocks are still reachable in loss record 15 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x40DE626: do_malloc (global.c:558)
==18507==    by 0x40DE859: _gcry_malloc (global.c:582)
==18507==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18507==    by 0x40DE90C: _gcry_xcalloc (global.c:770)
==18507==    by 0x40F146B: initialize (random.c:334)
==18507==    by 0x40F215E: _gcry_randomize (random.c:563)
==18507==    by 0x40DBC9A: gcry_randomize (visibility.c:1056)
==18507==    by 0x406FE0B: gc_pseudo_random (gc-libgcrypt.c:83)
==18507==    by 0x4067C62: _gnutls_rnd_init (random.c:51)
==18507==    by 0x4057C4F: gnutls_global_init (gnutls_global.c:309)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 1,188 bytes in 492 blocks are still reachable in loss record 16 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18507==    by 0x4299FAE: _asn1_expand_object_id (parser_aux.c:627)
==18507==    by 0x429B7FC: asn1_array2tree (structure.c:250)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 1,512 bytes in 54 blocks are still reachable in loss record 17 of 22
==18507==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18507==    by 0x429A05C: _asn1_add_node (parser_aux.c:62)
==18507==    by 0x429B5FB: asn1_array2tree (structure.c:201)
==18507==    by 0x4057C2D: gnutls_global_init (gnutls_global.c:300)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 3,431 bytes in 401 blocks are still reachable in loss record 18 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x41B5E3F: strdup (in /lib/i686/cmov/libc-2.7.so)
==18507==    by 0x429944D: _asn1_set_name (parser_aux.c:252)
==18507==    by 0x4299F7A: _asn1_expand_object_id (parser_aux.c:624)
==18507==    by 0x429B7FC: asn1_array2tree (structure.c:250)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 5,338 bytes in 655 blocks are still reachable in loss record 19 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18507==    by 0x429B638: asn1_array2tree (structure.c:205)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 12,020 bytes in 766 blocks are still reachable in loss record 20 of 22
==18507==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18507==    by 0x41B5E3F: strdup (in /lib/i686/cmov/libc-2.7.so)
==18507==    by 0x429944D: _asn1_set_name (parser_aux.c:252)
==18507==    by 0x429B614: asn1_array2tree (structure.c:203)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 13,776 bytes in 492 blocks are still reachable in loss record 21 of 22
==18507==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18507==    by 0x429BA85: _asn1_add_node_only (structure.c:54)
==18507==    by 0x4299F60: _asn1_expand_object_id (parser_aux.c:623)
==18507==    by 0x429B7FC: asn1_array2tree (structure.c:250)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== 
==18507== 28,588 bytes in 1,021 blocks are still reachable in loss record 22 of 22
==18507==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18507==    by 0x429A05C: _asn1_add_node (parser_aux.c:62)
==18507==    by 0x429B5FB: asn1_array2tree (structure.c:201)
==18507==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18507==    by 0x8049A5B: server_start (openpgpself.c:384)
==18507==    by 0x804A6BA: doit (openpgpself.c:514)
==18507==    by 0x804A814: main (utils.c:148)
==18507== 
==18507== LEAK SUMMARY:
==18507==    definitely lost: 0 bytes in 0 blocks.
==18507==      possibly lost: 0 bytes in 0 blocks.
==18507==    still reachable: 69,062 bytes in 4,046 blocks.
==18507==         suppressed: 0 bytes in 0 blocks.
Launched, setting DH parameters...
server: ready. Listening to port '5556'.
server: connection from 127.0.0.1, port 39261
==18506== 
==18506== ERROR SUMMARY: 15 errors from 4 contexts (suppressed: 21 from 1)
==18506== malloc/free: in use at exit: 69,062 bytes in 4,046 blocks.
==18506== malloc/free: 5,661 allocs, 1,615 frees, 152,551 bytes allocated.
==18506== For counts of detected errors, rerun with: -v
==18506== searching for pointers to 4,046 not-freed blocks.
==18506== checked 174,592 bytes.
==18506== 
==18506== 
==18506== 4 bytes in 1 blocks are still reachable in loss record 1 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40DE626: do_malloc (global.c:558)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18506==    by 0x4125497: _gcry_mpi_alloc_limb_space (mpiutil.c:92)
==18506==    by 0x4125570: _gcry_mpi_alloc (mpiutil.c:54)
==18506==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18506==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18506==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18506==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18506==    by 0x405F3D3: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:379)
==18506==    by 0x8049B06: server_start (openpgpself.c:289)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 8 bytes in 1 blocks are still reachable in loss record 2 of 22
==18506==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18506==    by 0x405EA88: gnutls_dh_params_init (gnutls_dh_primes.c:195)
==18506==    by 0x8049AEA: server_start (openpgpself.c:288)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 20 bytes in 1 blocks are still reachable in loss record 3 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40DE626: do_malloc (global.c:558)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18506==    by 0x4125558: _gcry_mpi_alloc (mpiutil.c:53)
==18506==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18506==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18506==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18506==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18506==    by 0x405F3D3: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:379)
==18506==    by 0x8049B06: server_start (openpgpself.c:289)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 20 bytes in 1 blocks are still reachable in loss record 4 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40DE626: do_malloc (global.c:558)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18506==    by 0x4125558: _gcry_mpi_alloc (mpiutil.c:53)
==18506==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18506==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18506==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18506==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18506==    by 0x405F3AA: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:369)
==18506==    by 0x8049B06: server_start (openpgpself.c:289)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 32 bytes in 1 blocks are still reachable in loss record 5 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x4022BFC: realloc (vg_replace_malloc.c:429)
==18506==    by 0x4059E2E: gnutls_realloc_fast (gnutls_mem.c:79)
==18506==    by 0x406EA5E: gnutls_certificate_set_openpgp_key (gnutls_openpgp.c:140)
==18506==    by 0x406EE6E: gnutls_certificate_set_openpgp_key_mem2 (gnutls_openpgp.c:424)
==18506==    by 0x8049AAC: server_start (openpgpself.c:391)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 76 bytes in 1 blocks are still reachable in loss record 6 of 22
==18506==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18506==    by 0x4056968: gnutls_certificate_allocate_credentials (gnutls_cert.c:275)
==18506==    by 0x8049A7F: server_start (openpgpself.c:389)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 98 bytes in 9 blocks are still reachable in loss record 7 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18506==    by 0x429B638: asn1_array2tree (structure.c:205)
==18506==    by 0x4057C2D: gnutls_global_init (gnutls_global.c:300)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 120 bytes in 5 blocks are still reachable in loss record 8 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40E1E0F: _gcry_private_malloc (stdmem.c:106)
==18506==    by 0x40DE65B: do_malloc (global.c:560)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40E2A86: _gcry_module_add (module.c:89)
==18506==    by 0x40E58E3: gcry_pk_register_default (pubkey.c:194)
==18506==    by 0x40E5BC3: _gcry_pk_init (pubkey.c:2578)
==18506==    by 0x40DEB6D: global_init (global.c:89)
==18506==    by 0x40DF191: _gcry_check_version (global.c:171)
==18506==    by 0x40DDC9C: gcry_check_version (visibility.c:66)
==18506==    by 0x4057A55: gnutls_global_init (gnutls_global.c:243)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 128 bytes in 1 blocks are still reachable in loss record 9 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40DE626: do_malloc (global.c:558)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18506==    by 0x4125497: _gcry_mpi_alloc_limb_space (mpiutil.c:92)
==18506==    by 0x4125570: _gcry_mpi_alloc (mpiutil.c:54)
==18506==    by 0x4123559: _gcry_mpi_scan (mpicoder.c:379)
==18506==    by 0x40DD598: gcry_mpi_scan (visibility.c:297)
==18506==    by 0x4054A48: _gnutls_mpi_scan (gnutls_mpi.c:53)
==18506==    by 0x4054B95: _gnutls_x509_read_int (gnutls_mpi.c:228)
==18506==    by 0x405F3AA: gnutls_dh_params_import_pkcs3 (gnutls_dh_primes.c:369)
==18506==    by 0x8049B06: server_start (openpgpself.c:289)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 129 bytes in 59 blocks are still reachable in loss record 10 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18506==    by 0x42995AB: _asn1_change_integer_value (parser_aux.c:534)
==18506==    by 0x429B7EF: asn1_array2tree (structure.c:249)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 312 bytes in 13 blocks are still reachable in loss record 11 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40E1E0F: _gcry_private_malloc (stdmem.c:106)
==18506==    by 0x40DE65B: do_malloc (global.c:560)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40E2A86: _gcry_module_add (module.c:89)
==18506==    by 0x40EDA3F: gcry_md_register_default (md.c:154)
==18506==    by 0x40EDAB3: _gcry_md_init (md.c:1252)
==18506==    by 0x40DEB64: global_init (global.c:86)
==18506==    by 0x40DF191: _gcry_check_version (global.c:171)
==18506==    by 0x40DDC9C: gcry_check_version (visibility.c:66)
==18506==    by 0x4057A55: gnutls_global_init (gnutls_global.c:243)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 432 bytes in 18 blocks are still reachable in loss record 12 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40E1E0F: _gcry_private_malloc (stdmem.c:106)
==18506==    by 0x40DE65B: do_malloc (global.c:560)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40E2A86: _gcry_module_add (module.c:89)
==18506==    by 0x40E3471: gcry_cipher_register_default (cipher.c:272)
==18506==    by 0x40E3533: _gcry_cipher_init (cipher.c:1711)
==18506==    by 0x40DEB34: global_init (global.c:83)
==18506==    by 0x40DF191: _gcry_check_version (global.c:171)
==18506==    by 0x40DDC9C: gcry_check_version (visibility.c:66)
==18506==    by 0x4057A55: gnutls_global_init (gnutls_global.c:243)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 502 bytes in 52 blocks are still reachable in loss record 13 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x41B5E3F: strdup (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x429944D: _asn1_set_name (parser_aux.c:252)
==18506==    by 0x429B614: asn1_array2tree (structure.c:203)
==18506==    by 0x4057C2D: gnutls_global_init (gnutls_global.c:300)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 664 bytes in 1 blocks are still reachable in loss record 14 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40DE626: do_malloc (global.c:558)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18506==    by 0x40DE90C: _gcry_xcalloc (global.c:770)
==18506==    by 0x40F152B: initialize (random.c:337)
==18506==    by 0x40F215E: _gcry_randomize (random.c:563)
==18506==    by 0x40DBC9A: gcry_randomize (visibility.c:1056)
==18506==    by 0x406FE0B: gc_pseudo_random (gc-libgcrypt.c:83)
==18506==    by 0x4067C62: _gnutls_rnd_init (random.c:51)
==18506==    by 0x4057C4F: gnutls_global_init (gnutls_global.c:309)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 664 bytes in 1 blocks are still reachable in loss record 15 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x40DE626: do_malloc (global.c:558)
==18506==    by 0x40DE859: _gcry_malloc (global.c:582)
==18506==    by 0x40DE87D: _gcry_xmalloc (global.c:717)
==18506==    by 0x40DE90C: _gcry_xcalloc (global.c:770)
==18506==    by 0x40F146B: initialize (random.c:334)
==18506==    by 0x40F215E: _gcry_randomize (random.c:563)
==18506==    by 0x40DBC9A: gcry_randomize (visibility.c:1056)
==18506==    by 0x406FE0B: gc_pseudo_random (gc-libgcrypt.c:83)
==18506==    by 0x4067C62: _gnutls_rnd_init (random.c:51)
==18506==    by 0x4057C4F: gnutls_global_init (gnutls_global.c:309)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 1,188 bytes in 492 blocks are still reachable in loss record 16 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18506==    by 0x4299FAE: _asn1_expand_object_id (parser_aux.c:627)
==18506==    by 0x429B7FC: asn1_array2tree (structure.c:250)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 1,512 bytes in 54 blocks are still reachable in loss record 17 of 22
==18506==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18506==    by 0x429A05C: _asn1_add_node (parser_aux.c:62)
==18506==    by 0x429B5FB: asn1_array2tree (structure.c:201)
==18506==    by 0x4057C2D: gnutls_global_init (gnutls_global.c:300)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 3,431 bytes in 401 blocks are still reachable in loss record 18 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x41B5E3F: strdup (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x429944D: _asn1_set_name (parser_aux.c:252)
==18506==    by 0x4299F7A: _asn1_expand_object_id (parser_aux.c:624)
==18506==    by 0x429B7FC: asn1_array2tree (structure.c:250)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 5,338 bytes in 655 blocks are still reachable in loss record 19 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x42994BB: _asn1_set_value (parser_aux.c:216)
==18506==    by 0x429B638: asn1_array2tree (structure.c:205)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 12,020 bytes in 766 blocks are still reachable in loss record 20 of 22
==18506==    at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==18506==    by 0x41B5E3F: strdup (in /lib/i686/cmov/libc-2.7.so)
==18506==    by 0x429944D: _asn1_set_name (parser_aux.c:252)
==18506==    by 0x429B614: asn1_array2tree (structure.c:203)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 13,776 bytes in 492 blocks are still reachable in loss record 21 of 22
==18506==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18506==    by 0x429BA85: _asn1_add_node_only (structure.c:54)
==18506==    by 0x4299F60: _asn1_expand_object_id (parser_aux.c:623)
==18506==    by 0x429B7FC: asn1_array2tree (structure.c:250)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== 
==18506== 28,588 bytes in 1,021 blocks are still reachable in loss record 22 of 22
==18506==    at 0x4021BDE: calloc (vg_replace_malloc.c:397)
==18506==    by 0x429A05C: _asn1_add_node (parser_aux.c:62)
==18506==    by 0x429B5FB: asn1_array2tree (structure.c:201)
==18506==    by 0x4057BFA: gnutls_global_init (gnutls_global.c:293)
==18506==    by 0x8049A5B: server_start (openpgpself.c:384)
==18506==    by 0x804A6BA: doit (openpgpself.c:514)
==18506==    by 0x804A814: main (utils.c:148)
==18506== 
==18506== LEAK SUMMARY:
==18506==    definitely lost: 0 bytes in 0 blocks.
==18506==      possibly lost: 0 bytes in 0 blocks.
==18506==    still reachable: 69,062 bytes in 4,046 blocks.
==18506==         suppressed: 0 bytes in 0 blocks.





More information about the Gnutls-devel mailing list