[MPlayer-dev-eng] MPlayer crashes when compiled with gcc 4.2 ( and gcc 4.3 snapshots)

Ismail Donmez ismail at pardus.org.tr
Sun Dec 17 15:19:43 CET 2006


Hi all,

I am tracing a crash with mplayer. Here is what I found:

valgrind & gdb agrees that it crashes on mp_msg.c line 182. Crash doesn't 
happen if ASS/SSA is disabled.

Here is what valgrind says:

==5836== Invalid read of size 1
==5836==    at 0x401E776: strlen 
(in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==5836==    by 0x4B4049E: fprintf (in /lib/libc-2.3.6.so)
==5836==    by 0x81098CF: open (vf_ass.c:395)
==5836==    by 0x80DC4F6: vf_open_plugin (vf.c:466)
==5836==    by 0x80831F6: reinit_video_chain (mplayer.c:3321)
==5836==    by 0x8086699: main (mplayer.c:4517)
==5836==  Address 0x5248003E is not stack'd, malloc'd or (recently) free'd                                                                                   


gdb output is interesting:

(gdb) step
182                 fprintf(stream, "\033[%d;3%dm%9s\033[0;37m: ",c2>>3,c2&7, 
mod_text[mod]);
(gdb) print c2
$2 = <value optimized out>


Any ideas/comments are welcome.

Regards,
ismail



More information about the MPlayer-dev-eng mailing list