From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 12 18:30:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 19CC42AE for ; Tue, 12 Mar 2013 18:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id F1910D41 for ; Tue, 12 Mar 2013 18:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2CIU0Wx051049 for ; Tue, 12 Mar 2013 18:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2CIU06l051048; Tue, 12 Mar 2013 18:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 12 Mar 2013 18:30:00 GMT Resent-Message-Id: <201303121830.r2CIU06l051048@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yamagi Burmeister Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 611BF126 for ; Tue, 12 Mar 2013 18:27:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 51CBACD8 for ; Tue, 12 Mar 2013 18:27:34 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2CIRXkm066546 for ; Tue, 12 Mar 2013 18:27:33 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2CIRXAx066545; Tue, 12 Mar 2013 18:27:33 GMT (envelope-from nobody) Message-Id: <201303121827.r2CIRXAx066545@red.freebsd.org> Date: Tue, 12 Mar 2013 18:27:33 GMT From: Yamagi Burmeister To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/176888: [PATCH] audio/sonata crashes since last devel/glib20 update X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 18:30:01 -0000 >Number: 176888 >Category: ports >Synopsis: [PATCH] audio/sonata crashes since last devel/glib20 update >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 12 18:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Yamagi Burmeister >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD happy.home.yamagi.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243792M: Sun Dec 2 17:53:10 CET 2012 root@happy.home.yamagi.org:/usr/obj/usr/src/sys/HAPPY amd64 >Description: Since the last devel/glib20 update audio/sonata crashes at startup with: GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_unlock': Operation not permitted. Aborting. Investigation showed that this is mainly caused by enabling GTK threading but still calling pyGTK function without holding the mutex. A simple solution is to desable GTK threading at all, sonata still works correct without it. An updated version of patch-sonata.py. >How-To-Repeat: Upgrade devel/glib20 to 2.34.3 and start sonata. >Fix: --- sonata.py_orig 2013-03-12 19:24:47.000000000 +0100 +++ sonata.py 2013-03-12 19:25:05.000000000 +0100 @@ -59,6 +59,8 @@ # https://bugs.launchpad.net/ubuntu/+source/zsi/+bug/208855 sys.path.append('/usr/lib/python2.5/site-packages/oldxml') +sys.path.remove('/usr/local/bin') + # hint for gnome.init to set the process name to 'sonata' if platform.system() == 'Linux': sys.argv[0] = 'sonata' @@ -149,7 +151,7 @@ socketsettimeout(5) if not args.should_skip_gui(): - gtk.gdk.threads_init() + #gtk.gdk.threads_init() # we don't use gtk.LinkButton, but gtk.AboutDialog does; # in gtk 2.16.0 without this, the about uri opens doubly: >Release-Note: >Audit-Trail: >Unformatted: