From owner-freebsd-hackers Mon Sep 20 1:52:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from Wit389306.student.utwente.nl (wit389306.student.utwente.nl [130.89.234.166]) by hub.freebsd.org (Postfix) with ESMTP id C9F67151CD for ; Mon, 20 Sep 1999 01:52:12 -0700 (PDT) (envelope-from djb@Wit389306.student.utwente.nl) Received: (from djb@localhost) by Wit389306.student.utwente.nl (8.9.3/8.9.3) id KAA17525 for freebsd-hackers@freebsd.org; Mon, 20 Sep 1999 10:52:10 +0200 (CEST) (envelope-from djb) From: "Dave J. Boers" Message-Id: <199909200852.KAA17525@Wit389306.student.utwente.nl> Subject: reading from pcm device To: freebsd-hackers@freebsd.org Date: Mon, 20 Sep 1999 10:52:10 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have been working on a small program to record from the microphone of my SB16PnP using the pcm driver. Could anyone explain to me why I get a kernel panic if I read() 8192 bytes at a time (in 8 bit audio, single channel, 41k4 Hz)? The kernel panic message is (from notes) panic: feed_root: uiomove failed mp_lock=00000001; cpuid=0; lapci.id=00000000 boot() called on cpu#0 The panic doesn't occur if I read only 256 bytes at a time, but if I also make writes in between reading blocks (writes to stdout, for example, using write() to write the block that's just been read), the problem also happens with 256 bytes blocks. I know that the problem doesn't occur for write()'s to the audio device, since, for example, WSoundServer uses a blocksize of 8192 bytes and it works fine for me. This has been happening on a -current machine running SMP on ABIT BP6 with dual Celeron. The test program runs as an ordinary user, of course. The processors are overclocked, but bus speed is still 66MHz and system runs fine otherwise. Eager for your comments, Dave Boers. Dave J. Boers Graduate student of Theoretical Physics ------------------------------------------------------------------------- Primary email address: djb@relativity.student.utwente.nl Please DO NOT use d.j.boers@student.utwente.nl because it won't be read! ------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message