-
Any update? It is not a minor issue. One of the oldest group of functions does not work in the situation it was primarily designed for. And there is no workaround.
2009-10-28 20:48:00 UTC in Tcl
-
I don't think that recursive mutex will help. Cannot modify global data safely in a signal handler without be sure that you are alone.
Agree that the problem cannot be solved without help of another thread that does not receive signals.
Please also note that there may be several signals come before "end of special handling".
Draft idea:
Need a thread that blocks all signals (except, maybe...
2009-09-29 12:46:16 UTC in Tcl
-
pthread_trylock may help (in addition with global flag or something). I don't have clear idea though.
2009-09-29 11:35:49 UTC in Tcl
-
Tried on Linux, Red Hat 4 update 4. The same problem.
2009-09-29 01:54:42 UTC in Tcl
-
OS: sparc Solaris 10
Tcl_AsynMark cannot be called in a signal handler because it locks the same mutex (notifierMutex) as Tcl_WaitForEvent. If a signal is handled in main thread when it serves Tcl events, then deadlock is very probable. Attached example will produce a stack like this
----------------- lwp# 1 / thread# 1 --------------------
feb40408 lwp_park (0, 0, 0...
2009-09-29 01:33:24 UTC in Tcl
-
The function tixScrolledListBox:YView has "update idletasks" that can trigger adding new events including the same list update. I created a simple script which fails with "too many nested evaluations (infinite loop?)".
We commented "update idletasks", which looks like a hack in that place, and see no problems so far.
We use Tcl/Tk 8.5.5, Tix 8.4.3.
2009-06-30 03:36:11 UTC in Tix Widget Set for Tk/Tcl and Python
-
Thanks!!!
2009-03-01 20:43:50 UTC in Tcl
-
File Added: tra.
2009-02-28 18:53:08 UTC in Tcl
-
File Added: tra.
2009-02-28 17:33:33 UTC in Tcl
-
Tcl version: 8.4+
OS: Linux Red Hat 4, 5
Maybe, it is a Linux bug, but it appeared in Tcl's stdin handling. I got the problem in C, but I created a Tcl script that fails the same way.
If you execute a certain command though system()/exec which fails, stdin stream does not provide any more input except already buffered in C code. My Tcl script is more that 8K long because I initially got the...
2009-02-28 06:56:26 UTC in Tcl