From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 6 00:20:09 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2688416A4DE for ; Sun, 6 Aug 2006 00:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD9743D46 for ; Sun, 6 Aug 2006 00:20:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k760K8qn005620 for ; Sun, 6 Aug 2006 00:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k760K8lk005617; Sun, 6 Aug 2006 00:20:08 GMT (envelope-from gnats) Resent-Date: Sun, 6 Aug 2006 00:20:08 GMT Resent-Message-Id: <200608060020.k760K8lk005617@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chad Fraleigh Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFFF816A4DE for ; Sun, 6 Aug 2006 00:15:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEA0443D53 for ; Sun, 6 Aug 2006 00:15:24 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k760FOr4064487 for ; Sun, 6 Aug 2006 00:15:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k760FON1064486; Sun, 6 Aug 2006 00:15:24 GMT (envelope-from nobody) Message-Id: <200608060015.k760FON1064486@www.freebsd.org> Date: Sun, 6 Aug 2006 00:15:24 GMT From: Chad Fraleigh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/101450: transcode/tcprobe broken for devfs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 00:20:09 -0000 >Number: 101450 >Category: misc >Synopsis: transcode/tcprobe broken for devfs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 06 00:20:07 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Chad Fraleigh >Release: 6.1 >Organization: >Environment: FreeBSD anonymous.host.name 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Fri Jul 28 18:51:04 EDT 2006 root@:/usr/src/sys/i386/compile/MYCONFIG i386 transcode-1.0.2_3 >Description: tcprobe fails on CD/DVD devices. The transcode 1.0.2_3 port uses device major numbers to determine how to use a device path. With devfs no longer using well known major device numbers, the function used to identify it thinks all devices are OSS (major 0). The broken code is in import/ioaux.c:probe_path(): # ifdef __FreeBSD__ case 4: /* acd */ return(TC_PROBE_PATH_ABSPATH); case 229: /* bktr */ return(TC_PROBE_PATH_BKTR); case 0: /* OSS */ return(TC_PROBE_PATH_OSS); # endif This causes an indirect error with tcprobe (which also effects the dvdrip port) when it attempts to do an SNDCTL_DSP_GETFMTS ioctl() [misreported in the error message as SNDCTL_DSP_SETFMT]. OpenBSD may also be affected if it has, or plans to, make simular device changes (in case any one cross project monitoring is reading this). >How-To-Repeat: % tcprobe -i /dev/acd0 [tcprobe] OSS audio device SNDCTL_DSP_SETFMT: Inappropriate ioctl for device [tcprobe] failed to probe source % tcprobe -i /dev/null [tcprobe] OSS audio device SNDCTL_DSP_SETFMT: Inappropriate ioctl for device [tcprobe] failed to probe source >Fix: Abstact: Determine reliable method to distinguish between CD/DVD, BKTR, OSS, and other devices and add approriete patch to the port and/or submit to original authors. Possibly even adding a warning message to the port during installation so that users know it is broken in this respect, until a real fix can be made. >Release-Note: >Audit-Trail: >Unformatted: