From owner-freebsd-bugs Fri Apr 13 14:31:25 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from casimir.physics.purdue.edu (casimir.physics.purdue.edu [128.210.146.111]) by hub.freebsd.org (Postfix) with ESMTP id A589E37B422; Fri, 13 Apr 2001 14:31:20 -0700 (PDT) (envelope-from will@physics.purdue.edu) Received: by casimir.physics.purdue.edu (Postfix, from userid 1000) id 757131BD71; Fri, 13 Apr 2001 16:29:40 -0500 (EST) Date: Fri, 13 Apr 2001 16:29:40 -0500 From: Will Andrews To: dd@FreeBSD.ORG Cc: freebsd-ports@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, FreeBSD GNATS DB Subject: Re: bin/26307: libc_r aborts when using the KDE media player (noatun) with the sound server(aRts) Message-ID: <20010413162940.G12543@casimir.physics.purdue.edu> Reply-To: Will Andrews , FreeBSD GNATS DB References: <200104132048.f3DKmQ503992@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.3.15i In-Reply-To: <200104132048.f3DKmQ503992@freefall.freebsd.org>; from dd@FreeBSD.ORG on Fri, Apr 13, 2001 at 01:48:27PM -0700 X-Operating-System: Linux 2.2.18 sparc64 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Apr 13, 2001 at 01:48:27PM -0700, dd@FreeBSD.ORG wrote: > Synopsis: libc_r aborts when using the KDE media player (noatun) with the= sound server(aRts) >=20 > Responsible-Changed-From-To: freebsd-ports->freebsd-bugs > Responsible-Changed-By: dd > Responsible-Changed-When: Fri Apr 13 13:48:02 PDT 2001 > Responsible-Changed-Why:=20 > Looks like it's not a ports issue after all. Indeed, aRts is linked with pthreads, which causes issues becuz some parts of aRts aren't thread-safe (and thus cannot use reentrant forms of libc functions). Noatun is also not thread-safe. The fact that pthreads is implemented in user-space makes it impossible to change the reference for the appropriate syscalls. At least this is true for 4.x. Hopefully 5.x will put pthreads in the kernel. This problem will be revisited for KDE 2.2, where the author of aRts is going to offer non-threadsafe versions for the libraries in aRts which are written in a threadsafe manner. I may not remember something above correctly, but it makes sense to me. --=20 wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message