From owner-freebsd-ports@FreeBSD.ORG Mon Apr 29 15:40:42 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1F1371A2 for ; Mon, 29 Apr 2013 15:40:42 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id B19A51CEF for ; Mon, 29 Apr 2013 15:40:41 +0000 (UTC) Received: from [46.244.147.75] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UWqBt-0006lx-GX; Mon, 29 Apr 2013 17:40:33 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id r3TFeXg0002232; Mon, 29 Apr 2013 17:40:33 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id r3TFeWSq002231; Mon, 29 Apr 2013 17:40:32 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 29 Apr 2013 17:40:32 +0200 From: Matthias Apitz To: freebsd-ports@freebsd.org Subject: Re: astro/foxtrotgps (1.1.1_1 from ports SVN r315646) crashes on start Message-ID: <20130429154031.GA2206@tinyCurrent> References: <20130428180134.GA1770@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130428180134.GA1770@tiny.Sisis.de> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 46.244.147.75 Cc: crwhipp@gmail.com, Pierre Pronchery X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Apr 2013 15:40:42 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit El día Sunday, April 28, 2013 a las 08:01:35PM +0200, Matthias Apitz escribió: > > Hello, > > Foxtrotgps crashes on start on 10-CURRENT r235646 during 'pthread_mutex_unlock', > details follow below; > Thanks > Hi, The attached patch (to be placed in astro/foxtrotgps/files/patch-src-main before 'make install') fixes the bug; HIH matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-src-main --- src/main.c.orig 2012-06-14 06:41:11.000000000 +0200 +++ src/main.c 2013-04-29 17:19:50.000000000 +0200 @@ -200,9 +200,17 @@ init(); - gtk_main (); - - - + /* Properly call gdk_threads_enter() and gdk_threads_leave() to prevent + abort() on startup due to gtk trying to unlock a uninitialized + mutex + see also: http://openbsd.7691.n7.nabble.com/geo-tangogps-abort-trap-td147777.html + */ + + gdk_threads_enter(); + + gtk_main (); + + gdk_threads_leave(); + return 0; } --WIyZ46R2i8wDzkSu--