Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f236c18c8280048da62a2bba5058675829f94847808b2ef505c1dd04a62d3c64
Ticket: ef23a85ac6bab7d4f2cdb1eb1a03d23bb2e5b289
Tcl_PanicProc - Tcl9 & NaviServer
User & Date: mookie on 2024-04-22 23:45:54
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Hi Core,
    
    In attempt of using NaviServer with TCL9.0x -- a module for the server fails, log.c when compiling against TCL9.
    
    After reaching out to Gustaf, dev of NaviServer, a hot-patch has been created.
    
    His explanation:
    
    The issue is that Tcl_PanicProc is defined in Tcl9 with the attribute declaration TCL_NORETURN1, but it seems, this attribute definition has to be provided as well for the prototype. It would be certainly better, if this attribute definition would be part of the type declaration of Tcl_PanicProc in Tcl9. Not very long ago, the same code worked fine, so something has changed in Tcl9.
    
    The patch below addresses this issue, but this is not nice. Maybe, the tcl-core people have a suggestion, since this will effect as well other applications requiring the use of Tcl_SetPanicProc().
    
    NaviServer Issue: https://sourceforge.net/p/naviserver/mailman/message/58763387/
    
    Source to patched log.c: https://github.com/naviserver-project/naviserver/commit/c96c143ac2c7a88b99f8c32e7d140019fe5e7629
    
    Many Thanks,
    David F
    
  5. foundin changed to: "9.0b3"
  6. is_private changed to: "0"
  7. login: "mookie"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "eb7513005aa11dbe2a07d8bff76f8af3c25f379b"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "mookie"
  14. subsystem changed to: "- New Builtin Object Types"
  15. title changed to: "Tcl_PanicProc - Tcl9"
  16. type changed to: "Bug"