[MPlayer-users] codec-cfg coredump

Steven M. Schultz sms at 2BSD.COM
Mon Dec 16 03:17:02 CET 2002


Hello -

> From: Arpi <arpi at thot.banki.hu>
> > 	... and ran into a problem with codec-cfg coredumping:
> 
> yes i just commited this code

> > (gdb) where
> > #0  0x38106056 in __svfprintf () from /shlib/libc.so.2
> > #1  0x381048a4 in printf () from /shlib/libc.so.2
> > #2  0x804a71e in print_string (s=Cannot access memory at address 0x9b.
> > ) at codec-cfg.c:955
> > Cannot access memory at address 0x7b.
> 
> could you recompile it with debug info (-g) and show me gdb log ?

	That is the gdb log ;(

	make distclean;./configure --enable-debug

./codec-cfg ./etc/codecs.conf > codecs.conf.h
Segmentation fault - core dumped
gmake: *** [codecs.conf.h] Error 139
sitka.147-> gdb codec-cfg codec-cfg.core 
GNU gdb 
Copyright 1998 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-unknown-bsdi4.3"...
Core was generated by `codec-cfg'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /shlib/libgcc.so.1...done.
Reading symbols from /shlib/libc.so.2...done.
Reading symbols from /shlib/ld-bsdi.so...done.
#0  0x38106056 in __svfprintf () from /shlib/libc.so.2
(gdb) where
#0  0x38106056 in __svfprintf () from /shlib/libc.so.2
#1  0x381048a4 in printf () from /shlib/libc.so.2
#2  0x804a6be in print_string (s=0x10000 <Address 0x10000 out of bounds>)
    at codec-cfg.c:951
#3  0x804a900 in main (argc=2, argv=0x8047ab4) at codec-cfg.c:1016
#4  0x8048a23 in __start ()

	The values are slightly different but 's'  is still bogus:

		s=0x10000 <Address 0x10000 out of bounds>

	Oh, the last 10 lines that were written to codecs.conf.h are:

"RAW YVU9", /* info */
NULL, /* comment */
NULL, /* dll */
"raw", /* drv */
{ 0x00000000, 0, 0,{ 0, 0, 0, 0, 0, 0, 0, 0 } }, /* GUID */
0 /* flags */, 1 /* status */, 0 /* cpuflags */ }
,
{{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* fourcc */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* fourccmap */
{ 0x32315659, 0x30323449, 0x32595559, 0x59565955, 0x39555659, 0x42475220, 0x42475218, 

	The file codecs.conf.h is quite large so something is being written
	out before the coredump happens:

	-rw-r--r--   1 sms  wheel  106496 Dec 15 17:32 codecs.conf.h

	Steven Schultz
	sms at 2bsd.com




More information about the MPlayer-users mailing list