From owner-freebsd-stable Sat May 19 13:39:43 2001 Delivered-To: freebsd-stable@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id DB73937B43F for ; Sat, 19 May 2001 13:39:39 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id QAA17009; Sat, 19 May 2001 16:39:02 -0400 (EDT) Date: Sat, 19 May 2001 16:39:02 -0400 (EDT) From: Daniel Eischen To: Randall Hopper Cc: stable@FreeBSD.ORG Subject: Re: -pthread: Cannot allocate priority ready queue In-Reply-To: <20010519151417.A86097@nc.rr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 19 May 2001, Randall Hopper wrote: > Daniel Eischen: > |On Sat, 19 May 2001, Randall Hopper wrote: > |> I'm compiling an OpenGL app, which on FreeBSD requires -pthread, and I'm > |> getting this error. We're core dumping before we even get to main() in the > |> pthread code. > |> > |> Anyone else seen this? Any tips or work-arounds? > |> > |> > src/exec/dxexec/dxexec > |> Fatal error 'Cannot allocate priority ready queue.' at line ? in file > |> /usr/src/lib/libc_r/uthread/uthread_init.c (errno = ?) > |> Abort (core dumped) > | > |This is pretty simple code; it just mallocs a few hundred bytes for the > |ready queue and works for every other application. This is the first > |time I've ever seen that error. I'd look elsewhere for the problem. > > Thanks. In case it might help, here's more info. > > I just recompiled the app sans -pthread and linked with the > libGL.so/libGLU.so from stand-alone Mesa (not the -pthread versions built > by the XFree86 4.0.3 port), and the app works fine. Also, this is on > FreeBSD 4.2-R. What does `ldd src/exec/dxexec/dxexec` show? There were a couple of bugs in the threads library for 4.2R, but they shouldn't cause that error. Make sure everything that dxexec depends on has been recompiled. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message