Subject: pkg/33270: Always crashes when connecting to server
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <khorben@defora.org>
List: pkgsrc-bugs
Date: 04/16/2006 16:45:00
>Number: 33270
>Category: pkg
>Synopsis: Always crashes when connecting to server
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 16 16:45:00 +0000 2006
>Originator: khorben
>Release: 3.0
>Organization:
>Environment:
NetBSD exxh.lan.defora.org 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 04:05:17 UTC 2005 builds@b4.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/sparc64/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
gtetrinet crashes when connecting to a server.
GNOME bugzilla #338712.
Stack trace:
0x000000004452bfb8 in g_io_channel_read_chars ()
from /usr/pkg/lib/libglib-2.0.so.0
(gdb) bt
#0 0x000000004452bfb8 in g_io_channel_read_chars ()
from /usr/pkg/lib/libglib-2.0.so.0
#1 0x000000000010a6e4 in client_disconnect ()
#2 0x000000000010a5bc in client_disconnect ()
#3 0x0000000044560804 in g_vasprintf () from /usr/pkg/lib/libglib-2.0.so.0
#4 0x0000000044534a70 in g_main_depth () from /usr/pkg/lib/libglib-2.0.so.0
#5 0x00000000445360a0 in g_main_context_dispatch ()
from /usr/pkg/lib/libglib-2.0.so.0
#6 0x00000000445364a0 in g_main_context_dispatch ()
from /usr/pkg/lib/libglib-2.0.so.0
#7 0x0000000044536ca8 in g_main_loop_run () from /usr/pkg/lib/libglib-2.0.so.0
#8 0x0000000041b92984 in gtk_main () from /usr/pkg/lib/libgtk-x11-2.0.so.0
#9 0x0000000000111f20 in main ()
#10 0x0000000000109878 in ___start ()
>How-To-Repeat:
Steps to reproduce:
1. Compile 0.77-nb6 port from pkgsrc
2. Launch gtetrinet and click on Connect
3. Choose your server and click on OK
>Fix:
One line fix:
line 448 in src/client.c change "gint bytes = 0;" to "gsize bytes = 0;"