Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 May 2006 00:26:15 -0700
From:      Sean McNeil <sean@mcneil.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org
Subject:   Re: tsclient segfault with gnome 2.4
Message-ID:  <1146468375.40457.7.camel@triton.mcneil.com>
In-Reply-To: <1146455761.1290.0.camel@gyros.marcuscom.com>
References:  <1146453514.33000.2.camel@triton.mcneil.com> <1146455761.1290.0.camel@gyros.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2006-04-30 at 23:56 -0400, Joe Marcus Clarke wrote:
> On Sun, 2006-04-30 at 20:18 -0700, Sean McNeil wrote:
> > Folks,
> > 
> > Got an amd64 -CURRENT machine here and I get the following when I bring
> > up tsclient and just hit the cancel button (same thing happens when I
> > try to connect):
> 
> I can't reproduce.  Can you get a backtrace with tsclient and glib20
> built with debugging symbols?

Here you go:

(gdb) bt full
#0  0x0000000803910106 in g_build_path_va (separator=0x4108cd "/",
    first_element=0x1 <Error reading address 0x1: Bad address>,
    args=0x7fffffffd480, str_array=0x0) at gfileutils.c:1503
        element = (
    const gchar *) 0x19 <Error reading address 0x19: Bad address>
        start = (const gchar *) 0x4108cf "last.tsc"
        end = (const gchar *) 0x8 <Error reading address 0x8: Bad
address>
        result = (GString *) 0x906ae0
        separator_len = 1
        is_first = 0
        have_leading = 1
        single_element = (const gchar *) 0x0
        next_element = (
    const gchar *) 0x10 <Error reading address 0x10: Bad address>
        last_trailing = (const gchar *) 0x4108d7 ""
        i = 0
#1  0x00000008039103af in IA__g_build_path (separator=0x7b207d "",
    first_element=0x4108d7 "") at gfileutils.c:1638
        args = {{gp_offset = 40, fp_offset = 48,
    overflow_arg_area = 0x7fffffffd560, reg_save_area = 0x7fffffffd4a0}}
        __PRETTY_FUNCTION__ = "IA__g_build_path"
#2  0x000000000040d4d6 in on_btnQuit_clicked (button=0x6fcefd,
    user_data=0x4108d7) at connect.c:1328

where

1328      gchar *filename = g_build_path ("/", home, "last.tsc");
(gdb) p home
$1 = (gchar *) 0x59d540 "/home/sean/.tsclient"

This looks like a varargs issue. I am getting a non-null returned from

1497                next_element = va_arg (*args, gchar *);

after the "last.tsc":

(gdb) p next_element
$9 = (const gchar *) 0x19 <Error reading address 0x19: Bad address>

[sean@triton ~]$ uname -a
FreeBSD triton.mcneil.com 6.1-RC FreeBSD 6.1-RC #75: Sun Apr 30 21:37:31
PDT 2006     root@triton.mcneil.com:/usr/obj/usr/src/sys/TRITON  amd64

Sean





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1146468375.40457.7.camel>