mplayer argument parsing segfault with 4.4-45

Magnus Damm magnus.damm at gmail.com
Mon Dec 28 05:02:20 UTC 2009


Hi all,

I'm using a static mplayer to test some kernel multimedia code, and
I've ran into an issue with 4.4-45. The older 4.3-143 fails during
build. The "good" old KPIT toolchain 4.2.1-SH4-LINUX_v0702
(gnush4_linux_v0702_rc-1-1.i386.tar.gz) is however working just fine.

With 4.4-45 I can build the binary just fine, but during runtime I get
a segfault. No options are passed to the cross gcc so I assume it's
building for sh4a. To trigger a segfault pass "-tv outfmt=nv12" to
mplayer. Omitting "-tv outfmt=nv12" removes the segfault.

/ # /mplayer -tv outfmt=nv12 tv://1
Segmentation fault

I can reproduce this on real sh4a hardware and using qemu-sh (from
gentoo app-emulation/qemu-0.9.1).

Let me know if you need any additional information. Thanks!

/ magnus

- - -

Build and running instructions:

1. Get mplayer svn r30131
2. Apply the attached patch
3. Perform configure (replace _ with your prefix, use the attached
good_options-vidix file):

./configure --cc=_gcc --as=_as --ar=_ar --host-cc=gcc
--target=sh-linux --prefix=/ `cat ../good_options-vidix`

4. Run make:

make EXTRALIBS="-lpthread -lm -static"

5. Execute binary on target or in qemu-sh4

mplayer -tv outfmt=nv12 tv://1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-r30131-no-ass-fix-20091228b.patch
Type: application/octet-stream
Size: 807 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/superh-gnu-discuss/attachments/20091228/608c9383/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: good_options-vidix
Type: application/octet-stream
Size: 2973 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/superh-gnu-discuss/attachments/20091228/608c9383/attachment-0001.obj>


More information about the superh-gnu-discuss mailing list