Date: Mon, 29 Apr 2013 17:40:32 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-ports@freebsd.org Cc: crwhipp@gmail.com, Pierre Pronchery <khorben@defora.org> Subject: Re: astro/foxtrotgps (1.1.1_1 from ports SVN r315646) crashes on start Message-ID: <20130429154031.GA2206@tinyCurrent> In-Reply-To: <20130428180134.GA1770@tiny.Sisis.de> References: <20130428180134.GA1770@tiny.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130429154031.GA2206>