Unfortunately, I'm back to the same error. Here's the debugging:
#0 0x400afa5a in lame_decode1_headersB (buffer=0xffff0000 <Address 0xffff0000 out of bounds>, len=-65536,
pcm_l=0xbffffdc0, pcm_r=0xbffff4c0, mp3data=0xbffffdc0, enc_delay=0xffff0000, enc_padding=0xffff0000)
at mpglib_interface.c:132
132 pcm_l[i] = *p++;
(gdb) bt
#0 0x400afa5a in lame_decode1_headersB (buffer=0xffff0000 <Address 0xffff0000 out of bounds>, len=-65536,
pcm_l=0xbffffdc0, pcm_r=0xbffff4c0, mp3data=0xbffffdc0, enc_delay=0xffff0000, enc_padding=0xffff0000)
at mpglib_interface.c:132
#1 0x4011ae60 in ipow20 () from /usr/lib/libmp3lame.so.0
#2 0xffffffff in ?? ()
Cannot access memory at address 0xffffffff
(gdb) up 1
#1 0x4011ae60 in ipow20 () from /usr/lib/libmp3lame.so.0
(gdb) list
132 pcm_l[i] = *p++;
133 break;
134 case 2:
135 processed_samples = processed_bytes >> 2;
136 for (i = 0; i < processed_samples; i++) {
137 pcm_l[i] = *p++;
138 pcm_r[i] = *p++;
139 }
140 break;
141 default:
Any help would be greatly appreciated.
Deven
Deven Phillips wrote:
Alexander,
I figured out where I went wrong. I was trying to pass integer pointers for pcm_l and pcm_r. Unfortunately, now I am totally confused. How do I get the pcm data back from the function without pointer and when the function returns number of frames?
Helplessly lost . . .
Deven Phillips
On Tue, 2004-01-13 at 09:37, Deven Phillips wrote:
Alexander,
Thanks for the info. I'm rather new to gdb, and thos two other commands helped a lot, but not with the ipow20() call. Here's the output.
#0 0x400afa2a in lame_decode1_headersB (buffer=0x0, len=0, pcm_l=0x112a4e5, pcm_r=0x6112a4e5, mp3data=0x112a4e5, enc_delay=0x0, enc_padding=0x0) at mpglib_interface.c:137 137 pcm_l[i] = *p++; (gdb) bt #0 0x400afa2a in lame_decode1_headersB (buffer=0x0, len=0, pcm_l=0x112a4e5, pcm_r=0x6112a4e5, mp3data=0x112a4e5, enc_delay=0x0, enc_padding=0x0) at mpglib_interface.c:137 #1 0x4011ae60 in ipow20 () from /usr/lib/libmp3lame.so.0 (gdb) up 1 #1 0x4011ae60 in ipow20 () from /usr/lib/libmp3lame.so.0 (gdb) list 137 pcm_l[i] = *p++; 138 pcm_r[i] = *p++; 139 } 140 break; 141 default: 142 processed_samples = -1; 143 assert(0); 144 break; 145 } 146 break;
Also, the version is 3.93.1.
TIA,
Deven
On Tue, 2004-01-13 at 02:14, Alexander Leidinger wrote:
_______________________________________________On Tue, 13 Jan 2004 01:45:34 -1000 Deven Phillips <[EMAIL PROTECTED]> wrote:
I have been working with LAME for a total of about one week now, and I am now running into an error I can't seem to make any progress with. When I run my program, it segfaults and a gdb backtrace shows:
#0 0x400a0aa4 in lame_decode1_headersB () from /usr/lib/libmp3lame.so.0 (gdb) bt #0 0x400a0aa4 in lame_decode1_headersB () from /usr/lib/libmp3lame.so.0 #1 0x40108820 in ipow20 () from /usr/lib/libmp3lame.so.0 #2 0x8000287d in ?? () Cannot access memory at address 0x63652d9d
Any ideas why the ipow20 function would be segfaulting?
Which version of lame? Please compile with debug options and provide the output of gdb with the commands "bt", "up 1", "list" (order is important).
Bye,
Alexander.
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder
_______________________________________________ mp3encoder mailing list [EMAIL PROTECTED] http://minnie.tuhs.org/mailman/listinfo/mp3encoder
