Date: Mon, 25 Mar 2013 04:56:45 GMT From: Carter Parker <carterbparker@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/177363: graphics/pqiv aborts when opening an image Message-ID: <201303250456.r2P4uj07000199@red.freebsd.org> Resent-Message-ID: <201303250500.r2P500N7035712@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 177363 >Category: ports >Synopsis: graphics/pqiv aborts when opening an image >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: Mon Mar 25 05:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Carter Parker >Release: 9.1 >Organization: >Environment: FreeBSD perception 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Fri Jan 18 20:41:06 UTC 2013 root@perception:/usr/src/sys/amd64/compile/PERCEPTION amd64 >Description: Various functions are deprecated in the latest glib update, and since pqiv uses those functions, the following error results when trying to view an image: GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_unlock': Operation not permitted. Aborting. Abort trap: 6 I've attached trimmed output of pkg_info showing the versions of both: pqiv-0.12 glib-2.34.3 >How-To-Repeat: Open an image with pqiv. >Fix: I've attached a patch that removes calls to the deprecated functions, which fixes it for me. Patch attached with submission follows: --- pqiv.c.orig 2013-03-24 22:34:51.793698424 -0500 +++ pqiv.c 2013-03-24 22:36:06.815695477 -0500 @@ -2251,9 +2251,9 @@ /* }}} */ /* glib & threads initialization {{{ */ DEBUG1("Debug mode enabled"); - g_type_init(); - g_thread_init(NULL); - gdk_threads_init(); +// g_type_init(); +// g_thread_init(NULL); +// gdk_threads_init(); if(gtk_init_check(&argc, &argv) == FALSE) { die("Failed to open X11 display."); } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303250456.r2P4uj07000199>