From owner-freebsd-stable Sat Feb 24 1:11:37 2001 Delivered-To: freebsd-stable@freebsd.org Received: from pikachu.bsp.bc.niigata-u.ac.jp (pikachu.bsp.bc.niigata-u.ac.jp [133.35.85.2]) by hub.freebsd.org (Postfix) with SMTP id E73A537B491 for ; Sat, 24 Feb 2001 01:11:32 -0800 (PST) (envelope-from iwaki@bc.niigata-u.ac.jp) Received: (qmail 3813 invoked by alias); 24 Feb 2001 18:11:28 +0900 Message-ID: <20010224091128.3809.qmail@pikachu.bsp.bc.niigata-u.ac.jp> To: freebsd-stable@FreeBSD.ORG Subject: sound driver kills kernel silently X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 24 Feb 2001 18:11:26 +0900 From: Mamoru Iwaki X-Dispatcher: imput version 20000228(IM140) Lines: 59 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, My FreeBSD 4.2-STABLE box suddenly and silently downs and reboots when the following sound program runs. This simple program opens /dev/dsp with two file descriptors, one for read and the other for write, then simply copy data from read-device to write-one. This program was running this December without such panics. Someone else have a similar experiance? Anybody knows how to solve it? Thanks. [ENVIRONMENT] % uname -a FreeBSD mi000.merlin.gs.niigata-u.ac.jp 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Feb 24 09:08:31 JST 2001 root@mi000.merlin.gs.niigata-u.ac.jp:/usr/obj/amd/mi004/home2/FreeBSD-src/stable4/src/sys/MI i386 % dmesg | grep sbc sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 pcm0: on sbc0 % cat /dev/sndstat FreeBSD Audio Driver (newpcm) Feb 24 2001 09:07:03 Installed devices: pcm0: at io 0x220 irq 5 drq 1:5 (1p/1r channels duplex) [PROGRAM] #include #include #include #include #include #define DEV_IN "/dev/dsp" #define DEV_OUT DEV_IN #define BUFLEN 1 int main(void) { int fdi, fdo; char x[BUFLEN]; if ((fdi = open(DEV_IN, O_RDONLY)) == -1) { perror("File open failure for read: " DEV_IN); exit(1); } if ((fdo = open(DEV_IN, O_WRONLY)) == -1) { perror("File open failure for write: " DEV_IN); exit(1); } while (read(fdi, &x, sizeof(x)) > 0) write(fdo, &x, sizeof(x)); return 0; } --- ----- Mamoru IWAKI (iwaki@bc.niigata-u.ac.jp) Graduate School of Science and Technology, Niigata University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message