Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15346 - Mplayer crashes on Vesa
Summary: Mplayer crashes on Vesa
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-08 20:48 UTC by Francisco León
Modified: 2003-10-29 14:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco León 2003-02-08 20:48:26 UTC
Since gentoo 1.4 i havent been able to use mplayer with VESA output (to play 
movies without X)

To do that, you do: mplayer -vo vesa <movie>
All i get is "killed"

If i use strace, i get:
write(1, "VDec: vo config request - 352 x "..., 65VDec: vo config request -
352 x 288 (preferred csp: Planar YV12)
) = 65
write(1, "VDec: using Planar YV12 as outpu"..., 45VDec: using Planar YV12 as
output csp (no 0)
) = 45
write(1, "Movie-Aspect is undefined - no p"..., 51Movie-Aspect is undefined
- no prescaling applied.) = 51
write(1, "VO: [vesa] 352x288 => 352x288 Pl"..., 48VO: [vesa] 352x288 =>
352x288 Planar YV12  [fs]
) = 48
open("/dev/zero", O_RDONLY|O_LARGEFILE) = 10
mmap2(0x10000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
10, 0) = 0x10000
open("/dev/mem", O_RDWR|O_LARGEFILE)    = 11
mmap2(NULL, 1282, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 11,
0) = 0
mmap2(0xa0000, 393216, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 11, 0xa0)
= 0xa0000
ioperm(0, 0x400, 0x1)                   = 0
iopl(0x3)                               = 0
vm86old(0x83871ac)                      = -1 ENOSYS (Function not
implemented)
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
getpid()                                = 3143
kill(3143, SIGKILL)                     = 0
+++ killed by SIGKILL +++

I have been in contact with the mplayer developers on their mailing list, with 
no luck.

I have an nvidia gf4 ti 4200, using vga=788 on lilo.conf
Perhaps devfs is making trouble or i have other permission issues? (i am trying 
as root!)

Reproducible: Always
Steps to Reproduce:
1.mplayer -vo vesa movie
2.
3.

Actual Results:  
crash

Expected Results:  
no crash

i dont have proof that this is a gentoo bug other that it used to work on 1.2
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-09 04:10:22 UTC
What version of mplayer ?  I had the same issue.  It was my kernel not supporting
vm86old() system call ...  I have not checked yet, but with rc3 and 2.5.59 it
works just fine again ....
Comment 2 Francisco León 2003-02-09 09:54:21 UTC
Interesting, since my strace reports the problem with vm86old()
I am using rc3 and the latest "stable" gentoo-sources kernel (2.4.19-r10)
I guess i will try vanilla 2.4.20
Please contact a gentoo kernel developer for more info on this. I will contact the mplayer list for more info.

I believe gentoo sources 2.4.18 worked
Comment 3 Francisco León 2003-02-09 10:06:47 UTC
This is getting more interesting by the minute. According to a mdk9 user in
the mplayer mailing list, this is a glibc bug:
 mdk9 + glibc-2.2.5 => segfault
 mdk9 + glibc-2.2.4 => it works

Well, we are both using 2.3.1 right? So let's hope this is a broken kernel issue.
Comment 4 Francisco León 2003-02-09 14:53:50 UTC
apparently, this is a problem between mplayer and glibc >=2.2.5
the guy who tried both 2.2.4 and 2.2.5 tried kernels 2.4.18, .19 and .20

what glibc are you using?
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-09 17:35:30 UTC
2.3.1.  I check the source .. it should use the system call '113' if I remmeber,
and that should in turn call the correct vm86*() function.
Comment 6 Francisco León 2003-02-09 18:02:03 UTC
so, 2.3.1 with kernel 2.5 works but with 2.4.19 does not?
I dont know who to blame... I'm still waiting for the developers to answer me.

I also found the code you mentioned. I am tempted to take vm86.h from glibc 2.2.4 and try it out
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-16 09:17:32 UTC
And?  I keep forgetting to try at work with a 2.4.20 and glibc-2.2.5 setup.
Comment 8 Francisco León 2003-02-16 10:23:45 UTC
vm86.h from both the sys and the asm dir are exactly the same in 2.2.4 and 2.3.1 (i took a rpm package i found and compared those 2 files)

I wouldn't know how to install 2.2.4 completely without screwing my system.

Anyway, mplayer needs to port the code to the new (?) vm86() function so i think we can't do much ourselves
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-10-05 13:11:27 UTC
is this still an issue ?
Comment 10 Francisco León 2003-10-05 13:29:15 UTC
i dont have gentoo on my machine anymore but i guess it still is an issue
since it happens with recent kernels/glibc versions.

if you can try it out yourself else just close this
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-10-29 14:18:03 UTC
closing as it's unknown state