Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 262cedf1c940b35525745b1a2e761825f6e0f9b6d1f1b118ad40593e6a1f7242
Ticket: 534172ff5b7f0e64f11a0ae6ba83ca1b359f73c6
Crash in DeleteReflectedChannelMap (introduced via tcllib 1.21)
User & Date: anonymous on 2023-02-21 17:03:26
Changes

  1. icomment:
    Jan many thanks, my quick tests showed that your fix works as well!
    
    I have managed now to get a simple test script for NaviServer (without OpenACS). 
    For experimenting, one can reproduce the problem with 5 commands:
    
    # 1) get the install script for NaviServer (it creates a subdirectory)
    git clone https://github.com/gustafn/install-ns.git && cd install-ns
    
    # 2) compile and install NaviServer in /usr/local/ns (sources go to /usr/local/src, creates as well a user nsadmin)
    sudo version_ns=GIT with_debug_flags=1 with_ns_doc=0 with_postgres=0 version_tcllib=1.21 bash install-ns.sh build
    
    # 3) increase the frequency of thread restarts to trigger the problem earlier
    sudo sed -i -e 's/connsperthread *1000/connsperthread 2/' /usr/local/ns/conf/nsd-config.tcl
    
    # 4) install a test script named mimepage.tcl 
    echo 'package req mime
       set token [mime::initialize -canonical text/plain -string {hello world}]
       set msg [mime::buildmessage $token]
       mime::finalize $token -subordinates all
       ns_return 200 text/plain $msg' | sudo tee /usr/local/ns/pages/mimepage.tcl >/dev/null
    
    # 5) start NaviServer on http port 8000 in the foreground (see error/crash in console)
    sudo nsd_httpport=8000 /usr/local/ns/bin/nsd -f -u nsadmin -g nsadmin -t /usr/local/ns/conf/nsd-config.tcl
    
    Now, use a browser to navigate to http://YOURHOST:8000/mimepage.tcl 
    and keep pressing reload ... until the crash happens.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"