OSS 4.0 processes becoming STOPped on FreeBSD 6.2

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

OSS 4.0 processes becoming STOPped on FreeBSD 6.2

Postby dh » Mon May 14, 2007 9:05 am

Hi,

OSS 4.0 (oss-freebsd-v4.0-1002-i386) has tendency to SIGSTOP during execution of a programs which are using OSS audio.

for example, the game vdrift:
Code: Select all
$ ps x | grep vdrift
70027  p8- T      2:21.85 vdrift -datadir /usr/local/share/vdrift

vdrift is using /dev/dsp0 (/dev/oss/envy24ht0/pcm0)

Process is in unkillable stopped state (neither of -KILL or -CONT signals have effect) which afaik means that it stopped on some syscall level.

As a result I can't use the same /dev/dsp device until I reboot (I can specify other programs to use other /dev/dspX, until they become STOPped too).

Unfortunately I haven't noticed any patterns in this behaviour, it has happened in the middle of a playing mp3 in beep-media-player or at the exit from the program (vdrift).
However, I have never experienced this behaviour while using mplayer.


--- ossinfo -v9 output ---
Code: Select all
Version info: OSS 4.0 (build 1002/200704040156) (0x00040002)
Platform: FreeBSD/i386 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed May  9 13:24:48 EEST 2007     root@dh.c8h10n4o2.pri.ee:/usr/obj/usr/src/sys/DH-1

Number of audio devices:   9
Number of audio engines:   9
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: envy24ht0 Generic Envy24PT motherboard audio
1: vmix0 OSS transparent virtual support

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: Generic Envy24PT motherboard aud (Mixer 0 of device object 0)
    Device file /dev/oss/envy24ht0/mix0, Legacy device /dev/mixer0
    Priority: 2
    Caps:
    Device handle: OSS-PCI-mx01
    Device priority: 2


Audio devices
/dev/oss/envy24ht0/pcm0   Generic Envy24PT motherboard audio front out  (device index 0)
    Legacy device /dev/dsp0
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 0/Generic Envy24PT motherboard audio front out
                     Busy (OUT) by PID 70027 / vdrift label 'vdrift'
      Engine      2: 5/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      3: 6/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      4: 7/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      5: 8/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
    Input formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: OSS-PCI-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: STEREO
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 8000 - 192000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,192000)
    HW Type: ANALOG_OUT     Minimum latency: Not indicated

/dev/oss/envy24ht0/pcm1   Generic Envy24PT motherboard audio c/l out  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 1/Generic Envy24PT motherboard audio c/l out
                     Available for use
    Input formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: OSS-PCI-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: STEREO
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,192000)
    HW Type: ANALOG_OUT     Minimum latency: Not indicated

/dev/oss/envy24ht0/pcm2   Generic Envy24PT motherboard audio side out  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 2/Generic Envy24PT motherboard audio side out
                     Available for use
    Input formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: OSS-PCI-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: STEREO
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,192000)
    HW Type: ANALOG_OUT     Minimum latency: Not indicated

/dev/oss/envy24ht0/spdout   Generic Envy24PT motherboard audio digital out  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 3/Generic Envy24PT motherboard audio digital out
                     Available for use
    Input formats (0x00001400):
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001400):
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: OSS-PCI-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: STEREO
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,192000)
    HW Type: DIGITAL_OUT     Minimum latency: Not indicated

/dev/oss/envy24ht0/pcmin0   Generic Envy24PT motherboard audio analog in  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 4/Generic Envy24PT motherboard audio analog in
                     Available for use
      Engine      2: 5/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      3: 6/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      4: 7/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      5: 8/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
    Input formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001000):
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: OSS-PCI-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: STEREO
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 192000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,192000)
    HW Type: ANALOG_IN     Minimum latency: Not indicated

/dev/oss/vmix0/pcm0   Generic Envy24PT motherboard audio front out (VMIX0)  (device index 5)
    Legacy device /dev/dsp5
    Caps: DUPLEX TRIGGER MMAP VIRTUAL
    Modes: IN/OUT
      Engine      1: 5/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      2: 6/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      3: 7/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      4: 8/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
    Input formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Output formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Device handle: vmix0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

/dev/oss/vmix0/pcm1   Generic Envy24PT motherboard audio front out (VMIX0)  (device index 6)
    Legacy device /dev/dsp6
    Caps: DUPLEX TRIGGER MMAP VIRTUAL SHADOW HIDDEN
    Modes: IN/OUT
      Engine      1: 6/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      2: 7/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      3: 8/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
    Input formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Output formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Device handle: vmix0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

/dev/oss/vmix0/pcm2   Generic Envy24PT motherboard audio front out (VMIX0)  (device index 7)
    Legacy device /dev/dsp7
    Caps: DUPLEX TRIGGER MMAP VIRTUAL SHADOW HIDDEN
    Modes: IN/OUT
      Engine      1: 7/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
      Engine      2: 8/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
    Input formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Output formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Device handle: vmix0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

/dev/oss/vmix0/pcm3   Generic Envy24PT motherboard audio front out (VMIX0)  (device index 8)
    Legacy device /dev/dsp8
    Caps: DUPLEX TRIGGER MMAP VIRTUAL SHADOW HIDDEN
    Modes: IN/OUT
      Engine      1: 8/Generic Envy24PT motherboard audio front out (VMIX0)
                     Available for use
    Input formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Output formats (0x00005010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
      AFMT_FLOAT   - Single precision floating point (native endianess)
    Device handle: vmix0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated
dh
New Member
 
Posts: 1
Joined: Mon May 14, 2007 9:01 am

Return to BSD

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron