pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49671: snes9x-gtk dumps core on start



>Number:         49671
>Category:       pkg
>Synopsis:       snes9x-gtk dumps core on start
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 17 19:10:00 +0000 2015
>Originator:     Stephen Black
>Release:        pkgsrc-2014Q4
>Organization:
N/A
>Environment:
NetBSD black-netbsd.black.net 6.1.5 NetBSD 6.1.5 (BLACK_NETBSD) #0: Sun Feb  8 15:20:11 EST 2015  sjb%black-netbsd.black.net@localhost:/usr/src/sys/arch/amd64/compile/BLACK_NETBSD amd64
>Description:
snes9x-gtk compiles fine on amd64, but dumps core on start with error: 
"unexpected error from c library during 'pthread_mutex_unlock': operation not permitted"
>How-To-Repeat:
Try to start snes9x-gtk
>Fix:
The FreeBSD 10.1 ports package has a patch for this that solves the problem:

"patch-gtk-src-gtk__s9x.cpp"

--- src/gtk_s9x.cpp.orig	2013-10-25 03:47:08.000000000 -0700
+++ src/gtk_s9x.cpp	2013-10-25 03:47:32.000000000 -0700
@@ -44,6 +44,7 @@
 
     g_thread_init (NULL);
     gdk_threads_init ();
+    gdk_threads_enter();
 
     gtk_init (&argc, &argv);
 
@@ -127,6 +128,8 @@
 
     gtk_main ();
 
+    gdk_threads_leave();
+    
     return 0;
 }



Home | Main Index | Thread Index | Old Index