Quoting Chris Winne <[EMAIL PROTECTED]> from ml.softs.gtk-gnutella.devel:
:This crashes soon after startup on a slackware-current using gtk-2 with
:the following error:
:
:** ERROR **: file hashlist.c: line 216 (hash_list_remove): assertion
:failed: (1 == hl->refcount)
:aborting...
OK, thanks. This one was really easy to find.
For information: it occurs ONLY when you use local network preferencing
(which I don't use).
I've committed the fix to CVS, and updated the CVS snapshot.
Here's a patch that can be applied to the beta release that should fix
the problem. Please keep me posted...
Raphael
Index: hcache.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/core/hcache.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- hcache.c 9 Nov 2004 20:55:35 -0000 1.6
+++ hcache.c 13 Nov 2004 23:08:25 -0000 1.7
@@ -1,5 +1,5 @@
/*
- * $Id: hcache.c,v 1.6 2004/11/09 20:55:35 rmanfredi Exp $
+ * $Id: hcache.c,v 1.7 2004/11/13 23:08:25 rmanfredi Exp $
*
* Copyright (c) 2002-2003, Raphael Manfredi, Richard Eckart
*
@@ -43,7 +43,7 @@
#include "common.h"
-RCSID("$Id: hcache.c,v 1.6 2004/11/09 20:55:35 rmanfredi Exp $");
+RCSID("$Id: hcache.c,v 1.7 2004/11/13 23:08:25 rmanfredi Exp $");
#include "hosts.h"
#include "hcache.h"
@@ -1093,7 +1093,6 @@
*ip = h->ip;
*port = h->port;
- hcache_unlink_host(hc, h);
result = TRUE;
break;
}
@@ -1101,6 +1100,9 @@
hash_list_release(iter);
+ if (result)
+ hcache_unlink_host(hc, h);
+
return result;
}
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel