astro/foxtrotgps (1.1.1_1 from ports SVN r315646) crashes on start
Matthias Apitz
guru at unixarea.de
Mon Apr 29 15:40:42 UTC 2013
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 at 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
-------------- next part --------------
--- 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;
}
More information about the freebsd-ports
mailing list