[FFmpeg-soc] Segmentation fault debug questions

Benjamin Larsson banan at ludd.ltu.se
Wed Jul 16 16:45:24 CEST 2008


zhentan feng wrote:
> Hi
>
> 2008/7/15 Luca Barbato <lu_zero at gentoo.org>:
>
>   
> actually it works. I saw the segmentfault function and callstacks.
>
> But I meet breakpoints problem.
>
> when I set break points at the code line which contain the variable defined
> in origin FFmpeg such as:
>
>     MXFContext *mxf = s->priv_data;
>
>     put_buffer(pb, primer_pack_key, 16);
>
> it actually stop at the correct line.
>
> but when I set break points at the code line which contain the new variables
> such as:
>
>     local_tag_number = sizeof(mxf_local_tag_batch);
>     rand_num = rand_num%256 + 1;
>
> it can not stop at there.
>
> It seems like, gdb didn't load the symbols of the new variables in mxfenc.c
>
> Any ideas?
>   
Compile with --enable-debug=3 --disable-optimizations --disable-mmx 
--enable-gpl.

That should give you good results. For a visual debug interface use ddd, 
kdbg or kdevelop.

MvH
Benjamin Larsson





More information about the FFmpeg-soc mailing list