[gnutls-help] crash in gnutls_x509_trust_list_add_trust_file()

Jeremy Harris jgh at wizmail.org
Fri Feb 3 00:11:50 CET 2017


Hi,

I'm seeing a segfault in an application using
gnutls_x509_trust_list_add_system_trust()

[ fedora 25; GnuTLS 3.5.8 ]


The application previously built and ran ok on Fedora 24.
Any clues?



:-

Program terminated with signal SIGSEGV, Segmentation fault.
#0  __GI___libc_free (mem=0x38) at malloc.c:2963
2963      if (chunk_is_mmapped (p))                       /* release
mmapped memory. */

(gdb) bt
#0  __GI___libc_free (mem=0x38) at malloc.c:2963
#1  0x00007f6524c4c07c in gnutls_pkcs11_obj_list_import_url3
(p_list=p_list at entry=0x0, n_list=n_list at entry=0x7ffeeea5f890,
    url=url at entry=0x7f6524cf3640
"pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit",
flags=flags at entry=264194) at pkcs11.c:3069
#2  0x00007f6524c95d84 in gnutls_x509_trust_list_add_trust_file
(list=0x12c9f70, ca_file=<optimized out>,
    ca_file at entry=0x7f6524cf3640
"pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit",
crl_file=crl_file at entry=0x0,
    type=type at entry=GNUTLS_X509_FMT_DER, tl_flags=6,
tl_vflags=<optimized out>) at verify-high2.c:332
#3  0x00007f6524c2d09d in add_system_trust (tl_vflags=<optimized out>,
tl_flags=<optimized out>, list=<optimized out>) at system/certs.c:113
#4  gnutls_x509_trust_list_add_system_trust (list=<optimized out>,
tl_flags=<optimized out>, tl_vflags=<optimized out>) at system/certs.c:300
#5  0x0000000000486502 in tls_expand_session_files ()
#6  0x0000000000487336 in tls_init ()
#7  0x000000000048847d in tls_server_start ()
#8  0x000000000047e898 in smtp_setup_msg ()
#9  0x000000000042410b in daemon_go ()
#10 0x000000000043a9b2 in main ()

-- 
Thanks,
  Jeremy



More information about the Gnutls-help mailing list