mplayer ppc crash due to incorrect use of fsqrt
Bug #104630 reported by
Benjamin Herrenschmidt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mplayer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mplayer
(this is not a dup of the various bugs about incorrect usage of altivec instructions on G3 machines...)
The mplayer package in feisty started crashing on G4 machines (among others) due to the use of
the fsqrt instruction which is part of the GP optional instruction set and currently only available,
afaik, on 64 bits processors.
It's been either open-coded or been generated by gcc due to the use of the -mpowerpc-gpopt compilation
flag, either way, it now SIGILL's on G4 machines which is fairly annoying.
To post a comment you must log in.
I want to confirm this bug. I've been testing with an old Mac Mini.
unai@vicky:~$ gdb -q gmplayer _db.so. 1". disable: Could not find XScreenSaver window. desc_ft+ 1336>: fsqrt f0,f0
(no debugging symbols found)
Using host libthread_db library "/lib/libthread
(gdb) run
MPlayer 2:1.0~rc1-0ubuntu9 (C) 2000-2006 MPlayer Team
AltiVec found
CPU: PowerPC
xscreensaver_
GNOME screensaver disabled
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Program received signal SIGILL, Illegal instruction.
[Switching to Thread 805610288 (LWP 13864)]
0x100cf4d8 in read_font_desc_ft ()
(gdb) where
#0 0x100cf4d8 in read_font_desc_ft ()
#1 0x100cfe84 in load_font_ft ()
#2 0x100e9778 in guiInit ()
#3 0x10061388 in main ()
(gdb) disassemble $pc $pc+4
Dump of assembler code from 0x100cf4d8 to 0x100cf4dc:
0x100cf4d8 <read_font_
End of assembler dump.
unai@vicky:~$ cat /proc/cpuinfo
processor : 0
cpu : 7447A, altivec supported
clock : 1416.666661MHz
revision : 0.2 (pvr 8003 0102)
bogomips : 83.20
timebase : 41620997
platform : PowerMac
machine : PowerMac10,1
motherboard : PowerMac10,1 MacRISC3 Power Macintosh
detected as : 287 (Mac mini)
pmac flags : 00000010
L2 cache : 512K unified
pmac-generation : NewWorld