From owner-freebsd-ports@FreeBSD.ORG Wed May 3 02:09:23 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 442EE16A401; Wed, 3 May 2006 02:09:23 +0000 (UTC) (envelope-from rainer.alves@gmail.com) Received: from valfenda.ibest.com.br (valfenda.ibest.com.br [200.181.68.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id C097B43D46; Wed, 3 May 2006 02:09:22 +0000 (GMT) (envelope-from rainer.alves@gmail.com) Received: from [127.0.0.1] (centaurus.ibest.com.br [200.181.68.107]) by valfenda.ibest.com.br (Postfix) with ESMTP id BA1B43EE30D; Tue, 2 May 2006 23:09:17 -0300 (BRST) Message-ID: <445810BE.9090304@gmail.com> Date: Tue, 02 May 2006 23:09:02 -0300 From: Rainer Alves User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8) Gecko/20060401 Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-iBEST-MailScanner-Information: iBEST E-Mail Scanner X-MailScanner-From: rainer.alves@gmail.com Cc: Subject: Gaim broken after Glib 2.10 upgrade X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 02:09:23 -0000 After updating Gnome to 2.14 and Glib to 2.10, GAIM is now broken and segfaults whenever I try to establish a connection. Rebuilding all gaim dependecies didn't help. [rainer@bsd ~]$ uname -a FreeBSD bsd.powered.net 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sat Apr 22 14:17:16 BRST 2006 root@bsd.powered.net:/usr/obj/usr/src/sys/RAINER i386 [Switching to Thread 0x82502e0 (LWP 100113)] 0x286cb9d7 in g_slice_alloc () from /usr/local/lib/libglib-2.0.so.0 (gdb) bt #0 0x286cb9d7 in g_slice_alloc () from /usr/local/lib/libglib-2.0.so.0 #1 0x286cbdd9 in g_slist_prepend () from /usr/local/lib/libglib-2.0.so.0 #2 0x286ce18c in g_strsplit () from /usr/local/lib/libglib-2.0.so.0 #3 0x28eae47d in msn_command_from_string (string=0x0) at command.c:60 #4 0x28eae37d in msn_cmdproc_process_cmd_text (cmdproc=0x84a02a0, command=0x862e5b8 "LST carlossfreitas@hotmail.com Carlos%20Freitas 11 1") at cmdproc.c:333 #5 0x28eb911d in read_cb (data=0x8218300, source=12, cond=GAIM_INPUT_READ) at servconn.c:385 #6 0x080badab in gaim_gtkdialogs_remove_chat () #7 0x286db133 in g_vasprintf () from /usr/local/lib/libglib-2.0.so.0 #8 0x286b7895 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #9 0x286b9135 in g_main_context_acquire () from /usr/local/lib/libglib-2.0.so.0 #10 0x286b9390 in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.0 #11 0x2823d74b in gtk_main () from /usr/X11R6/lib/libgtk-x11-2.0.so.0 #12 0x080dff8e in main () This seems like a memory allocation problem (perhaps related to jemalloc in current?). This particular function (g_slice_alloc) was added in 2.10, as noted here: http://developer.gnome.org/doc/API/2.0/glib/glib-Memory-Slices.html#id3343782 Here's what the GLIB docs also say: "Note that the underlying slice allocation mechanism can be changed with the G_SLICE=always-malloc environment variable." That's exactly what I did, and the problem was solved. Perhaps this tip should be included somewhere, as I'm sure other CURRENT users will be affected. -- Rainer Alves