From owner-freebsd-stable Mon Feb 12 2:27:34 2001 Delivered-To: freebsd-stable@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id D082837B401 for ; Mon, 12 Feb 2001 02:27:31 -0800 (PST) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 14SGCg-000Ftz-00 for stable@freebsd.org; Mon, 12 Feb 2001 10:27:30 +0000 Received: (from rasputin@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f1CARTY06859 for stable@freebsd.org; Mon, 12 Feb 2001 10:27:29 GMT (envelope-from rasputin) Date: Mon, 12 Feb 2001 10:27:29 +0000 From: Rasputin To: stable@freebsd.org Subject: Re: getenv() problems on 4.2-STABLE Message-ID: <20010212102729.A6521@dogma.freebsd-uk.eu.org> References: <20010211234348.A5894@superhero.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010211234348.A5894@superhero.org>; from erichz@superhero.org on Sun, Feb 11, 2001 at 11:43:48PM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Erich Zigler [010212 05:45]: > I've currently been working on the Gabber port. I'm running in to a constant > problem though. Whenever gettext or GNOME makes a getenv() call it > segfaults. This is Gabber 0.8.1. Here is an example of one of the backtraces... > > #0 0x28c0e7a3 in getenv () from /usr/lib/libc_r.so.4 > #1 0x2881aa5d in guess_category_value () from /usr/local/lib/libintl.so.1 > #2 0x2881a36a in dcgettext__ () from /usr/local/lib/libintl.so.1 > #3 0x2881ab0c in dgettext__ () from /usr/local/lib/libintl.so.1 > #4 0x2881ab38 in gettext__ () from /usr/local/lib/libintl.so.1 > #5 0x28819ffe in gettext () from /usr/local/lib/libintl.so.1 > #6 0x80c0efb in GabberWin::OnSessionConnected (this=0x8390a00, > t=@0x838b200) > at GabberWin.cc:302 I assume Gabber uses X libraries, etc. to reach getenv? Is there a possibility one of those libraries may have it's own version of getenv? The one you'd want is defined in stdlib.h (which wasn't in your code snippet). Sorry, that's all I got (still new to C). -- Rasputin Jack of All Trades :: Master of Nuns To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message