From nobody@FreeBSD.org  Mon Apr  2 19:26:50 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 9D4C837B718
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Apr 2001 19:26:50 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f332Qoc63343;
	Mon, 2 Apr 2001 19:26:50 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104030226.f332Qoc63343@freefall.freebsd.org>
Date: Mon, 2 Apr 2001 19:26:50 -0700 (PDT)
From: jazepeda@pacbell.net
To: freebsd-gnats-submit@FreeBSD.org
Subject: libc_r aborts when using the KDE media player (noatun) with the sound server(aRts)
X-Send-Pr-Version: www-1.0

>Number:         26307
>Category:       bin
>Synopsis:       libc_r aborts when using the KDE media player (noatun) with the sound server(aRts)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-threads
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 19:30:01 PDT 2001
>Closed-Date:    Sat Feb 28 01:33:09 PST 2004
>Last-Modified:  Sat Feb 28 01:33:09 PST 2004
>Originator:     Alex Zepeda
>Release:        Current
>Organization:
>Environment:
FreeBSD zippy.mybox.zip 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Mon Apr  2 00:38:55 PDT 2001     root@zippy.mybox.zip:/usr/src/sys/compile/ZIPPY_SMP  i386

>Description:
Using mpeglib within noatun (or any other KDE media player) will cause
the player to crash (I'm operating on the assumption this is the fault
of linking in some threaded and some non threaded objects.  However, this
work succesfully on Linux and Solaris.  The interesting part is that this
takes the arts daemon down with it.  With a recent world+kernel, arts is
crashing inside libc, which got my attention anyways.

The interesting output (i.e. not from arts) was:
Fatal error 'gc cannot wait for a signal' at line 231 in file 
/usr/src/lib/libc_r/uthread/uthread_gc.c (errno = 0)
Abort trap (core dumped)

>How-To-Repeat:
compile + install kdelibs (I'm using a CVS checkout from the HEAD branch, but I'm sure similar things would happen from the ports)
compile + install noatun, mpeglib, mpeglib_artsplug from kdemultimedia
(This also requires tweaking one of the configure.in.in scripts, and is likely outside the scope of the kdemultimedia port)

run artsd (running in a terminal can be very helpful)
run noatun
play an mp3, wav, or ogg vorbis file (anything using mpeglib).
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports 
Responsible-Changed-By: dd 
Responsible-Changed-When: Mon Apr 2 19:53:15 PDT 2001 
Responsible-Changed-Why:  
Ports issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26307 
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:  
Looks like it's not a ports issue after all. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26307 

From: Will Andrews <will@physics.purdue.edu>
To: dd@FreeBSD.ORG
Cc: freebsd-ports@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG,
	FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: bin/26307: libc_r aborts when using the KDE media player (noatun) with the sound server(aRts)
Date: Fri, 13 Apr 2001 16:29:40 -0500

 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.
 
 <paraphrase origin=3D"aRts author">
 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.
 </paraphrase>
 
 I may not remember something above correctly, but it makes sense to me.
 
 --=20
 wca

From: Will Andrews <will@physics.purdue.edu>
To: Will Andrews <will@physics.purdue.edu>,
	FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.ORG>
Cc: dd@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG,
	freebsd-bugs@FreeBSD.ORG
Subject: Re: bin/26307: libc_r aborts when using the KDE media player (noatun) with the sound server(aRts)
Date: Fri, 13 Apr 2001 16:32:25 -0500

 On Fri, Apr 13, 2001 at 04:29:40PM -0500, Will Andrews wrote:
 > 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 also forgot to mention that Alex Zepeda <garbanzo@kde.org> added kewl
 mpg123/mp3 plugins to replace the lame old mpeglib crap.  So in KDE CVS
 mp3's work very nicely (according to him).  :)
 
 --=20
 wca

From: Tom Hukins <tom@FreeBSD.org>
To: Will Andrews <will@physics.purdue.edu>,
	FreeBSD GNATS DB <FreeBSD-gnats-submit@FreeBSD.ORG>, dd@FreeBSD.ORG,
	freebsd-ports@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Cc:  
Subject: Re: bin/26307: libc_r aborts when using the KDE media player (noatun) with the sound server(aRts)
Date: Mon, 17 Sep 2001 12:49:29 +0100

 The noatun problems seem to be fixed in the ports for kde-2.2.  Does
 this mean we can close this PR now?
 
 Tom
State-Changed-From-To: open->closed 
State-Changed-By: tom 
State-Changed-When: Sat Sep 22 02:58:26 PDT 2001 
State-Changed-Why:  
This problem does not occur with the latest KDE - noatun works fine now 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26307 
State-Changed-From-To: closed->open 
State-Changed-By: tom 
State-Changed-When: Sun Oct 7 09:17:25 PDT 2001 
State-Changed-Why:  
Alex Zepeda <jazepeda@pacbell.net> reports: 

The band-aid solution I implemented was to hack up a copy of mpg123 as 
the mp3 plugin, and hack up a separate ogg vorbis plugin for noatun.   
This should be re-opened and re-checked with the mpeglib plugin. 

Actually, the mpg123 based plugin is generally superior, however, 
judging by where the crash is pointing at (within libc_r), there's 
something wrong with libc_r, thus the open pr. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26307 
Responsible-Changed-From-To: freebsd-bugs->freebsd-threads 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 18:33:26 PDT 2003 
Responsible-Changed-Why:  
Assign to threads mailing list 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26307 
State-Changed-From-To: open->closed 
State-Changed-By: lofi 
State-Changed-When: Sat Feb 28 01:32:00 PST 2004 
State-Changed-Why:  
Fixed for ages. 

Approved by: Originator 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26307 
>Unformatted:
