Subject: pkg/23959: artsd can't be killed if it has played sound
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jmmv@menta.net>
List: netbsd-bugs
Date: 01/03/2004 16:20:47
>Number:         23959
>Category:       pkg
>Synopsis:       artsd can't be killed if it has played sound
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 03 15:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Julio M. Merino Vidal
>Release:        NetBSD 1.6ZG
>Organization:
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/
>Environment:
	
	
System: NetBSD dawn.local 1.6ZG NetBSD 1.6ZG (DAWN) #1: Fri Jan 2 14:25:29 CET 2004 jmmv@dawn.local:/home/NetBSD/obj/home/NetBSD/src/sys/arch/i386/compile/DAWN i386
Architecture: i386
Machine: i386
>Description:
        If the artsd daemon has played any sound during its execution, it
        refuses to be killed (SIGTERM signal).  Otherwise, if the daemon
        has been running but it has not played any sound, it can be killed
        perfectly.  Note that SIGKILL always kills it.

        When running artsd trough ktrace or with PTHREAD_DIAGASSERT=e, I get
        the following messages when sending a SIGTERM signal to it:

            assertion "target->pt_state != PT_STATE_RUNNING || target->pt_blockgen != target->pt_unblockgen" failed: file "/home/NetBSD/src/lib/libpthread/pthread_sig.c", line 779, function "pthread__kill"

            [1] + Abort                PTHREAD_DIAGASSERT=e artsd  (core dumped)

        This is very annoying since you can't exit KDE cleanly.  When
        exiting the session, it gets stuck waiting for artsd to finish, but
        this won't ever happen if you don't kill -9 it manually.
>How-To-Repeat:
        Start the daemon: artsd &
        Play a sound through it (with noatun for example)
        Try to kill the daemon: pkill artsd
        Notice how it's still running: ps ax | grep artsd
        Kill it: pkill -9 artsd
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: