From owner-freebsd-x11@FreeBSD.ORG Mon Sep 18 12:25:04 2006 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 692C316A403 for ; Mon, 18 Sep 2006 12:25:04 +0000 (UTC) (envelope-from harikurniawan@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B18143D6B for ; Mon, 18 Sep 2006 12:24:56 +0000 (GMT) (envelope-from harikurniawan@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so2942699nfc for ; Mon, 18 Sep 2006 05:24:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=oIMW5zCCciMMrksqMgnCUgc8bX3REoKcZpaNpVRLgmaE0J4p6S3ZjeWGSnVg1jkzU0LcLawL6/ikHHdt9r25+M/lxIJQPfHGTcGOzMf1qP6SagoBWMNQF2OIhXdthxW2b1wrmmpWf2E5SN8Ah4liGoGXDk0CfmHE8nYmmia6BMU= Received: by 10.49.43.2 with SMTP id v2mr16819474nfj; Mon, 18 Sep 2006 05:24:55 -0700 (PDT) Received: by 10.49.18.11 with HTTP; Mon, 18 Sep 2006 05:24:48 -0700 (PDT) Message-ID: <4c40c4e70609180524j29543dedi39cf4214cfb76424@mail.gmail.com> Date: Mon, 18 Sep 2006 12:24:48 +0000 From: "Angka H. K." To: "Daniel Eischen" In-Reply-To: MIME-Version: 1.0 References: <4c40c4e70609180410m59af8a2br5ea12c7e3b497d12@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-x11@freebsd.org, freebsd-current@freebsd.org Subject: Re: libpthread prevent glxgears to run X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 12:25:04 -0000 Here is the ldd output of my glxgears: # ldd ./glxgears ./glxgears: libglut.so.3 => /usr/X11R6/lib/libglut.so.3 (0x2807f000) libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x280be000) libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x2814e000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x281b9000) libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x281c6000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x281da000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x281e2000) libm.so.4 => /lib/libm.so.4 (0x282c1000) libc.so.7 => /lib/libc.so.7 (0x282d6000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x283ca000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x28415000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x284e0000) libpthread.so.2 => /lib/libpthread.so.2 (0x284e5000) libdrm.so.2 => /usr/local/lib/libdrm.so.2 (0x2850a000) libXau.so.6 => /usr/X11R6/lib/libXau.so.6 (0x28511000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28514000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28525000) libXCB.so.0 => /usr/X11R6/lib/libXCB.so.0 (0x2853b000) librpcsvc.so.3 => /usr/lib/librpcsvc.so.3 (0x2854b000) libXdmcp.so.6 => /usr/X11R6/lib/libXdmcp.so.6 (0x28553000) I did rebuilding world then recompile libX11 module and recompile Mesa with glxgears. And the result is the same: # ./glxgears Fatal error 'Recurse on a private mutex.' at line 1003 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 35) Abort (core dumped) What did I missed to compile ? On 9/18/06, Daniel Eischen wrote: > > On Mon, 18 Sep 2006, Angka H. K. wrote: > > > This code : > > > > if (m->m_flags & MUTEX_FLAGS_PRIVATE) > > PANIC("Recurse on a private mutex."); > > > > at file "/usr/src/lib/libpthread/thread/thr_mutex.c" line 1002 prevent > > glxgears to run with the following error : > > > > Fatal error 'Recurse on a private mutex.' at line 1003 in file > > /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 35) > > > > If the line is removed the glxgears is running well. > > > > Which could be wrong; The glgears code or the libptrhead code ? And what > the > > use of that line ? > > You are either linked to multiple thread libraries, or you > have an older executable or application libraries that need > to be rebuilt (because libc version was bumped without > bumping libpthread, libthr, & libc_r). > > -- > DE >