[gnuplot] changed wxt terminal to monothreaded - avoid crash when unlocking a free mutex

Frantisek Kluknavsky fkluknav at fedoraproject.org
Tue Feb 4 10:41:33 UTC 2014


commit fe2da7be1ca71b9989f4f4e8294d1fdbe1719e82
Author: Frantisek Kluknavsky <fkluknav at redhat.com>
Date:   Tue Feb 4 11:42:02 2014 +0100

    changed wxt terminal to monothreaded - avoid crash when unlocking a free mutex

 gnuplot-4.6.4-singlethread.patch |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gnuplot-4.6.4-singlethread.patch b/gnuplot-4.6.4-singlethread.patch
new file mode 100644
index 0000000..ea88b1d
--- /dev/null
+++ b/gnuplot-4.6.4-singlethread.patch
@@ -0,0 +1,15 @@
+diff -up wrk/src/wxterminal/wxt_gui.h.wrk wrk/src/wxterminal/wxt_gui.h
+--- wrk/src/wxterminal/wxt_gui.h.wrk	2014-02-04 10:48:36.086237421 +0100
++++ wrk/src/wxterminal/wxt_gui.h	2014-02-04 10:51:22.246931141 +0100
+@@ -154,8 +154,9 @@ extern "C" {
+ /* depending on the platform, and mostly because of the Windows terminal which
+  * already has its event loop, we may or may not be multithreaded */
+ #if defined(__WXGTK__)
+-# define WXT_MULTITHREADED
+-#elif defined(__WXMSW__) || defined(__WXMAC__)
++//avoid a crash when unlocking a not-locked mutex, do not use threads
++//# define WXT_MULTITHREADED
++//#elif defined(__WXMSW__) || defined(__WXMAC__)
+ # define WXT_MONOTHREADED
+ #else
+ # error "wxt does not know if this platform has to be mono- or multi-threaded"


More information about the scm-commits mailing list