From kris@obsecurity.org  Wed Nov  5 21:13:02 2003
Return-Path: <kris@obsecurity.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6D98216A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Nov 2003 21:13:02 -0800 (PST)
Received: from obsecurity.dyndns.org (adsl-63-207-60-234.dsl.lsan03.pacbell.net [63.207.60.234])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A1A7D43FD7
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Nov 2003 21:13:01 -0800 (PST)
	(envelope-from kris@obsecurity.org)
Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5])
	by obsecurity.dyndns.org (Postfix) with ESMTP id E75BE66B60
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Nov 2003 21:12:59 -0800 (PST)
Received: by rot13.obsecurity.org (Postfix, from userid 0)
	id B6D7769E; Wed,  5 Nov 2003 21:12:59 -0800 (PST)
Message-Id: <20031106051259.B6D7769E@rot13.obsecurity.org>
Date: Wed,  5 Nov 2003 21:12:59 -0800 (PST)
From: kris@obsecurity.org, "Kennaway <kris"@FreeBSD.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: vchans cause mplayer crash
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58989
>Category:       kern
>Synopsis:       vchans cause mplayer crash
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sound
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 05 21:20:16 PST 2003
>Closed-Date:    Thu Nov 06 20:15:17 PST 2003
>Last-Modified:  Thu Nov 06 20:15:17 PST 2003
>Originator:     Kris Kennaway
>Release:        FreeBSD 5.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD rot13.obsecurity.org 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Wed Oct 8 04:08:28 PDT 2003 kkenn@rot13.obsecurity.org:/usr/obj/usr/src/sys/ROT13 i386

pcm0: <AudioPCI ES1370> port 0xa400-0xa43f irq 9 at device 13.0 on pci2
>Description:
When hw.snd.pcm0.vchans=1, seeking on a movie stream (e.g. pressing
forward/back arror during playback) will cause mplayer to crash.  There are
no other applications accessing the sound driver, although vchans work as
expected to multiplex the sound if I try.

It is likely that the sound driver is behaving differently when vchans are
enabled (e.g. returning an unexpected error), and mplayer does not handle
this unexpected condition.  Without further debugging I cannot tell if mplayer
is at fault or the pcm driver.
>How-To-Repeat:
hw.snd.maxautovchans=5
hw.snd.pcm0.vchans=1

Install mplayer and use it to play a video file.  Press the right arrow a few
dozen times to skip through the movie.  At some point mplayer will crash.

>Fix:
Setting hw.snd.pcm0.vchans=0 "fixes" this problem.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: kris 
Responsible-Changed-When: Wed Nov 5 21:28:49 PST 2003 
Responsible-Changed-Why:  
Assign to sound maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58989 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Thu Nov 6 20:14:55 PST 2003 
State-Changed-Why:  
This appears to be fixed in -CURRENT, sorry for the noise. 

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