From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 10 06:12:02 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 354D5106566C; Thu, 10 Apr 2008 06:12:02 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (penna-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id C88048FC22; Thu, 10 Apr 2008 06:12:01 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.2/8.14.2) with ESMTP id m3A6CSQb039068; Thu, 10 Apr 2008 02:12:28 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: cokane@freebsd.org In-Reply-To: <47FD34E8.2000005@FreeBSD.org> References: <47FD09AC.2020907@FreeBSD.org> <1207776230.61729.28.camel@shumai.marcuscom.com> <47FD34E8.2000005@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-4iCDTsi2nQAeluyiy5KG" Organization: MarcusCom, Inc. Date: Thu, 10 Apr 2008 02:11:55 -0400 Message-Id: <1207807915.61729.40.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,MIME_QP_LONG_LINE, NO_RELAYS autolearn=no version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on creme-brulee.marcuscom.com Cc: gnome@freebsd.org Subject: Re: Seahorse issues 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: Thu, 10 Apr 2008 06:12:02 -0000 --=-4iCDTsi2nQAeluyiy5KG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2008-04-09 at 17:28 -0400, Coleman Kane wrote: > Joe Marcus Clarke wrote: > > On Wed, 2008-04-09 at 14:23 -0400, Coleman Kane wrote: > > =20 > >> I recently updated to GNOME 2.22, and ever since I have not been able = to=20 > >> have seahorse work, breaking application integration with GPG, etc.... > >> > >> I filed a bug with the GNOME project, but perhaps someone else is=20 > >> running into this: > >> http://bugzilla.gnome.org/show_bug.cgi?id=3D527193 > >> =20 > > > > They will most likely come back and tell you to get a backtrace with > > symbols. It looks like a problem with either missing headers or a > > missing cast, though. If I'm right, this would only affect 64-bit > > platforms. > > > > Joe > > =20 > Thanks, I pre-empted that by rigging the seahorse build so that it built=20 > with -g -O0, and copied the non-stripped seahorse-agent binary into=20 > /usr/local/bin for my submitted backtrace. Amazingly enough, it turns=20 > out that even if you specify --enable-debug on the configure line, the=20 > installation step still decided to strip the binaries after=20 > installation. nice. >=20 > Anyhow, there is hopefully enough info in there for them to figure out=20 > what's up (my guess is that the missing cast is the likely culprit, as=20 > it caused similar misbehavior in evolution some time back). The problem is the fact that FreeBSD's mlock() requires setuid privileges, and thus seahorse cannot allocate secure memory. The standard malloc functions are overridden in libseahorse/seahorse-secure-memory.c. Because they fail to allocate secure memory, everything fails, and the agent aborts. If you comment out the guts of seahorse_secure_memory_init(), things should work. That said, it should not be fatal that the gnome-keyring secure memory functions don't work. That should just result in a warning, and a fallback to insecure memory. Perhaps the bug needs to be moved to gnome-keyring. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-4iCDTsi2nQAeluyiy5KG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkf9r6sACgkQb2iPiv4Uz4eDdACcDl1lleUJC8tRaorBDoQFfJlX F7IAnjaWOgecI9gmxRuf7tyfnZxv0pcg =WulB -----END PGP SIGNATURE----- --=-4iCDTsi2nQAeluyiy5KG--