Skip to content
Tcl Source Code History Of Ticket 8d8bb39962
Login

History Of Ticket 8d8bb39962

Artifacts Associated With Ticket 8d8bb39962

  1. Ticket change [6810b04255] (rid 198612) by anonymous on 2022-03-02 08:13:17:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      I need to replace the Tcl notifier, so I had a look at unix/tclXtNotify.c.
      
      After "make xttest" and running xttest on a small test script, I noticed the program doesn't end.
      
      gdb tells me the program is stuck in Tcl_FinalizeNotifier.
      
      I see in unix/tclUnixNotfy.c that Tcl_FinalizeNotifier checks whether tclNotifierHooks.finalizeNotifierProc is set. If so, run that function. Otherwise, run provided cleanup code.
      
      Now tclXtNotify.c sets all 8 members of the struct Tcl_NotifierProcs with Tcl_SetNotifier in function InitNotifier(), 4 with custom replacements, and 4 with default Tcl functions, including Tcl_FinalizeNotifier for the finalizeNotifierProc member.
      
      On exit, tclNotifierHooks.finalizeNotifierProc is called, so Tcl_FinalizeNotifier is called, and enters an infinite loop.
      
      The documentation at http://tmml.sourceforge.net/doc/tcl/Notifier.html seems to imply that all members of the struct Tcl_NotifierProcs need to be replaced with Tcl_SetNotifier. Is this a wrong assumption?
      
    5. foundin initialized to: "8.6.12"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "05. XT Notifier"
    14. title initialized to: "incorrect notifier initialization in tclXtNotify.c"
    15. type initialized to: "Bug"
  2. Ticket change [a841c8b834] (rid 198613) by anonymous on 2022-03-02 12:43:26:

    1. icomment:
      interestingly, found very similar code based on the Xt notifier in tclplugin-3.0.0.1/unix/npxtnotify.c from the Tcl/Tk Browser Plugin (see http://www.tcl.tk/software/plugin/ and http://tclplugin.sourceforge.net/).
      
      With one difference: here, the struct passed to Tcl_SetNotify has only 4 of the 8 fields set.
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
  3. Ticket change [4faed22e79] (rid 198704) by jan.nijtmans on 2022-03-04 16:16:55:

    1. closedate changed to: "2459643.17842125"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Indeed!  Thanks for the report.
      
      Also the memset() function was called much too late .....
      
      Fixed now [362f6d184c8de451|here]
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. severity changed to: "Minor"
    8. status changed to: "Closed"