LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Segmentation faults with Lame 3.96.1 -- help! (https://www.linuxquestions.org/questions/linux-software-2/segmentation-faults-with-lame-3-96-1-help-446996/)

cdhgee 05-21-2006 09:34 AM

Segmentation faults with Lame 3.96.1 -- help!
 
I'm trying to convert a WAV file to MP3 using the LAME encoder (version 3.96.1, which I believe to be the latest). Every time I try it, it segfaults. I've tried it with lots of different WAV files, so I know it's not the file that's causing it to fail. I've run it through gdb, below is the output.

I've tried googling for this, and have found a couple of other instances where people have got the same problem, but no suggestions as to what might be at fault.

I've also tried various different command-line arguments: none, --preset standard, --alt-preset standard etc, all to no avail.

Can anyone help?

Code:

GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) set args 01.wav 01.mp3
(gdb) run
Starting program: /usr/bin/lame 01.wav 01.mp3
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0xabb000
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
LAME version 3.96.1 (http://lame.sourceforge.net/)
CPU features: MMX (ASM used), 3DNow! (ASM used), SSE
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
Encoding 01.wav to 01.mp3
Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
    0/7336  ( 0%)|    0:00/    0:00|    0:00/    0:00|  0.0000x|    0:00
Program received signal SIGSEGV, Segmentation fault.
0x0808e0f4 in ?? ()

Thanks in advance,
Regards
David Gee

xode 05-22-2006 07:33 PM

You might want to download the source code and compile the program on your system. If you go that route and the program is not a single instance standalone program, you might also want to build the result into an RPM that you can install and/or uninstall with your package manager.

cdhgee 05-23-2006 04:06 AM

Quote:

Originally Posted by xode
You might want to download the source code and compile the program on your system. If you go that route and the program is not a single instance standalone program, you might also want to build the result into an RPM that you can install and/or uninstall with your package manager.

Thanks, xode, I'll give that a try.

Regards
David

cdhgee 05-24-2006 12:16 PM

Yeah, a new copy of lame did the trick - thanks.

xode 05-24-2006 04:56 PM

Were you able to build it into a package or did you need to build it into a package?

cdhgee 05-25-2006 01:41 AM

Actually, I just removed lame, and reinstalled the rpm off the Fedora download site. Not sure why it worked this time - maybe the original rpm was corrupted or something. Anyway, it works now :-).


All times are GMT -5. The time now is 12:56 AM.