[superh-gnu-discuss] mplayer argument parsing segfault with 4.4-45
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[superh-gnu-discuss] mplayer argument parsing segfault with 4.4-45



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

Attachment: mplayer-r30131-no-ass-fix-20091228b.patch
Description: Binary data

Attachment: good_options-vidix
Description: Binary data