| Summary: | media-video/mplayer-1.0_rc4_p20111215: Xv driver fails to initialize due to (denied) RWX memory allocation | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sven Vermeulen (RETIRED) <swift> |
| Component: | Hardened | Assignee: | The Gentoo Linux Hardened Team <hardened> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | swift |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Sven Vermeulen (RETIRED)
2011-12-23 09:39:02 UTC
At request of kallamej (on #gentoo-hardened) I rebuild mesa with USE="-llvm". The result is a bit different, but mplayer still wants to allocate RWX memory and crashes:
MPlayer SVN-r34445-4.5.3 (C) 2000-2011 MPlayer Team
Playing /home/swift/Downloads/DSCN9539.MOV.
libavformat file format detected.
[lavf] stream 0: video (mjpeg), -vid 0
[lavf] stream 1: audio (pcm_u8), -aid 0, -alang eng
VIDEO: [jpeg] 320x240 24bpp 15.000 fps 2167.6 kbps (264.6 kbyte/s)
Clip info:
creation_time: 2011-12-20 13:54:15
comment: NIKON DIGITAL CAMERA
comment-eng: NIKON DIGITAL CAMERA
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 7875 Hz, 1 ch, u8, 0.0 kbit/0.00% (ratio: 0->7875)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 1ch u8 (1 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [gl_nosw] 320x240 => 320x240 Planar 422P
MPlayer interrupted by signal 11 in module: decode video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
Strace still shows:
mmap(NULL, 10485760, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 EPERM (Operation not permitted)
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xffffffffffffffff} (Segmentation fault) ---
write(2, "\n\nMPlayer interrupted by signal "..., 59) = 59
write(2, "- MPlayer crashed by bad usage o"..., 196) = 196
write(2, "- MPlayer crashed. This shouldn'"..., 335) = 335
ioctl(0, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B38400 opost isig icanon echo ...}) = 0
Other video drivers (like x11) work.
As mentioned by Zorry, the mesa gallium driver uses RWX mappings. The classic driver doesn't. |