From owner-freebsd-gnome@FreeBSD.ORG Mon Apr 17 22:03:48 2006 Return-Path: X-Original-To: gnome@FreeBSD.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C2BE16A401 for ; Mon, 17 Apr 2006 22:03:48 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from av-tac-rtp.cisco.com (bantam.cisco.com [64.102.19.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id D930943D46 for ; Mon, 17 Apr 2006 22:03:47 +0000 (GMT) (envelope-from marcus@FreeBSD.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost [127.0.0.1]) by av-tac-rtp.cisco.com (8.11.7p1+Sun/8.11.7) with ESMTP id k3HM3lN24024; Mon, 17 Apr 2006 18:03:47 -0400 (EDT) Received: from [64.102.192.149] (dhcp-64-102-192-149.cisco.com [64.102.192.149]) by rooster.cisco.com (8.11.7p1+Sun/8.11.7) with ESMTP id k3HM3km29746; Mon, 17 Apr 2006 18:03:46 -0400 (EDT) Message-ID: <444410C2.8040907@FreeBSD.org> Date: Mon, 17 Apr 2006 18:03:46 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Pascal Hofstee References: In-Reply-To: X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome@FreeBSD.org Subject: Re: gnome-session [mc-gnome] on amd64 problems. X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 22:03:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pascal Hofstee wrote: > Hi, > > It looks like i stumbled across some pointer-truncation in the current > MC-gnome gnome-session port on amd64. > I'll try to outline the problem as i understand it below .. any assistence > here would be appreciated. > > in ${WORKDIR}/gnome-session/gsm-xrandr.c there's a function called > "gsm_set_display_properties" > at line 134 the following call get's made: > > client = gsm_get_conf_client (); > > client is defined in the function definition as GConfClient *client; > (this definition is inside an #ifdef HAVE_RANDR .. i have tried moving it > outside the ifdef to no avail though). > > I have stepped through the gsm_get_conf_client() call in a gdb session .. > and everything seems to be alright including the function's return call. The > function tries to return a valid 64-bit pointer. > > However .. immediately after the assignment has been done. client now points > to a (truncated) 32-bit address. > This obviously causes a problem whenever client is used to get any gconf > data, which in turn causes gnome-session to segfault. > My first guess is that somehow the storagesize/datatype for GConfClient is > being obscured causing the compiler to default it to a 32bit integer, which > would explain the sudden pointer truncation upon assignment. > > I currently do not have an actual backtrace available .. as i am not writing > this on my FreeBSD system. > > > If anybody has any idea why the pointer gets truncated to 32bit in this > case, please enlighten me so i can try to test potential fixes. Fixed. Joe - -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFERBDCb2iPiv4Uz4cRAlwdAJ9KyB7/jzJ0sd0FacaTbkD98MWaIQCeOTbG UXc0q0ARW0nEcIi2s37UaFo= =qWVb -----END PGP SIGNATURE-----