NetBSD Problem Report #47177

From bad@bsd.de  Sat Nov 10 15:30:32 2012
Return-Path: <bad@bsd.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id C372463DFC0
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Nov 2012 15:30:31 +0000 (UTC)
Message-Id: <20121110153027.5C70095@limiting-factor.k.bsd.de>
Date: Sat, 10 Nov 2012 16:30:27 +0100 (MET)
From: bad@bsd.de
Reply-To: bad@bsd.de
To: gnats-bugs@gnats.NetBSD.org
Subject: gnuplot 4.6.x wxterminal broken because of pthread errors
X-Send-Pr-Version: 3.95

>Number:         47177
>Category:       pkg
>Synopsis:       wxt terminal does not work on NetBSD.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 10 15:35:00 +0000 2012
>Closed-Date:    Sun May 18 20:30:56 +0000 2014
>Last-Modified:  Sun May 18 20:30:56 +0000 2014
>Originator:     Christoph Badura
>Release:        NetBSD 5.1_STABLE
>Organization:
bozotic software testing labs
>Environment:


System: NetBSD limiting-factor 5.1_STABLE NetBSD 5.1_STABLE (nervous-energy) #4: Fri Nov 4 16:57:02 MET 2011 root@youll-thank-me-later:/m/obj/m/src/sys/arch/i386/compile/nervous-energy i386
Architecture: i386
Machine: i386
>Description:
gnuplot 4.6.x hangs as soon as the wxt terminal is initialised
>How-To-Repeat:
PKG_OPTIONS.gnuplot+= wxterminal

$ env PTHREAD_DIAGASSERT=ea ../gnuplot

        G N U P L O T
        Version 4.6 patchlevel 1    last modified 2012-09-26 
        Build System: NetBSD i386

        Copyright (C) 1986-1993, 1998, 2004, 2007-2012
        Thomas Williams, Colin Kelley and many others

        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'wxt'
gnuplot> plot x
gnuplot: Error detected by libpthread: Unlocking mutex owned by another thread.
Detected by file "/m/src/lib/libpthread/pthread_mutex.c", line 425, function "pthread__mutex_unlock_slow".
See pthread(3) for information.
Abort trap (core dumped)

$ gdb gnuplot gnuplot.core
Core was generated by `gnuplot'.
Program terminated with signal 6, Aborted.
#0  0xba6750b7 in kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0xba6750b7 in kill () from /usr/lib/libc.so.12
#1  0xba755ac7 in pthread__errorfunc () from /usr/lib/libpthread.so.0
#2  0xba753c0a in pthread_mutex_init () from /usr/lib/libpthread.so.0
#3  0xba757820 in ?? () from /usr/lib/libpthread.so.0
#4  0x000001a9 in ?? ()
#5  0xba7578be in ?? () from /usr/lib/libpthread.so.0
#6  0xba757848 in ?? () from /usr/lib/libpthread.so.0
#7  0xbb2f2808 in ?? () from /usr/pkg/lib/libwx_gtk2u_core-2.8.so.0
#8  0xbb2faa0a in ?? () from /usr/pkg/lib/libwx_gtk2u_core-2.8.so.0
#9  0xbbbf6f30 in _rtld_find_symdef () from /usr/libexec/ld.elf_so
#10 0xbb230c83 in wxMutexInternal::Unlock ()
   from /usr/pkg/lib/libwx_baseu-2.8.so.0
#11 0xbb230cd1 in wxMutex::Unlock () from /usr/pkg/lib/libwx_baseu-2.8.so.0
#12 0xbb230d02 in wxMutexGuiLeave () from /usr/pkg/lib/libwx_baseu-2.8.so.0
#13 0xbb3bc52b in wxapp_poll_func ()
   from /usr/pkg/lib/libwx_gtk2u_core-2.8.so.0
#14 0xbaf17776 in g_main_context_prepare () from /usr/pkg/lib/libglib-2.0.so.0
#15 0xbaf1798f in g_main_loop_run () from /usr/pkg/lib/libglib-2.0.so.0
#16 0xbac727f9 in gtk_main () from /usr/pkg/lib/libgtk-x11-2.0.so.0
#17 0xbb3d499b in wxEventLoop::Run ()
   from /usr/pkg/lib/libwx_gtk2u_core-2.8.so.0
#18 0xbb45854a in wxAppBase::MainLoop ()
   from /usr/pkg/lib/libwx_gtk2u_core-2.8.so.0
#19 0xbb457c4e in wxAppBase::OnRun ()
   from /usr/pkg/lib/libwx_gtk2u_core-2.8.so.0
#20 0x08135a11 in wxtThread::Entry ()
#21 0xbb23220b in wxThreadInternal::PthreadStart ()
   from /usr/pkg/lib/libwx_baseu-2.8.so.0
#22 0xbb2322a3 in wxPthreadStart () from /usr/pkg/lib/libwx_baseu-2.8.so.0
#23 0xba75722b in pthread_setcancelstate () from /usr/lib/libpthread.so.0
#24 0xba696aa0 in swapcontext () from /usr/lib/libc.so.12
(gdb) 

>Fix:

unknown.

>Release-Note:

>Audit-Trail:
From: "Christoph Badura" <bad@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47177 CVS commit: pkgsrc/graphics/gnuplot
Date: Thu, 8 May 2014 20:48:55 +0000

 Module Name:	pkgsrc
 Committed By:	bad
 Date:		Thu May  8 20:48:55 UTC 2014

 Modified Files:
 	pkgsrc/graphics/gnuplot: Makefile options.mk

 Log Message:
 Configure with --with-wx-single-threaded when using wxwidgets.
 Makes wxt terminal usable again on NetBSD.  Also required on some Linux
 versions with newer Haswell cpus.
 PKGREVISION++
 Fixes PR pkg/47177.


 To generate a diff of this commit:
 cvs rdiff -u -r1.89 -r1.90 pkgsrc/graphics/gnuplot/Makefile
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/graphics/gnuplot/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: bad@NetBSD.org
State-Changed-When: Sun, 18 May 2014 20:30:56 +0000
State-Changed-Why:
confirmed fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.