I'm not sure, but the following patch should do the job.
On Tue, Aug 05, 2003 at 10:07:49PM +0200, Thomas Schuerger wrote:
> Hi,
>
> currently GtkG crashes frequently on my system (current CVS
> version as of tonight):
>
> ** ERROR **: file pproxy.c: line 820 (cproxy_http_error_ind): assertion failed: (cp
> != NULL)
> aborting...
>
> Program received signal SIGABRT, Aborted.
> 0x28605848 in kill () from /usr/lib/libc.so.4
> (gdb) bt
> #0 0x28605848 in kill () from /usr/lib/libc.so.4
> #1 0x28649e88 in abort () from /usr/lib/libc.so.4
> #2 0x282edabd in g_logv () from /usr/local/lib/libglib12.so.3
> #3 0x282edb7c in g_log () from /usr/local/lib/libglib12.so.3
> #4 0x811bc0a in cproxy_http_error_ind (handle=0x83e0058, type=HTTP_ASYNC_ERROR,
> v=0x6) at pproxy.c:820
> #5 0x8109e71 in http_async_remove (handle=0x83e0058, type=HTTP_ASYNC_ERROR,
> code=0x6) at http.c:1367
> #6 0x8109e95 in http_async_cancel (handle=0x83e0058) at http.c:1378
> #7 0x811bb86 in cproxy_free (cp=0x87b6968) at pproxy.c:798
> #8 0x80d8205 in download_stop (d=0x86ce680, new_status=11, reason=0x0) at
> downloads.c:1709
> #9 0x80df551 in download_retry (d=0x86ce680) at downloads.c:6379
> #10 0x80d6547 in download_timer (now=1060113744) at downloads.c:449
> #11 0x80ed2e7 in main_timer (p=0x0) at main.c:264
> #12 0x282ec14e in g_timeout_dispatch () from /usr/local/lib/libglib12.so.3
> #13 0x282eb1e6 in g_main_dispatch () from /usr/local/lib/libglib12.so.3
> #14 0x282eb7f3 in g_main_iterate () from /usr/local/lib/libglib12.so.3
> #15 0x282eb9a8 in g_main_run () from /usr/local/lib/libglib12.so.3
> #16 0x28207299 in gtk_main () from /usr/X11R6/lib/libgtk12.so.2
> #17 0x80b7737 in main_gui_run () at main_gui.c:598
> #18 0x80ed71c in main (argc=1, argv=0xbfbff4ac, env=0xbfbff4b4) at main.c:479
> #19 0x8064747 in _start ()
>
> Any ideas what may be wrong?
>
>
> Greetings,
> Thomas.
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Gtk-gnutella-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
--
"Computer Science is no more about computers than astronomy is about telescopes."
Edsger Dijkstra
Index: pproxy.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/pproxy.c,v
retrieving revision 1.11
diff -u -r1.11 pproxy.c
--- pproxy.c 4 Aug 2003 20:27:29 -0000 1.11
+++ pproxy.c 5 Aug 2003 21:22:27 -0000
@@ -851,6 +851,7 @@
if (cp->http_handle != NULL) {
g_warning("retrying with swapped push-proxy address %s (was
%s)",
ip_to_gchar(new_ip), ip_port_to_gchar(cp->ip,
cp->port));
+ http_async_set_opaque(cp->http_handle, cp, NULL);
cp->ip = new_ip;
return;
}