Certificate Crash on Exit

Mark Doliner mark at kingant.net
Fri Aug 8 21:59:32 EDT 2008


2008/8/8 Richard Laager <rlaager at wiktel.com>:
> I'm seeing this crash on exit. In case it matters, I'm running with
> --with-system-ssl-certs=/etc/ssl/certs. I don't know much about the
> certificate code, so I thought I'd ask here before spending a lot of
> time debugging.
>
> Richard
>
> #0  0x4aabf4da in free () from /lib/tls/i686/cmov/libc.so.6
> #1  0x4ca75c61 in g_free () from /usr/lib/libglib-2.0.so.0
> #2  0x4ca6b891 in g_list_foreach () from /usr/lib/libglib-2.0.so.0
> #3  0xb7ef2710 in x509_ca_uninit () at certificate.c:781
> #4  0xb7ef070b in purple_certificate_unregister_pool (pool=0xb7f8c220)
>    at certificate.c:1848
> #5  0xb7ef199a in purple_certificate_uninit () at certificate.c:1569
> #6  0xb7f02a75 in purple_core_quit () at core.c:211
> #7  0x080c0eb6 in main (argc=Cannot access memory at address 0x0) at
> gtkmain.c:795

Try this:

--- libpurple/certificate.c	a264086c888f898c25043ef7b5198370ebd23a82
+++ libpurple/certificate.c	c413eac48d7738cba1f55b9fb218b7320a0136d9
@@ -746,7 +746,7 @@ x509_ca_init(void)
 						   "ca-certs", NULL));
 #else
 # ifdef SSL_CERTIFICATES_DIR
-		x509_ca_paths = g_list_append(NULL, SSL_CERTIFICATES_DIR);
+		x509_ca_paths = g_list_append(NULL, g_strdup(SSL_CERTIFICATES_DIR));
 # else
 		x509_ca_paths = g_list_append(NULL, g_build_filename(DATADIR,
 						   "purple", "ca-certs", NULL));




More information about the Devel mailing list