[alsa-devel] hdspmixer segfault (1.0.24+)

Adrian Knoth adi at drcomp.erfurt.thur.de
Mon Feb 28 17:20:41 CET 2011

On 02/28/11 00:54, Fernando Lopez-Lezcano wrote:

> But one of my users (in Planet CCRMA) still has problems with his 9652,
> apparently the output labels for that card are missing and that is
> confirmed by looking at the source (his card works fine with the 1.0.23
> hdspmixer). I applied all your patches to current git except for the

Indeed. There have never been labels, and now it's crashing, most likely
because of dereferencing the non-existing label array.

Do you mind to try this patch? Maybe it's enough. If Craig feels happy
to do some remote try&error, I can sort this out with him.

Right now, I'm simply assigning a stupid "1", "2" .. "64" channel
naming, but maybe Craig can provide us with the correct output labels? I
don't have access to a H9652, so I don't have the slightest clue how the
ports are named. ;)


diff --git a/hdspmixer/src/HDSPMixerOutput.cxx
index 05a126c..0d8ea5c 100644
--- a/hdspmixer/src/HDSPMixerOutput.cxx
+++ b/hdspmixer/src/HDSPMixerOutput.cxx
@@ -262,6 +262,7 @@ void HDSPMixerOutput::setLabels()
     } else {
       fprintf(stderr, "Unknown card type for output labels\n");
+      labels_input = labels_playback = labels_madi_ss;

More information about the Alsa-devel mailing list