Skip to contentSkip to conversation

: Crash on trying to set "any" hw_params

ALSA - lib 0000642 [email protected] 1 participant 1 message Mar 20, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=642>
======================================================================
Reported By: rbultje
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   642
Category:                   ordinary pcm
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             11-11-2004 11:48 CET
Last Modified:              03-20-2005 13:16 CET

======================================================================
Summary: Crash on trying to set "any" hw_params
Description:
Hi,

we received several similar bug reports in our bugzilla about ALSA-related crashers. It seems that the simple sequence of snd_pcm_hw_params_any() followed by snd_pcm_hw_params() will cause a floating point exception in libalsa. I can't reproduce it myself, but for backtraces and email addresses of people that can, see e.g.
http://bugzilla.gnome.org/show_bug.cgi?id=151288 or
http://bugzilla.gnome.org/show_bug.cgi?id=153227 (plus all the bug reports dupped to those).

If you need any information, either from me or from the reporters, feel free to contact me, I'll try to get all information required to resolve this. I've added a workaround in GStreamer CVS, but still think that this is a bug.
======================================================================

----------------------------------------------------------------------
tiwai - 11-18-04 18:29
----------------------------------------------------------------------
Please provide the alsa-lib version number they use. I guess this bug occurs when the rate plugin is used. Do you have any simple test case?

----------------------------------------------------------------------
jdthood - 03-20-05 13:16
----------------------------------------------------------------------
Many bugs were filed in the GNOME BTS about this. Lots of backtraces have been provided there.

It looks as if GNOME has worked around the problem, though. Ronald

Quoted 6 lines · Bultje

I have applied a workaround to CVS, I think version 0.8.6 of gst-plugins will fix this. Can you please test that once it comes out?
Also, I'm still of the opinion that this is an ALSA bug, since apparently the simple sequence of snd_pcm_hw_params_any() followed by snd_pcm_hw_params() will cause crashes.

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

11-11-04 11:48 rbultje        New Issue                                    
11-18-04 18:29 tiwai          Note Added: 0002457                          
03-20-05 13:16 jdthood        Note Added: 0004078                          

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

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click