Kerenel Oops.

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

Kerenel Oops.

Postby Marenz » Thu Sep 29, 2011 9:03 pm

G'day,

I just updated to kernel version 3.0 and now I have trouble with OSS. My audio player (a windows application running in wine) somehow causes a kernel Oops:

Code: Select all
[43137.572984] BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
[43137.572990] IP: [<ffffffffa08de113>] vmix_play_callback+0x53/0x310 [osscore]
[43137.573002] PGD 1a344f067 PUD 86adf067 PMD 86aa3067 PTE 0
[43137.573006] Oops: 0000 [#1] PREEMPT SMP
[43137.573010] CPU 1
[43137.573011] Modules linked in: cryptd aes_x86_64 aes_generic lrw gf128mul dm_crypt dm_mod oss_usb oss_hdaudio osscore appletalk ipx p8022 psnap llc p8023 ipv6 it87 adt7475 hwmon_vid ext3 jbd btrfs zlib_deflate crc32c libcrc32c ext2 mbcache fglrx(P) usblp joydev radeon tun loop ttm fuse drm_kms_helper nv_tco slhc edac_core edac_mce_amd psmouse floppy drm i2c_algo_bit ppdev i2c_nforce2 parport_pc parport fan processor firewire_ohci firewire_core sg pcspkr serio_raw evdev thermal button k8temp crc_itu_t asus_atk0110 i2c_core forcedeth xfs exportfs hid_cherry usbhid hid ohci_hcd ehci_hcd usbcore sr_mod cdrom lzo sd_mod sata_nv ahci libahci ata_generic pata_jmicron pata_amd pata_acpi libata scsi_mod
[43137.573054]
[43137.573056] Pid: 27783, comm: foobar2000.exe Tainted: P            3.0-ARCH #1 System manufacturer System Product Name/M2N-SLI DELUXE
[43137.573060] RIP: 0010:[<ffffffffa08de113>]  [<ffffffffa08de113>] vmix_play_callback+0x53/0x310 [osscore]
[43137.573065] RSP: 0018:ffff8800814f3598  EFLAGS: 00010206
[43137.573067] RAX: ffffc900057f2010 RBX: 0000000000000000 RCX: 0000000000010000
[43137.573069] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[43137.573070] RBP: ffffc900057f6010 R08: 0000000000001000 R09: ffffc900057f6010
[43137.573072] R10: 0000000000010000 R11: 0000000000000001 R12: ffffc900057f6010
[43137.573074] R13: 0000000000000068 R14: 0000000000000002 R15: 0000000000000004
[43137.573076] FS:  0000000081ffc000(0063) GS:ffff8801bfc80000(006b) knlGS:0000000000b2fb70
[43137.573078] CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
[43137.573080] CR2: 0000000000000020 CR3: 0000000086a49000 CR4: 00000000000006e0
[43137.573081] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[43137.573083] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[43137.573085] Process foobar2000.exe (pid: 27783, threadinfo ffff8800814f2000, task ffff880086a99590)
[43137.573087] Stack:
[43137.573088]  ffff8800814f35c8 ffffffff810475ff 0000000000000002 ffffffff8100a8b3
[43137.573091]  ffff8801b45eddb8 0000000000000000 00ff880000000000 ffff8801bfc90200
[43137.573094]  0000000000000001 ffff8801bfc92640 ffff8800814f3618 ffffffff81049cf9
[43137.573097] Call Trace:
[43137.573103]  [<ffffffff810475ff>] ? set_next_entity+0x3f/0x80
[43137.573107]  [<ffffffff8100a8b3>] ? __switch_to+0x2a3/0x2f0
[43137.573110]  [<ffffffff81049cf9>] ? finish_task_switch+0x49/0xd0
[43137.573113]  [<ffffffff813f0b6e>] ? schedule+0x34e/0x9f0
[43137.573116]  [<ffffffff810475ff>] ? set_next_entity+0x3f/0x80
[43137.573118]  [<ffffffff8100a8b3>] ? __switch_to+0x2a3/0x2f0
[43137.573122]  [<ffffffff813f540e>] ? apic_timer_interrupt+0xe/0x20
[43137.573124]  [<ffffffff810475ff>] ? set_next_entity+0x3f/0x80
[43137.573127]  [<ffffffff8100a8b3>] ? __switch_to+0x2a3/0x2f0
[43137.573129]  [<ffffffff81049cf9>] ? finish_task_switch+0x49/0xd0
[43137.573131]  [<ffffffff813f0b6e>] ? schedule+0x34e/0x9f0
[43137.573135]  [<ffffffff811159e9>] ? zone_statistics+0x99/0xc0
[43137.573139]  [<ffffffffa08aed83>] ? oss_spin_unlock_irqrestore+0x13/0x20 [osscore]
[43137.573142]  [<ffffffff813f418e>] ? common_interrupt+0xe/0x13
[43137.573145]  [<ffffffff813f540e>] ? apic_timer_interrupt+0xe/0x20
[43137.573147]  [<ffffffff813f14e6>] ? preempt_schedule+0x46/0x60
[43137.573151]  [<ffffffff8122521a>] ? delay_tsc+0x8a/0x100
[43137.573153]  [<ffffffff81225216>] ? delay_tsc+0x86/0x100
[43137.573157]  [<ffffffffa08aed83>] ? oss_spin_unlock_irqrestore+0x13/0x20 [osscore]
[43137.573162]  [<ffffffffa08be3c5>] ? oss_audio_ioctl+0xf55/0x1da0 [osscore]
[43137.573167]  [<ffffffffa08be6de>] ? oss_audio_ioctl+0x126e/0x1da0 [osscore]
[43137.573171]  [<ffffffffa08e001f>] ? vmix_setup_play_engine+0x36f/0x4f5 [osscore]
[43137.573175]  [<ffffffffa08db14b>] ? start_engines.part.3+0x1bb/0x2c0 [osscore]
[43137.573179]  [<ffffffffa08db3f8>] ? vmix_open+0x1a8/0x250 [osscore]
[43137.573184]  [<ffffffffa08bcb03>] ? oss_audio_open_engine+0x183/0x720 [osscore]
[43137.573189]  [<ffffffffa08bd369>] ? oss_audio_open_devfile+0x2c9/0x3d0 [osscore]
[43137.573194]  [<ffffffffa08b0a8c>] ? oss_cdev_open+0xbc/0x180 [osscore]
[43137.573197]  [<ffffffff8115b119>] ? cdev_get+0x89/0x160
[43137.573199]  [<ffffffff8115bbab>] ? chrdev_open+0x1bb/0x2d0
[43137.573202]  [<ffffffff811557ab>] ? __dentry_open+0x16b/0x390
[43137.573205]  [<ffffffff810883b4>] ? in_group_p+0x34/0x40
[43137.573207]  [<ffffffff8115b9f0>] ? cdev_put+0x30/0x30
[43137.573210]  [<ffffffff81156c81>] ? nameidata_to_filp+0x71/0x80
[43137.573213]  [<ffffffff81165aac>] ? do_last+0x26c/0x960
[43137.573215]  [<ffffffff81166f7b>] ? path_openat+0xcb/0x3c0
[43137.573218]  [<ffffffff81224a30>] ? sprintf+0x40/0x50
[43137.573220]  [<ffffffff811672b2>] ? do_filp_open+0x42/0xa0
[43137.573223]  [<ffffffff81173afc>] ? alloc_fd+0xec/0x140
[43137.573225]  [<ffffffff81156d87>] ? do_sys_open+0xf7/0x1d0
[43137.573227]  [<ffffffff81155bd6>] ? filp_close+0x66/0x90
[43137.573231]  [<ffffffff8119ff4a>] ? compat_sys_open+0x1a/0x20
[43137.573233]  [<ffffffff813f6080>] ? cstar_dispatch+0x7/0x2e
[43137.573235] Code: 98 e8 02 00 00 48 85 ed 4c 8d 6b 68 0f 84 6c 02 00 00 48 83 7d 20 00 0f 84 61 02 00 00 8b 8d 84 02 00 00 85 c9 0f 84 65 02 00 00
[43137.573250]  8b 7b 20 48 8d b4 24 28 04 00 00 48 c7 84 24 28 04 00 00 00
[43137.573257] RIP  [<ffffffffa08de113>] vmix_play_callback+0x53/0x310 [osscore]
[43137.573262]  RSP <ffff8800814f3598>
[43137.573263] CR2: 0000000000000020
[43137.573266] ---[ end trace 772988a1cea0cf3a ]---


My system:
Code: Select all
Linux rebooc 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux


Version info: OSS 4.2 (b 2005/201108120935) (0x00040100) GPL
Platform: Linux/x86_64 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 (rebooc)

Number of audio devices:   11
Number of audio engines:   18
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 nVidia HD Audio interrupts=131189 (131797)
    HD Audio controller nVidia HD Audio
    Vendor ID    0x10de0371
    Subvendor ID 0x104381f6
     Codec  0: AD1988B (0x11d4198b/0x104381f6)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio AD1988B (Mixer 0 of device object 1)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI81f61043-0000:00:06.1-mx01
    Device priority: 10


Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 0/HD Audio play front
                     Busy (OUT) label 'VMIX'
      Engine      2: 9/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      3: 10/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      4: 11/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      5: 12/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      6: 17/HD Audio play front (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 1/HD Audio play center/LFE
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play rear                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 2/HD Audio play rear
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 3/HD Audio play side
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play headphone           /dev/oss/oss_hdaudio0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 4/HD Audio play headphone
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play spdifout-mix        /dev/oss/oss_hdaudio0/spdout0  (device index 5)
    Legacy device /dev/dsp5
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 5/HD Audio play spdifout-mix
                     Available for use
      Engine      2: 9/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      3: 10/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      4: 11/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      5: 12/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      6: 17/HD Audio play front (vmix)
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au06
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec rec1-src             /dev/oss/oss_hdaudio0/pcmin0  (device index 6)
    Legacy device /dev/dsp6
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 6/HD Audio rec rec1-src
                     Busy (IN) label 'VMIX_IN'
      Engine      2: 9/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      3: 10/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      4: 11/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      5: 12/HD Audio play spdifout-mix (vmix)
                     Available for use
      Engine      6: 17/HD Audio play front (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au07
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec rec2-src             /dev/oss/oss_hdaudio0/pcmin1  (device index 7)
    Legacy device /dev/dsp7
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 7/HD Audio rec rec2-src
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au08
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec rec3-src             /dev/oss/oss_hdaudio0/pcmin2  (device index 8)
    Legacy device /dev/dsp8
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 8/HD Audio rec rec3-src
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au09
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,11025,16000,22050,32000,44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play front (vmix) loopback record  /dev/oss/oss_hdaudio0/loop0  (device index 9)
    Legacy device NONE
    Caps: BATCH TRIGGER MMAP MULTI VIRTUAL HIDDEN
    Modes: INPUT 
      In engine   1: 13/HD Audio play front (vmix) loopback record
                     Busy (IN)
      In engine   2: 14/HD Audio play front (vmix) loopback record
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: PCI81f61043-0000:00:06.1-au10
    Related mixer dev: 0
    Sample rate source: 13
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play spdifout-mix (vmix) loopback record  /dev/oss/oss_hdaudio0/loop0  (device index 10)
    Legacy device /dev/dsp10
    Caps: DUPLEX BATCH TRIGGER MMAP MULTI VIRTUAL HIDDEN
    Modes: IN/OUT
      In engine   1: 15/HD Audio play spdifout-mix (vmix) loopback record
                     Available for use
      In engine   2: 16/HD Audio play spdifout-mix (vmix) loopback record
                     Available for use
      Engine      3: 17/HD Audio play front (vmix)
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI81f61043-0000:00:06.1-au11
    Related mixer dev: 0
    Sample rate source: 15
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 0 - 0
    Native sample rates (min - max): 0 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated


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



How should I proceed from here?
Marenz
New Member
 
Posts: 7
Joined: Sat Dec 01, 2007 7:31 pm

Re: Kerenel Oops.

Postby igorzwx » Thu Sep 29, 2011 9:16 pm

I have already upgraded Arch to kernel 3.0 on two different computers.
The second upgrade was made today in the morning.
No problems have been yet detected.
There were problems with previous upgrades.
The first thing to try is to reinstall OSS4.
The second is recompile it, see: viewtopic.php?f=3&t=3543&start=30#p15711
These worked for me. The problems were fixed.
igorzwx
Supporter
 
Posts: 993
Joined: Sun Jun 28, 2009 9:31 pm

Re: Kerenel Oops.

Postby Marenz » Fri Sep 30, 2011 9:45 pm

Tried reinstalling as well as recompilling. Nothing helped :/

An additional problem showed up, though: opening ossxmix while that wine application is running causes a system freeze (not instantly though).

Right now I re-installed the wine application just to see whether it changes.. lets see
Marenz
New Member
 
Posts: 7
Joined: Sat Dec 01, 2007 7:31 pm

Re: Kerenel Oops.

Postby igorzwx » Fri Sep 30, 2011 9:59 pm

Marenz wrote:Tried reinstalling as well as recompilling. Nothing helped :/

An additional problem showed up, though: opening ossxmix while that wine application is running causes a system freeze (not instantly though).

Right now I re-installed the wine application just to see whether it changes.. lets see


Have you made proper changes in Arch configs?
See: "Changes to module blacklisting", "Changes to kernel package and filenames", etc. http://www.archlinux.org/
igorzwx
Supporter
 
Posts: 993
Joined: Sun Jun 28, 2009 9:31 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron