1.0.10-rc1, envy24control, segfault
Hi all, I'm getting a segfault on startup of envy24control (alsa-tools 1.0.10-rc1 - the rest of the packages are 1.0.10-rc1, of course). This is a backtrace:
Starting program: /zap/alsa-tools-1.0.10rc1/envy24control/envy24control Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xffffe000
[Thread debugging using libthread_db enabled]
[New Thread -1208341600 (LWP 6320)]
using --- input_channels: 8
--- output_channels: 8
--- pcm_output_channels: 8
--- spdif in/out channels: 2Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208341600 (LWP 6320)]0x080542c6 in midi_controller (c=0, v=0) at midi.c:153
153 do_controller(c,v2);
(gdb) back
#0 0x080542c6 in midi_controller (c=0, v=0) at midi.c:153 #1 0x0805492b in mixer_update_stream (stream=1, vol_flag=1, sw_flag=1)
at mixer.c:67
#2 0x080552a3 in mixer_postinit () at mixer.c:255
#3 0x08053518 in main (argc=1, argv=0xbfcc2254) at envy24control.c:2185 (gdb)
-- Fernando
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
At Thu, 01 Sep 2005 12:59:24 -0700,
Quoted 22 lines · Fernando Lopez-Lezcano
Hi all, I'm getting a segfault on startup of envy24control (alsa-tools 1.0.10-rc1 - the rest of the packages are 1.0.10-rc1, of course). This is a backtrace:
Starting program: /zap/alsa-tools-1.0.10rc1/envy24control/envy24control Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at
0xffffe000
[Thread debugging usinglibthread_dbenabled]
[New Thread -1208341600 (LWP 6320)]
using ---input_channels: 8--- output_channels: 8 --- pcm_output_channels: 8 --- spdif in/out channels: 2Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208341600 (LWP 6320)]
0x080542c6inmidi_controller(c=0, v=0) at midi.c:153
153do_controller(c,v2);
(gdb) back
#00x080542c6inmidi_controller(c=0, v=0) at midi.c:153 #10x0805492binmixer_update_stream(stream=1, vol_flag=1, sw_flag=1)
Quoted 4 lines
at mixer.c:67#2
0x080552a3inmixer_postinit() at mixer.c:255
#30x08053518in main (argc=1, argv=0xbfcc2254) at envy24control.c:2185 (gdb)
Try the patch below.
Takashi
Index: envy24control/midi.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-tools/envy24control/midi.c,v retrieving revision 1.4
midi.c +3 -0
@@ -142,6 +142,9 @@int midi_controller (int c,int v) {int v2; + +if (!seq)return ; +if (c<0 || c>127 )return 0 ;if (v<0 ) v=0 ;
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
At Fri, 02 Sep 2005 11:48:11 +0200,
Quoted 30 lines · I wrote:
At Thu, 01 Sep 2005 12:59:24 -0700,
Quoted 22 lines · Fernando Lopez-Lezcano
Hi all, I'm getting a segfault on startup of envy24control (alsa-tools 1.0.10-rc1 - the rest of the packages are 1.0.10-rc1, of course). This is a backtrace:
Starting program: /zap/alsa-tools-1.0.10rc1/envy24control/envy24control Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at
0xffffe000
[Thread debugging usinglibthread_dbenabled]
[New Thread -1208341600 (LWP 6320)]
using ---input_channels: 8--- output_channels: 8 --- pcm_output_channels: 8 --- spdif in/out channels: 2Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208341600 (LWP 6320)]
0x080542c6inmidi_controller(c=0, v=0) at midi.c:153
153do_controller(c,v2);
(gdb) back
#00x080542c6inmidi_controller(c=0, v=0) at midi.c:153 #10x0805492binmixer_update_stream(stream=1, vol_flag=1, sw_flag=1)Quoted 4 lines
at mixer.c:67#2
0x080552a3inmixer_postinit() at mixer.c:255
#30x08053518in main (argc=1, argv=0xbfcc2254) at envy24control.c:2185 (gdb)
Quoted 1 line
Try the patch below.
I should have compiled it once... The new patch is below.
Takashi
Index: envy24control/midi.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-tools/envy24control/midi.c,v retrieving revision 1.4
midi.c +4 -0
@@ -142,6 +142,10 @@int midi_controller (int c,int v) {int v2; + +if (! seq) +return 0 ; +if (c<0 || c>127 )return 0 ;if (v<0 ) v=0 ;
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf