rpms/nspluginwrapper/F-8 nspluginwrapper-0.9.91.5-npviewer-flash-crash-cpu-affinity-workaround.patch, NONE, 1.1 nspluginwrapper.spec, 1.31, 1.32

Warren Togami 砥上勇 (wtogami) fedora-extras-commits at redhat.com
Tue Dec 18 07:24:19 UTC 2007


Author: wtogami

Update of /cvs/pkgs/rpms/nspluginwrapper/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11362

Modified Files:
	nspluginwrapper.spec 
Added Files:
	nspluginwrapper-0.9.91.5-npviewer-flash-crash-cpu-affinity-workaround.patch 
Log Message:
- Painfully ugly temporary workaround for flash-plugin-9.0.115.0 crash (#360891)
  Force npviewer.bin CPU affinity, seems to avoid a race condition and crash
  Remove this workaround after Adobe fixes their plugin.


nspluginwrapper-0.9.91.5-npviewer-flash-crash-cpu-affinity-workaround.patch:

--- NEW FILE nspluginwrapper-0.9.91.5-npviewer-flash-crash-cpu-affinity-workaround.patch ---
--- nspluginwrapper-0.9.91.5/src/npw-viewer.sh.orig	2007-12-18 02:15:34.000000000 -0500
+++ nspluginwrapper-0.9.91.5/src/npw-viewer.sh	2007-12-18 02:18:41.000000000 -0500
@@ -127,4 +127,8 @@
     ;;
 esac
 
-exec $LOADER $NPW_VIEWER_DIR/npviewer.bin ${1+"$@"}
+# Painfully ugly temporary workaround for flash-plugin-9.0.115.0 crash (#360891)
+# Force npviewer.bin CPU affinity, seems to avoid a race condition and crash
+# Remove this workaround after Adobe fixes their plugin.
+CPU=$[$RANDOM % `getconf _NPROCESSORS_ONLN`]
+exec taskset -c $CPU $LOADER $NPW_VIEWER_DIR/npviewer.bin ${1+"$@"}


Index: nspluginwrapper.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nspluginwrapper/F-8/nspluginwrapper.spec,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- nspluginwrapper.spec	6 Dec 2007 12:17:54 -0000	1.31
+++ nspluginwrapper.spec	18 Dec 2007 07:23:44 -0000	1.32
@@ -70,7 +70,7 @@
 Summary:	A compatibility layer for Netscape 4 plugins
 Name:		nspluginwrapper
 Version:	0.9.91.5
-Release:	13%{?dist}
+Release:	14%{?dist}
 Source0:	%{name}-%{version}%{?svndate:-%{svndate}}.tar.bz2
 Source1:        %{plugin_config_name}.tar.gz 
 Source2:        plugin-config.sh.in
@@ -81,6 +81,7 @@
 Patch4:         nspluginwrapper-0.9.91.5-runtime-restart.patch
 Patch5:         nspluginwrapper-0.9.91.5-fork.patch
 Patch6:         plugin-config-setuid.patch
+Patch7:         nspluginwrapper-0.9.91.5-npviewer-flash-crash-cpu-affinity-workaround.patch
 License:	GPL
 Group:		Networking/WWW
 Url:		http://gwenole.beauchesne.info/projects/nspluginwrapper/
@@ -113,6 +114,7 @@
 %patch2 -p1
 %patch4 -p1
 %patch5 -p1
+%patch7 -p1
 
 pushd %plugin_config_name
 %patch6 -p2
@@ -234,6 +236,11 @@
 %{_sysconfdir}/sysconfig/%{name}
 
 %changelog
+* Tue Dec 18 2007 Warren Togami <wtogami at redhat.com> 0.9.91.5-14
+- Painfully ugly temporary workaround for flash-plugin-9.0.115.0 crash (#360891)
+  Force npviewer.bin CPU affinity, seems to avoid a race condition and crash
+  Remove this workaround after Adobe fixes their plugin.
+
 * Thu Dec 6 2007 Martin Stransky <stransky at redhat.com> 0.9.91.5-13
 - added fix for #393541 - scripts will never fail
 




More information about the fedora-extras-commits mailing list