Skip to contentSkip to conversation

: Segmentation fault and exact rate : nan (0/0)

ALSA - lib 0002203 [email protected] 1 participant 1 message Jun 16, 2006

lore
Share & tools
lore
#0 lore raw

The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2203>
======================================================================

Reported By:                Raymond
Assigned To:                perex
======================================================================
Project:                    ALSA - lib
Issue ID:                   2203
Category:                   1_pcm_d - direct PCM plugins (dmix+)
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             06-12-2006 16:44 CEST
Last Modified:              06-16-2006 18:55 CEST

======================================================================
Summary: Segmentation fault and exact rate : nan (0/0)
Description:
Running two instance of aplay in two different terminals, the second instance of aplay segmentation fault.

aplay -v -Ddefault:1 *.wav

Playing WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono Plug PCM: Rate conversion PCM (48000, sformat=U8) Its setup is:

  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : U8
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 8
  buffer_size  : 2730
  period_size  : 170
  period_time  : 21333
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 170
  xfer_align   : 170

start_threshold : 2720
stop_threshold : 2730
silence_threshold: 0
silence_size : 0
boundary : 178913280
Slave: Route conversion PCM (sformat=S16_LE)
Transformation table:

    0 <- 0
    1 <- 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : U8
  subformat    : STD
  channels     : 1
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 8
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1024
  xfer_align   : 1024

start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Direct Stream Mixing PCM
Its setup is:

  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1024
  xfer_align   : 1024

start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Hardware PCM card 1 'Intel 82801BA-ICH2' device 0 subdevice 0 Its setup is:

  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 0
  exact rate   : nan (0/0)
  msbits       : 0
  buffer_size  : 16384
  period_size  : 0
  period_time  : 0
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 0
  sleep_min    : 0
  avail_min    : 0
  xfer_align   : 0

start_threshold : 0
stop_threshold : 0
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
Segmentation fault

======================================================================

----------------------------------------------------------------------
Raymond - 06-16-06 11:27
----------------------------------------------------------------------
second instance of arecord also behave the same, it seem that pcm return by snd_pcm_direct_open_secondary_client() cannot passed into snd_pcm_dump()

arecord -v -Ddefault:1 -d10 -f cd test1.wav
Recording WAVE 'test1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:

  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 15052
  period_size  : 940
  period_time  : 21333
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 940
  xfer_align   : 940

start_threshold : 1
stop_threshold : 15052
silence_threshold: 0
silence_size : 0
boundary : 986447872
Slave: Direct Snoop PCM
Its setup is:

  stream       : CAPTURE
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1024
  xfer_align   : 1024

start_threshold : 1
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Hardware PCM card 1 'Intel 82801BA-ICH2' device 0 subdevice 0 Its setup is:

  stream       : CAPTURE
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 0
  exact rate   : nan (0/0)
  msbits       : 0
  buffer_size  : 16384
  period_size  : 0
  period_time  : 0
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 0
  sleep_min    : 0
  avail_min    : 0
  xfer_align   : 0

start_threshold : 0
stop_threshold : 0
silence_threshold: 0
silence_size : 0
boundary : 1073741824

----------------------------------------------------------------------
tiwai - 06-16-06 18:55
----------------------------------------------------------------------
The missing uniniaizlied fields in the slave PCM are fixed on HG repo now.

Issue History
Date Modified Username Field Change
======================================================================

06-12-06 16:44 Raymond        New Issue                                    
06-12-06 17:19 rlrevell       Note Added: 0010171                          
06-13-06 04:13 Raymond        Note Added: 0010184                          
06-14-06 14:14 Raymond        Note Added: 0010211                          
06-16-06 11:27 Raymond        Note Added: 0010249                          
06-16-06 18:55 tiwai          Status                   assigned => resolved
06-16-06 18:55 tiwai          Resolution               open => fixed       
06-16-06 18:55 tiwai          Note Added: 0010257                          

======================================================================