Subject: pkg/14827: graphics/libflash crashes on 8-bit and lesser displays
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 12/03/2001 13:04:50
>Number:         14827
>Category:       pkg
>Synopsis:       graphics/libflash crashes on 8-bit and lesser displays
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 03 10:05:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        pkgsrc-current 2001/12/01
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

System: NetBSD 1.5W
Architecture: i386
Machine: i386

>Description:

	graphics/libflash, and the tools it's used in, such as
	graphics/flashplayer and www/moz-flash are useless on 8-bit or
	lesser displays (or maybe only those missing MIT-SHM?).

	Attempting to play, with swfplayer, the test file included in
	the libflash distribution, or attempting to visit the test link
	on the libflash site (http://www.swift-tools.com/Flash/) with
	mozilla-0.9.6 and the moz-flash plugin causes a crash after
	printing the following (this example from my NCD HMX terminal):

$ swfplayer ScreenSaver.swf                                        
Xlib:  extension "MIT-SHM" missing on display "xtremely.weird.com:0.0".
Xlib:  extension "MIT-SHM" missing on display "xtremely.weird.com:0.0".
Unsupported depth
Memory fault 

$ mozilla -P woods
open dsp: Device not configured
Xlib:  extension "MIT-SHM" missing on display "xtremely.weird.com:0.0".
Xlib:  extension "MIT-SHM" missing on display "xtremely.weird.com:0.0".
Unsupported depth
Memory fault

	On a monochrome display the error comes from X11 and there's no
	core dump:

$ swfplayer ScreenSaver.swf                                                                             
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  129 (MIT-SHM)
  Minor opcode of failed request:  1 (X_ShmAttach)
  Serial number of failed request:  20
  Current serial number in output stream:  21


>How-To-Repeat:


$ gdb /usr/pkg/bin/swfplayer swfplayer.core                                              <
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsd"...(no debugging symbols found)...
Core was generated by `swfplayer'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Reading symbols from /usr/pkg/lib/libflash.so.0...
(no debugging symbols found)...done.
Reading symbols from /usr/pkg/lib/libjpeg.so.62...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libz.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libossaudio.so.0...
(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...
(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libm387.so.0...(no debugging symbols found)...
---Type <return> to continue, or q <return> to quit---
done.
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
#0  0x48072e4e in GraphicDevice::setMovieDimension ()
(gdb) where
#0  0x48072e4e in GraphicDevice::setMovieDimension ()
#1  0x4806b33a in FlashGraphicInit ()
#2  0x80499c2 in FlashGraphicInitX11 ()
#3  0x804a365 in main ()
#4  0x80493e1 in ___start ()
(gdb) quit



$ gdb /usr/pkg/lib/mozilla/mozilla-bin mozilla-bin.core                                               <
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsd"...(no debugging symbols found)...
Core was generated by `mozilla-bin'.
Program terminated with signal 11, Segmentation fault.
/usr/pkg/lib/mozilla/plugins/npflash.so: No such file or directory.
#0  0x495c2e4e in ?? () from /usr/pkg/lib/libflash.so.0
(gdb) where
#0  0x495c2e4e in ?? () from /usr/pkg/lib/libflash.so.0
#1  0x495bb33a in ?? () from /usr/pkg/lib/libflash.so.0
#2  0x495b2790 in ?? ()
#3  0x495b1d84 in ?? ()
#4  0x495b2be7 in ?? ()
#5  0x48fb706e in ?? () from /opt/pkg/lib/mozilla/components/libgkplugin.so
#6  0x48fbbc1f in ?? () from /opt/pkg/lib/mozilla/components/libgkplugin.so
#7  0x48fc96d7 in ?? () from /opt/pkg/lib/mozilla/components/libgkplugin.so
#8  0x488dc2a7 in ?? () from /opt/pkg/lib/mozilla/components/liburiloader.so
#9  0x487d10b9 in ?? () from /opt/pkg/lib/mozilla/components/libnecko.so
#10 0x488035be in ?? () from /opt/pkg/lib/mozilla/components/libnecko.so
#11 0x487d04d2 in ?? () from /opt/pkg/lib/mozilla/components/libnecko.so
#12 0x487c1c8c in ?? () from /opt/pkg/lib/mozilla/components/libnecko.so
#13 0x48195e63 in ?? () from /usr/pkg/lib/mozilla/libxpcom.so
#14 0x48195d83 in ?? () from /usr/pkg/lib/mozilla/libxpcom.so
#15 0x48196ca4 in ?? () from /usr/pkg/lib/mozilla/libxpcom.so
#16 0x4865a1b7 in ?? () from /opt/pkg/lib/mozilla/components/libwidget_gtk.so
#17 0x48659f2d in ?? () from /opt/pkg/lib/mozilla/components/libwidget_gtk.so
#18 0x48388a22 in ?? () from /usr/pkg/lib/libglib.so.13
#19 0x48389f33 in ?? () from /usr/pkg/lib/libglib.so.13
#20 0x4838a4f3 in ?? () from /usr/pkg/lib/libglib.so.13
#21 0x4838a671 in ?? () from /usr/pkg/lib/libglib.so.13
#22 0x482b57ad in ?? () from /usr/pkg/lib/libgtk.so.12
---Type <return> to continue, or q <return> to quit---q
Quit

>Fix:

	Unfrotunately there's little documentation on the
	swift-tools.com site, or in the distribution, about what's
	supposed to be supported (outside of saying "linux").

	Other than someone writing a patch to improve the X11 support in
	libflash I guess what's best for pkgsrc would be to simply
	include a warning in a MESSAGE file stating that libflash is
	currently useless on 8-bit and lesser displays (or those missing
	MIT-SHM support, if instead that's what the problem really is).

>Release-Note:
>Audit-Trail:
>Unformatted: