kernel/5218: 'audioctl -a' crashes system with azalia(4) sound driver

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

kernel/5218: 'audioctl -a' crashes system with azalia(4) sound driver

peter dunaskin
>Number:         5218
>Category:       kernel
>Synopsis:       'audioctl -a' crashes system with azalia(4) sound driver
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 03 21:40:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     peter dunaskin
>Release:        4.0 snapshot (1st september)
>Organization:
net
>Environment:
        System      : OpenBSD 4.0
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        Sound doesn't work at all, tried it with mplayer and mpg123.
        While trying to play sound I get kernel messages "No supported
        rate found!"
        If I run 'audioctl -a' before trying to playback some file it
        works fine, but after I try to play something 'audioctl -a'
        crashes the system. Tried it both with bsd and bsd.mp kernels.

        This was done on Fujitsu-Siemens Amilo Si 1520 notebook.

OpenBSD 4.0 (GENERIC) #1104: Fri Sep  1 11:54:27 MDT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz ("GenuineIntel" 686-class)
1.83 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWA IT,VMX,EST,TM2
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130b2c06000b2c
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1833 MHz (1404 mV): speeds: 1833, 1000 MHz
real mem  = 1063415808 (1038492K)
avail mem = 962064384 (939516K)
using 4256 buffers containing 53272576 bytes (52024K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(9a) BIOS, date 06/22/06, BIOS32 rev. 0 @ 0xfd580, SMBIOS rev. 2.4 @ 0xdc010 (29 entries)
bios0: FUJITSU SIEMENS Amilo Si 1520
pcibios0 at bios0: rev 2.1 @ 0xfd580/0xa80
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdee0/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #7 is the last bus
bios0: ROM list: 0xc0000/0xe600! 0xdc000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM MCH" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03: aperture at 0xdc100000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x14f1 (rev. 1.0), HDA version 1.0
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02
pci2 at ppb1 bus 3
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02
pci3 at ppb2 bus 5
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: irq 11
ehci0: timed out waiting for BIOS
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci4 at ppb3 bus 7
fxp0 at pci4 dev 8 function 0 "Intel PRO/100 VM" rev 0x02, i82562: irq 10, address 00:16:00:53:C2:00
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
"Ricoh 5C832 Firewire" rev 0x00 at pci4 dev 9 function 0 not configured
sdhc0 at pci4 dev 9 function 1 "Ricoh 5C822 SD/MMC" rev 0x19: irq 11
sdmmc0 at sdhc0
"Ricoh 5C843" rev 0x01 at pci4 dev 9 function 2 not configured
"Ricoh 5C592 Memory Stick" rev 0x0a at pci4 dev 9 function 3 not configured
"Ricoh 5C852 xD" rev 0x05 at pci4 dev 9 function 4 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configure
d to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <_NEC, DVD_RW ND-6750A, 2.42> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM AHCI SATA" rev 0x02: DMA, channel 0 wired to native-PCI, channel 1 wired to n
ative-PCI
pciide1: using irq 10 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <FUJITSU MHV2100BH>
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: irq 10
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
biomask effd netmask effd ttymask ffff
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
didn't find Record rate
didn't find Record rate
didn't find Record rate
kernel: integer divide fault trap, code=0
Stopped at      audiogetinfo+0x202:     idivl   0xa8(%edi),%eax
ddb>    PID   PPID   PGRP    UID  S       FLAGS  WAIT       COMMAND        
*10250  25726  10250   1000  7      0x4006             audioctl        
 25141      1  25141      0  3      0x4086  ttyin      getty          
 30832      1  30832      0  3      0x4086  ttyin      getty          
 32270      1  32270      0  3      0x4086  ttyin      getty          
 10458      1  10458      0  3      0x4086  ttyin      getty          
 25726      1  25726   1000  3      0x4086  pause      ksh            
 11624      1  11624      0  3     0x40184  select     sendmail        
  2031      1   2031      0  3        0x84  select     cron            
 31789   8605   8605     83  3       0x184  poll       ntpd            
  8605      1   8605      0  3        0x84  poll       ntpd            
 31479   7699   7699     74  3       0x184  bpf        pflogd          
  7699      1   7699      0  3        0x84  netio      pflogd          
 29251   4334   4334     73  3       0x184  poll       syslogd        
  4334      1   4334      0  3        0x8c  netio      syslogd        
    17      0      0      0  3    0x100204  crypto_wa  crypto          
    16      0      0      0  3    0x100204  aiodoned   aiodoned        
    15      0      0      0  3    0x100204  syncer     update          
    14      0      0      0  3    0x100204  cleaner    cleaner        
    13      0      0      0  3    0x100204  reaper     reaper          
    12      0      0      0  3    0x100204  pgdaemon   pagedaemon      
    11      0      0      0  3    0x100204  pftm       pfpurge        
    10      0      0      0  3    0x100204  wait       wskbd_hotkey    
     9      0      0      0  3    0x100204  mmctsk     sdmmc0          
     8      0      0      0  3    0x100204  usbevt     usb4            
     7      0      0      0  3    0x100204  usbevt     usb3            
     6      0      0      0  3    0x100204  usbevt     usb2            
     5      0      0      0  3    0x100204  usbevt     usb1            
     4      0      0      0  3    0x100204  usbtsk     usbtask        
     3      0      0      0  3    0x100204  usbevt     usb0            
     2      0      0      0  3    0x100204  kmalloc    kmthread        
     1      0      1      0  3      0x4084  wait       init            
     0     -1      0      0  3     0x80204  scheduler  swapper
ddb> audiogetinfo(d19f7200,d1b12e00,0,0,0) at audiogetinfo+0x202
audio_ioctl(2ac0,40884115,d1b12e00,3,d7ec5440) at audio_ioctl+0x265
audioioctl(2ac0,40884115,d1b12e00,3,d7ec5440) at audioioctl+0xb3
spec_ioctl(e9a0fd58,0,d59d5000,1,d19c4f04) at spec_ioctl+0x3f
spec_vnoperate(e9a0fd58,1000,e9a0fd80,d0427b76,d070e1a0) at spec_vnoperate+0x16
VOP_IOCTL(d7e61ccc,40884115,d1b12e00,3,d7f56190,d7ec5440,e9a0fe20,d1b12f00) at VOP_IOCTL+0x40
vn_ioctl(d7f36dc0,40884115,d1b12e00,d7ec5440,d7f47380) at vn_ioctl+0xd0
sys_ioctl(d7ec5440,e9a0ff68,e9a0ff58,ffffffff,8d) at sys_ioctl+0x125
syscall() at syscall+0x2ea
--- syscall (number 54) ---
0x4bdf3b1:
ddb> syncing disks... done
WARNING: not updating battery clock
>How-To-Repeat:
        $ mpg123 song33.mp3
        High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
        Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
        Uses code from various people. See 'README' for more!
        THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

        Playing MPEG stream from song33.mp3 ...
        MPEG 1.0 layer III, 256 kbit/s, 44100 Hz stereo
        Failed to open /dev/audio: Invalid argument
        Failed to open /dev/audio: Invalid argument
        Failed to open /dev/audio: Invalid argument
        Failed to open /dev/audio: Invalid argument
        Failed to open /dev/audio: Invalid argument
        Failed to open /dev/audio: Invalid argument
        No supported rate found!
        $ audioctl -a      
        (it crashes at this point)
>Fix:
        Don't know.


>Release-Note:
>Audit-Trail:
>Unformatted: