[alsa-devel] hdspmixer segfault (1.0.24+)
Hi, I'm getting a segfault from hdspmixer using the current git alsa-tools (1.0.23 works, 1.0.24+ does not). See below for a backtrace. I'm running 2.6.33.x rt30, could this be the problem? (a dependency on newer kernels?)
-- Fernando
$ gdb ./hdspmixer/src/hdspmixer GNU gdb (GDB) Fedora (7.2-41.fc14) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-redhat-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /scratch/nando/alsa-tools/alsa-tools.git/hdspmixer/src/hdspmixer...done. (gdb) run Starting program: /scratch/nando/alsa-tools/alsa-tools.git/hdspmixer/src/hdspmixer [Thread debugging using libthread_db enabled]
HDSPMixer 1.6 - Copyright (C) 2003 Thomas Charbonnel thomas@undata.org This program comes with ABSOLUTELY NO WARRANTY HDSPMixer is free software, see the file COPYING for details
Looking for RME cards: Card 0: RME Hammerfall DSP + Multiface at 0xe9200000, irq 19 Multiface found! Card 1: HDA Intel at 0xe9300000 irq 32 1 RME cards card found. Initializing default presets
Program received signal SIGSEGV, Segmentation fault. HDSPMixerPresets::restore_preset (this=0x81fe500, prst=1) at HDSPMixerPresets.cxx:176 176 basew->inputs->strips[i]->pan->pos[z] = basew->inputs->strips[i]->data[card][speed][p]->pan_pos[z]; Missing separate debuginfos, use: debuginfo-install alsa-lib-1.0.24-1.fc14.i686 expat-2.0.1-10.fc13.i686 fltk-1.1.10-2.fc14.i686 fontconfig-2.8.0-2.fc14.i686 freetype-2.4.2-4.fc14.i686 glibc-2.13-1.i686 libX11-1.3.4-3.fc14.i686 libXau-1.0.6-1.fc14.i686 libXext-1.1.2-2.fc14.i686 libXft-2.1.14-1.fc13.i686 libXinerama-1.1-2.fc13.i686 libXrender-0.9.6-1.fc14.i686 libgcc-4.5.1-4.fc14.i686 libstdc++-4.5.1-4.fc14.i686 libxcb-1.7-1.fc14.i686 (gdb) bt #0 HDSPMixerPresets::restore_preset (this=0x81fe500, prst=1) at HDSPMixerPresets.cxx:176 #1 0x080552de in HDSPMixerPresets::preset_change (this=0x81fe500, p=1) at HDSPMixerPresets.cxx:258 #2 0x0804b436 in readregisters_cb (arg=0x80a0710) at HDSPMixerWindow.cxx:67 #3 0x4dd311d3 in Fl::wait(double) () from /usr/lib/libfltk.so.1.1 #4 0x4dd313e4 in Fl::run() () from /usr/lib/libfltk.so.1.1 #5 0x0804af34 in main (argc=1, argv=0xbffff284) at hdspmixer.cxx:114 (gdb)
On Sat, Feb 26, 2011 at 04:55:24PM -0800, Fernando Lopez-Lezcano wrote:
Hi, I'm getting a segfault from hdspmixer using the current git alsa-tools (1.0.23 works, 1.0.24+ does not). See below for a backtrace. I'm running 2.6.33.x rt30, could this be the problem? (a dependency on newer kernels?)
I have fixed this bug a couple of days ago:
http://thread.gmane.org/gmane.linux.alsa.devel/82452
They still need to be applied to the alsa-tools.git, but if you like, you can grab the patches and verify they work for you.
Cheers
On 02/27/2011 03:17 AM, Adrian Knoth wrote:
On Sat, Feb 26, 2011 at 04:55:24PM -0800, Fernando Lopez-Lezcano wrote:
Hi, I'm getting a segfault from hdspmixer using the current git alsa-tools (1.0.23 works, 1.0.24+ does not). See below for a backtrace. I'm running 2.6.33.x rt30, could this be the problem? (a dependency on newer kernels?)
I have fixed this bug a couple of days ago:
http://thread.gmane.org/gmane.linux.alsa.devel/82452
They still need to be applied to the alsa-tools.git, but if you like, you can grab the patches and verify they work for you.
They do work in a first (remote) test. Thanks very much!! -- Fernando
On 02/27/2011 11:21 AM, Fernando Lopez-Lezcano wrote:
On 02/27/2011 03:17 AM, Adrian Knoth wrote:
On Sat, Feb 26, 2011 at 04:55:24PM -0800, Fernando Lopez-Lezcano wrote:
Hi, I'm getting a segfault from hdspmixer using the current git alsa-tools (1.0.23 works, 1.0.24+ does not). See below for a backtrace. I'm running 2.6.33.x rt30, could this be the problem? (a dependency on newer kernels?)
I have fixed this bug a couple of days ago:
http://thread.gmane.org/gmane.linux.alsa.devel/82452
They still need to be applied to the alsa-tools.git, but if you like, you can grab the patches and verify they work for you.
They do work in a first (remote) test. Thanks very much!!
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 version number so ignore the 1.6 version printed. I'm waiting for a backtrace from his computer about the subsequent crash. See below for his message (and thanks for all the help!).
-- Fernando
-------- Original Message -------- Subject: [PlanetCCRMA] updated hdspmixer Date: Sun, 27 Feb 2011 15:52:51 -0500 From: Craig Bourne craigbourne@gmail.com To: planetccrma@ccrma.Stanford.EDU
I updated to alsa-tools 1.0.24.1-1.3.fc14.ccrma per today's note. This does not yet fix hdspmixer as the following command-line invocation and response shows.
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. ;)
HTH
diff --git a/hdspmixer/src/HDSPMixerOutput.cxx b/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; } }
participants (2)
-
Adrian Knoth
-
Fernando Lopez-Lezcano