From owner-freebsd-stable Thu Sep 6 17: 5:14 2001 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id CEC2837B401; Thu, 6 Sep 2001 17:05:02 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id f87052g72967; Thu, 6 Sep 2001 17:05:02 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.3.p0.FreeBSD:010906170502:303=_" Date: Thu, 06 Sep 2001 17:05:02 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: stable@freebsd.org Subject: Solid hangs caused by pcm Cc: cg@freebsd.org Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.3.p0.FreeBSD:010906170502:303=_ Content-Type: text/plain; charset=us-ascii I did a binary search through recent kernel space and found the commit that is causing my -stable system to hang solid. The commit that broke it was Cameron's massive MFC of newpcm dated 2001/07/31 20:41:11 PDT (that's 2001/08/01 03:41:11 UTC). Log: mfc of newpcm state as at june 24. * untypedef various structs * rate conversion feeder * vchan support - no automatic creation however * many bugfixes I'll spare you the list of more than 70 files which were changed or created by this commit. With a kernel from just before this commit, sound works fine. With a kernel containing this commit, I can hang the system reliably and uninterruptibly. All I have to do is try to play a RealAudio sound sample off the web using Linux rvplayer 5.0. It is still failing the same way on a -stable kernel from today. These hangs are utterly solid. I can't even break into ddb using the screwdriver-in-the-ISA-slot trick. We're talking hit the reset button here. My kernel config file and dmesg output are attached. I really think this is something that needs to be fixed before the release. Unfortunately, it's very hard to debug it since there's no way to enter the debugger once it's hung. Tracking it down is probably going to require adding a bunch of consistency checks into the sound code so that it will panic before it hangs. I know nothing about this part of the code, but I'll be happy to test patches if they are provided. John --_=XFMail.1.3.p0.FreeBSD:010906170502:303=_ Content-Disposition: attachment; filename="dmesg.boot" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; name=dmesg.boot; SizeOnDisk=4190 Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.4-RC #1: Sat Sep 1 10:41:49 PDT 2001 jdp@vashon.polstra.com:/usr/src/sys/compile/VASHON Timecounter "i8254" frequency 1193043 Hz Timecounter "TSC" frequency 400862402 Hz CPU: Pentium II/Pentium II Xeon/Celeron (400.86-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183fbff real memory = 134217728 (131072K bytes) sio1: gdb debugging port avail memory = 126488576 (123524K bytes) Preloaded elf kernel "kernel" at 0xc03f1000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 pci0: at 7.2 chip1: port 0x440-0x44f at device 7. 3 on pci0 pcib2: at device 16.0 on pci0 pci2: on pcib2 fxp0: port 0xef40-0xef5f mem 0xfea00000-0xfeaf ffff,0xfd0ff000-0xfd0fffff irq 11 at device 17.0 on pci0 fxp0: Ethernet address 00:e0:81:10:09:c2 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xe400-0xe4ff mem 0xfebfe000-0xf ebfefff irq 10 at device 18.0 on pci0 aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/255 SCBs ahc1: port 0xe800-0xe8ff mem 0xfebff000-0xf ebfffff irq 10 at device 18.1 on pci0 aic7895C: Ultra Wide Channel B, SCSI Id=7, 32/255 SCBs fxp1: port 0xef80-0xef9f mem 0xfe800000-0xfe8f ffff,0xfd0fe000-0xfd0fefff irq 9 at device 20.0 on pci0 fxp1: Ethernet address 00:a0:c9:b0:13:df inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: