Segfault on Linux

Subscribe to Segfault on Linux 9 post(s), 2 voice(s)

 
Avatar bobulator 5 post(s)

When I run the encoder file “dsvideo.86” in the Linux terminal, the terminal returns

“Segmentation fault (core dumped)”

I am running ubuntu gutsy gibbon 7.10 and i have installed ffmpeg and twolame from ubuntu’s software repository.

I tried the program with a .avi file.

Any ideas?

i am running a Celeron 1.75Ghz processor with 1024MB of RAM and 40GB of HDD space.

:/

 
Avatar bobulator 5 post(s)

Will compiling the program myself help?

 
Avatar Nick Ludlam Administrator 312 post(s)

Compiling should help, even if it only allows you to help us debug where the crash is happening. Do you have devkitPro installed?

 
Avatar bobulator 5 post(s)

No, I don’t have devkitpro.

I’ll try compiling the encoder though.

 
Avatar Nick Ludlam Administrator 312 post(s)

To compile the encoder, you need libtwolame and libavcodec/libavformat/libavutil from the ffmpeg package. Hopefully they will be available as development libraries with whatever package system your linux distribution uses.

 
Avatar bobulator 5 post(s)

I’ve (finally) built dsvideo after installing libtwolame and ffmpeg and libavocdec etc.

No errors whatsoever with the build process, just the usual compiling and linking.

Then I actually try to run the program and it goes and segfaults on me again!

Oh, and devkitpro is installed now as well.

Note: in order to get dsvideo to build i needed not only the libavcodec files but also libavcodec-dev.

 
Avatar Nick Ludlam Administrator 312 post(s)

Yes, libavcodec-dev will give you the header files required for compilation, and the package name without “-dev” gives you the shared libraries.

Now, the next stage: Do you know how to use gdb to get a backtrace of what crashed in DSVideo encoder? I suspect it will be within libavcodec/libavformat, but it would be useful to confirm that.

 
Avatar bobulator 5 post(s)

no, I don’t know about gdb.

 
Avatar Nick Ludlam Administrator 312 post(s)

OK here’s what I’d like you do to for us:

1. Install the gdb package
2. In a terminal cd into the directory with the DSVideo encoder
3. Run “gdb <name dsvideo of binary encoder>”
4. In the gdb prompt, type “run <args>” where the args are what you would normally pass to the encoder binary. ie/ “run -n 24000 test.avi”
5. When it crashes, type “bt”, and cut and paste the output into an email

Thanks for the help with this.