Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11
Hi, I haven't seen a Kernel Panic like this for a long time... i.e. repeatable and due to a single command. I have compiled the port /usr/ports/audio/oss and installed it on FreeBSD11. A ran /usr/local/sbin/ossdetect which created the file /usr/local/lib/oss/etc/installed_drivers. Contents: Code:oss_hdaudio #Intel High Definition Audio (CPT) When i run /usr/local/sbin/soundon The system panics.. Code:osscore.ac97_amplifier="0" panic: Lock (sx) module subsystem lock sx lock not locked 0 /usr/src/sys/kern/kern_module.c:219 cpu_id = 1 : audio/oss Build 4.2-build2011 Any ideas? I have taken out any reference to sound in a custom kernel # Sound support #device sound # Generic sound driver (required) #device snd_cmi # CMedia CMI8338/CMI8738 #device snd_csa # Crystal Semiconductor CS461x/428x #device snd_emu10kx # Creative SoundBlaster Live! and Audigy #device snd_es137x # Ensoniq AudioPCI ES137x #device snd_hda # Intel High Definition Audio #device snd_ich # Intel, NVidia and other ICH AC'97 Audio #device snd_via8233 # VIA VT8233x Audio # make buildkernel KERNCONF=GENERIC # make installkernel KERNCONF=GENERIC Thanks GQ ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11
Hi HPS, Note: Does not happen on FreeBSD 10.1-Stable! Complete back trace: panic: Lock (sx) module subsystem sx lock not locked @ /usr/src/sys/kern/kern_module.c:219. cpuid = 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe02376ae530 vpanic() at vpanic+0x182/frame 0xdbfe02376ae5b0 kassert_panic at kasset_panic+0x126/frame 0xfe02376ae620 witness_assert() at wintness_assert+0x346/frame 0xfe02376ae680 module_lookupbyname() atm odule_lookupbyname+0x2a/frame 0xfe02376ae6b0 soundcard_attach() at soundcard_attach+0x12/frame 0xfe023766d0 module_rgister_init() at module_rgister_init+0xb0/frame 0xfe02376ae700 linker_load_module() at linker_load_module+0xc8e/frame 0xfe02376aea30 kern_kldload() at sys_kldload+0xa7/frame 0xfe02376aea70 sys_kldload() at sys_kldload+0x5b/frame 0xfe02376aeaa0 amd64_syscall() at amd64_syscall+02db/frame 0xfe02376aebb0 xfast_syscall() at xfast_syscall+0fb/frame 0xfe02376aebb0 --- syscall (304, FreeBSD ELF64, sys_kldload, rip = 0x80086b6aa, rsp = 0x7fffe718, rbp = 0x7fffec30 --- KDB: enter: panic [ thread pid 1025 tid 100233 ] Stopped at kdb_enter+0x3b: movq $0,kdb_why /boot/modules # cd /boot/modules # ls -ltr total 15008 -r-xr-xr-x 1 root wheel 80280 Nov 6 15:01 fuse.ko -r-xr-xr-x 1 root wheel 1633464 Nov 6 15:02 radeonkms_port.ko -r-xr-xr-x 1 root wheel 700232 Nov 6 15:02 i915kms_port.ko -r-xr-xr-x 1 root wheel 421696 Nov 6 15:02 drm2_port.ko -r-xr-xr-x 1 root wheel 26848 Dec 15 21:39 vboxnetflt.ko -r-xr-xr-x 1 root wheel 9752 Dec 15 21:39 vboxnetadp.ko -r-xr-xr-x 1 root wheel 356152 Dec 15 21:39 vboxdrv.ko -r-xr-xr-x 1 root wheel 38632 Dec 16 07:05 cuse4bsd.ko -r-xr-xr-x 1 root wheel 11926368 Dec 20 07:40 nvidia.ko -rw-r--r-- 1 root wheel 1008 Dec 20 07:40 linker.hints Thanks GQ From: Hans Petter Selasky To: Greg Quinlan ; "freebsd-current@freebsd.org" Sent: Wednesday, 10 February 2016, 21:07 Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11 On 02/10/16 10:51, Greg Quinlan wrote: > > Hi, > > I haven't seen a Kernel Panic like this for a long time... i.e. repeatable > and due to a single command. > > I have compiled the port /usr/ports/audio/oss and installed it on FreeBSD11. > > A ran /usr/local/sbin/ossdetect which created the file > /usr/local/lib/oss/etc/installed_drivers. > > Contents: > Code:oss_hdaudio #Intel High Definition Audio (CPT) > > When i run /usr/local/sbin/soundon > > The system panics.. > > Code:osscore.ac97_amplifier="0" > panic: Lock (sx) module subsystem lock sx lock not locked 0 > /usr/src/sys/kern/kern_module.c:219 > cpu_id = 1 > : > Hi, Do you have the complete backtrace for this panic? Do you have any modules under /boot/modules, which are not up to date? Does the same happen with audio/oss under 10.x ? --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11
Well done!! Fixed. Thanks! From: Hans Petter Selasky To: Greg Quinlan ; "freebsd-current@freebsd.org" Sent: Thursday, 11 February 2016, 17:54 Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11 On 02/11/16 03:02, Greg Quinlan wrote: > Hi HPS, > Note: Does not happen on FreeBSD 10.1-Stable! > Yes, that's because WITNESS is off in 10.x by default. Does the attached patch solve your problem? --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11
Spoke too soon... I applied the patch (kern_module.diff - which was successful) # cd /usr/src# patch To: Hans Petter Selasky ; "freebsd-current@freebsd.org" Sent: Thursday, 11 February 2016, 22:19 Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11 Well done!! Fixed. Thanks! From: Hans Petter Selasky To: Greg Quinlan ; "freebsd-current@freebsd.org" Sent: Thursday, 11 February 2016, 17:54 Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11 On 02/11/16 03:02, Greg Quinlan wrote: > Hi HPS, > Note: Does not happen on FreeBSD 10.1-Stable! > Yes, that's because WITNESS is off in 10.x by default. Does the attached patch solve your problem? --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11
Thanks. I am not going to use OSS anymore... I am going to stick to stick with a custom kernel device sounddevice snd_hda From: Hans Petter Selasky To: Greg Quinlan ; "freebsd-current@freebsd.org" Sent: Saturday, 13 February 2016, 18:55 Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC FreeBSD-11 On 02/12/16 01:04, Greg Quinlan wrote: > Spoke too soon... > > I applied the patch (kern_module.diff - which was successful) > > # cd /usr/src# patch me... > The text leading up to this was: > -- > |Index: sys/kern/kern_module.c > |=== > |--- sys/kern/kern_module.c (revision 295464) > |+++ sys/kern/kern_module.c (working copy) > -- > Patching file sys/kern/kern_module.c using Plan A... > Hunk #1 succeeded at 214. > done > # make buildkernel: > # make installkernel: > # shutdown -r now > Logged in and ran# soundon > No panic!! > > Thought the problem was fixed ... unfortunately, I assumed that the contents > of /usr/local/lib/oss/etc/installed_drivers still contained > oss_hdaudio #Intel High Definition Audio (CPT) > but somehow the file was empty > I ran > # ossdetect # soundon > > Another KERNEL PANIC... this time it scrolled off the screen. I tried > setting this (below) in /etc/rc.conf but there is nothing in /var/crash > > [entries in /etc/rc.conf] > dumpdev="AUTO" > dumpdir="/var/crash" > I need help to recover the backtrace, please? > > Thanks > > From: Greg Quinlan > To: Hans Petter Selasky ; "freebsd-current@freebsd.org" > > Sent: Thursday, 11 February 2016, 22:19 > Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC >FreeBSD-11 > > Well done!! > Fixed. Thanks! > > > > From: Hans Petter Selasky > To: Greg Quinlan ; "freebsd-current@freebsd.org" > > Sent: Thursday, 11 February 2016, 17:54 > Subject: Re: Open Sound System - OSS "soundon" command causes KERNEL PANIC >FreeBSD-11 > > On 02/11/16 03:02, Greg Quinlan wrote: >> Hi HPS, >> Note: Does not happen on FreeBSD 10.1-Stable! >> > > Yes, that's because WITNESS is off in 10.x by default. > > Does the attached patch solve your problem? > > --HPS Hi, It might be that audio/oss is not compatible with 11-current if it crashes like that. --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Kernel panic - help
FreeBSD dns0 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r299817M: Sun May 15 18:55:50 AEST 2016 root@dns0:/usr/obj/usr/src/sys/GENERIC amd64 ===8<=== May 16 03:03:48 dns0 syslogd: kernel boot file is /boot/kernel/kernel May 16 03:03:48 dns0 kernel: panic: softdep_deallocate_dependencies: dangling deps May 16 03:03:48 dns0 kernel: cpuid = 0 May 16 03:03:48 dns0 kernel: KDB: stack backtrace: May 16 03:03:48 dns0 kernel: #0 0x80ae4737 at kdb_backtrace+0x67 May 16 03:03:48 dns0 kernel: #1 0x80a9f502 at vpanic+0x182 May 16 03:03:48 dns0 kernel: #2 0x80a9f373 at panic+0x43 May 16 03:03:48 dns0 kernel: #3 0x80d5fa81 at softdep_deallocate_dependencies+0x71 May 16 03:03:48 dns0 kernel: #4 0x80b47eb9 at brelse+0x1b9 May 16 03:03:48 dns0 kernel: #5 0x80b456c2 at bufwrite+0x182 May 16 03:03:48 dns0 kernel: #6 0x80d8245c at ffs_write+0x39c May 16 03:03:48 dns0 kernel: #7 0x81093459 at VOP_WRITE_APV+0x139 May 16 03:03:48 dns0 kernel: #8 0x80dce82a at vnode_pager_generic_putpages+0x38a May 16 03:03:48 dns0 kernel: #9 0x810953b6 at VOP_PUTPAGES_APV+0xa6 May 16 03:03:48 dns0 kernel: #10 0x80dcc4be at vnode_pager_putpages+0xfe May 16 03:03:48 dns0 kernel: #11 0x80dc19ca at vm_pageout_flush+0xea May 16 03:03:48 dns0 kernel: #12 0x80db848a at vm_object_page_collect_flush+0x21a May 16 03:03:48 dns0 kernel: #13 0x80db81c7 at vm_object_page_clean+0x197 May 16 03:03:48 dns0 kernel: #14 0x80db7c79 at vm_object_terminate+0x99 May 16 03:03:48 dns0 kernel: #15 0x80dccb96 at vnode_destroy_vobject+0xc6 May 16 03:03:48 dns0 kernel: #16 0x80d8a336 at ufs_reclaim+0x26 May 16 03:03:48 dns0 kernel: #17 0x810944b6 at VOP_RECLAIM_APV+0xa6 May 16 03:03:48 dns0 kernel: Uptime: 7h31m3s May 16 03:03:48 dns0 kernel: Dumping 953 out of 8113 MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91% Not sure if the above is useful, seems to happen early morning. Thanks Greg ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Kernel panic - help
And again, at almost the same time ... kernel panic!!! May 17 03:06:18 dns0 syslogd: kernel boot file is /boot/kernel/kernel May 17 03:06:18 dns0 kernel: panic: softdep_deallocate_dependencies: dangling deps May 17 03:06:18 dns0 kernel: cpuid = 1 May 17 03:06:18 dns0 kernel: KDB: stack backtrace: May 17 03:06:18 dns0 kernel: #0 0x80ae4737 at kdb_backtrace+0x67 May 17 03:06:18 dns0 kernel: #1 0x80a9f502 at vpanic+0x182 May 17 03:06:18 dns0 kernel: #2 0x80a9f373 at panic+0x43 May 17 03:06:18 dns0 kernel: #3 0x80d5fa81 at softdep_deallocate_dependencies+0x71 May 17 03:06:18 dns0 kernel: #4 0x80b47eb9 at brelse+0x1b9 May 17 03:06:18 dns0 kernel: #5 0x80b456c2 at bufwrite+0x182 May 17 03:06:18 dns0 kernel: #6 0x80d8245c at ffs_write+0x39c May 17 03:06:18 dns0 kernel: #7 0x81093459 at VOP_WRITE_APV+0x139 May 17 03:06:18 dns0 kernel: #8 0x80dce82a at vnode_pager_generic_putpages+0x38a May 17 03:06:18 dns0 kernel: #9 0x810953b6 at VOP_PUTPAGES_APV+0xa6 May 17 03:06:18 dns0 kernel: #10 0x80dcc4be at vnode_pager_putpages+0xfe May 17 03:06:18 dns0 kernel: #11 0x80dc19ca at vm_pageout_flush+0xea May 17 03:06:18 dns0 kernel: #12 0x80db848a at vm_object_page_collect_flush+0x21a May 17 03:06:18 dns0 kernel: #13 0x80db81c7 at vm_object_page_clean+0x197 May 17 03:06:18 dns0 kernel: #14 0x80db7c79 at vm_object_terminate+0x99 May 17 03:06:18 dns0 kernel: #15 0x80dccb96 at vnode_destroy_vobject+0xc6 May 17 03:06:18 dns0 kernel: #16 0x80d8a336 at ufs_reclaim+0x26 May 17 03:06:18 dns0 kernel: #17 0x810944b6 at VOP_RECLAIM_APV+0xa6 May 17 03:06:18 dns0 kernel: Uptime: 16h54m12s May 17 03:06:18 dns0 kernel: Dumping 896 out of 8113 MB:..2%..11%..22%..31%..42%..52%..61%..72%..81%..92% On Monday, 16 May 2016, 7:24, Greg Quinlan wrote: FreeBSD dns0 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r299817M: Sun May 15 18:55:50 AEST 2016 root@dns0:/usr/obj/usr/src/sys/GENERIC amd64 ===8<=== May 16 03:03:48 dns0 syslogd: kernel boot file is /boot/kernel/kernel May 16 03:03:48 dns0 kernel: panic: softdep_deallocate_dependencies: dangling deps May 16 03:03:48 dns0 kernel: cpuid = 0 May 16 03:03:48 dns0 kernel: KDB: stack backtrace: May 16 03:03:48 dns0 kernel: #0 0x80ae4737 at kdb_backtrace+0x67 May 16 03:03:48 dns0 kernel: #1 0x80a9f502 at vpanic+0x182 May 16 03:03:48 dns0 kernel: #2 0x80a9f373 at panic+0x43 May 16 03:03:48 dns0 kernel: #3 0x80d5fa81 at softdep_deallocate_dependencies+0x71 May 16 03:03:48 dns0 kernel: #4 0x80b47eb9 at brelse+0x1b9 May 16 03:03:48 dns0 kernel: #5 0x80b456c2 at bufwrite+0x182 May 16 03:03:48 dns0 kernel: #6 0x80d8245c at ffs_write+0x39c May 16 03:03:48 dns0 kernel: #7 0x81093459 at VOP_WRITE_APV+0x139 May 16 03:03:48 dns0 kernel: #8 0x80dce82a at vnode_pager_generic_putpages+0x38a May 16 03:03:48 dns0 kernel: #9 0x810953b6 at VOP_PUTPAGES_APV+0xa6 May 16 03:03:48 dns0 kernel: #10 0x80dcc4be at vnode_pager_putpages+0xfe May 16 03:03:48 dns0 kernel: #11 0x80dc19ca at vm_pageout_flush+0xea May 16 03:03:48 dns0 kernel: #12 0x80db848a at vm_object_page_collect_flush+0x21a May 16 03:03:48 dns0 kernel: #13 0x80db81c7 at vm_object_page_clean+0x197 May 16 03:03:48 dns0 kernel: #14 0x80db7c79 at vm_object_terminate+0x99 May 16 03:03:48 dns0 kernel: #15 0x80dccb96 at vnode_destroy_vobject+0xc6 May 16 03:03:48 dns0 kernel: #16 0x80d8a336 at ufs_reclaim+0x26 May 16 03:03:48 dns0 kernel: #17 0x810944b6 at VOP_RECLAIM_APV+0xa6 May 16 03:03:48 dns0 kernel: Uptime: 7h31m3s May 16 03:03:48 dns0 kernel: Dumping 953 out of 8113 MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91% Not sure if the above is useful, seems to happen early morning. Thanks Greg ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"