Kernel panic when using loop0

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, cesium

Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm

Kernel panic when using loop0

Postby adamk » Thu Nov 05, 2009 10:53 pm

I haven't figured out the exact trigger, because this doesn't always happen. But I've had three kernel panics when trying to record from the loopback device on a hdaudio card in FreeBSD 9.0-CURRENT, twice with ossrecord and once with sox.

Code: Select all

osscore: mmap() not possible with currently selected sample format.
osscore: mmap() not possible with currently selected sample format.
panic: vm_fault: fault on nofault entry, addr: ea098000
cpuid = 0
KDB: enter: panic
[thread pid 18703 tid 100274 ]
Stopped at      kdb_enter+0x3a: movl    $0,kdb_why
db> ccc
No such command
db> bt
Tracing pid 18703 tid 100274 td 0xc87bb690
kdb_enter(c0c9d0bf,c0c9d0bf,c0cb9fa0,ea155828,0,...) at kdb_enter+0x3a
panic(c0cb9fa0,ea098000,1,ea15595c,ea15594c,...) at panic+0x136
vm_fault(c1490000,ea098000,1,0,c08a768b,...) at vm_fault+0x197
trap_pfault(0,104,413d8a0c,231,c87b8000,...) at trap_pfault+0x20e
trap(ea155a78) at trap+0x46a
calltrap() at calltrap+0x6
--- trap 0xc, eip = 0xc0bd4a93, esp = 0xea155ab8, ebp = 0xea155af4 ---
slow_copyout(ea098000,1,ea155c58,ea155c58,0,...) at slow_copyout+0xb
oss_audio_read(6,c5b38760,ea155c58,1,ea155b98,...) at oss_audio_read+0x191
oss_read(c5a53700,ea155c58,0,0,1,...) at oss_read+0x65
devfs_read_f(c70b1268,ea155c58,c6bfd900,0,c87bb690,...) at devfs_read_f+0x7e
dofileread(ea155c58,ffffffff,ffffffff,0,c70b1268,...) at dofileread+0x96
kern_readv(c87bb690,3,ea155c58,ea155c78,1,...) at kern_readv+0x58
read(c87bb690,ea155cf8,c,c87bb690,ea155d2c,...) at read+0x4f
syscall(ea155d38) at syscall+0x325
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (3, FreeBSD ELF32, read), eip = 0x34ca2ad3, esp = 0xbfbfdaec, ebp = 0xbfbfdb08 ---
db> cont
Uptime: 11m58s
Physical memory: 2033 MB
Dumping 237 MB: 222panic: bufwrite: buffer is not busy???
cpuid = 0
KDB: enter: panic
[thread pid 17 tid 100065 ]
Stopped at      kdb_enter+0x3a: movl    $0,kdb_why
db> reboot



Code: Select all

Version info: OSS 4.2 (b 2001/200910261709) (0x00040100) OSS_HG
Hg revision: changeset: 868:03dfe1d7a2be, tag: tip, date: Sun Oct 25 08:33:05 2009 +0200, summary: Changed build ID to 2001
Platform: FreeBSD/i386 9.0-CURRENT FreeBSD 9.0-CURRENT #6: Tue Oct 20 20:38:35 EDT 2009 (

Number of audio devices:        3
Number of audio engines:        7
Number of MIDI devices:         0
Number of mixer devices:        1

Device objects
 0: oss_hdaudio0 Intel HD Audio interrupts=165539 (165539)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086269a
    Subvendor ID 0x102801c1
     Codec  0: STAC9200 (0x83847690/0x102801c1)

MIDI devices (/dev/midi*)

Mixer devices
 0: High Definition Audio STAC9200 (Mixer 0 of device object 0)

Audio devices
HD Audio play pcm                 /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio rec select               /dev/oss/oss_hdaudio0/pcmin0  (device index 1)
HD Audio play pcm (vmix) loopback record  /dev/oss/oss_hdaudio0/loop0  (device index 2)

  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0

Return to “BSD”

Who is online

Users browsing this forum: No registered users and 4 guests