NetBSD Problem Report #42116

From www@NetBSD.org  Wed Sep 23 19:09:53 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 9498563BD65
	for <gnats-bugs@gnats.netbsd.org>; Wed, 23 Sep 2009 19:09:53 +0000 (UTC)
Message-Id: <20090923190953.32DF263B8DF@www.NetBSD.org>
Date: Wed, 23 Sep 2009 19:09:53 +0000 (UTC)
From: randolf+netbsd.org@inter-corporate.com
Reply-To: randolf+netbsd.org@inter-corporate.com
To: gnats-bugs@NetBSD.org
Subject: VLC processes get parked when "kill"ed instead of terminating
X-Send-Pr-Version: www-1.0

>Number:         42116
>Category:       pkg
>Synopsis:       VLC processes get parked when "kill"ed instead of terminating
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ahoka
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 23 19:10:00 +0000 2009
>Last-Modified:  Tue Oct 05 00:40:02 +0000 2010
>Originator:     Randolf Richardson
>Release:        NetBSD v5.0.1
>Organization:
Inter-Corporate Computer & Network Services, Inc.
>Environment:
NetBSD video.netbsd.EXAMPLE.COM 5.0 NetBSD 5.0 (LUMBERCARTEL) #0: Sun Jul 26 14:09:17 PDT 2009  root@video.netbsd.EXAMPLE.COM:/usr/obj/sys/arch/amd64/compile/LUMBERCARTEL amd64
>Description:
I run VLC under GNU Screen to take an audio/video stream from an RTSP source and constantly write it out to a series of files (the output is piped to a Perl script that creates these series of files based on time and date).

When I attempt to terminate any instance of VLC with the "kill" command in the shell, or by pressing CTRL-C on its console (within the appropriate GNU Screen session), it terminates, but remains parked and the screen remains (I can press "CTRL-C" and "^C" appears on the screen).

CPU utilization remains at 0%, and its status as "parked," according to the Unix "top" command.

These processes never terminate completely.

User "Beket" in irc.freenode.net wrote something that might be helpful to someone looking into this bug, so I'm also including it as part of this report (thanks Beket!):

[11:48:33] <Beket> Usually when that happens, to my knowledge, there's a bad lock somewhere holding a resource.   And then locks accumulate over it

>How-To-Repeat:
Install "multimedia/vlc" from current pkgsrc in NetBSD 4 or 5.  My hardware is an Intel QuadCore Xeon with 8 GBs of RAM and many TBs of disk space (using FFSv2 for the filesystem).

Then, fire it up in GNU Screen by way of a shell script that will need to use "su" to start it (root is not an option in the more recent versions of VLC), then kill it and see it "parked" at 0% in "top."

>Fix:
Reboot the server with the "shutdown -r now" to get rid of the parked processes.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ahoka
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Fri, 16 Oct 2009 07:49:21 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Cem Kayali <cemkayali@eticaret.com.tr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42116
Date: Tue, 05 Oct 2010 03:38:16 +0300

 NetBSD 5.0.2 / amd64

 I have similar problem... Once you click on close button (X), vlc 
 disappears from screen while it stays active in background ("ps aux" 
 shows).

 It can be terminated via "kill -9" comand only.

 Regards,

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.