Wapp

Ticket Change Details
Login
Overview

Artifact ID: 999938c27ee77fa2d4e3518ac82ec22beba58ffbc651b7be1ebfbfadee64b705
Ticket: 1d0112d75bfbffc810301c3116ab9f5b2d89f501
wapp cannot be loaded in a slave interp
User & Date: mjanssen 2019-07-31 08:38:57
Changes

  1. icomment:
    Currently wapp cannot be loaded in a slave interp or separate thread because there ::argv0 is not set.
    
    <verbatim>
    interp create wapp
    
    wapp eval {
      source ./wapp.tcl
      wapp-start {}
    }
    </verbatim>
    
    Fails with:
    
    <verbatim>
    can't read "argv0": no such variable
        while executing
    "file normalize $argv0"
        (procedure "wappInt-http-readable-unsafe" line 20)
        invoked from within
    "wappInt-http-readable-unsafe sock7fd4a78a0290"
        invoked from within
    "catch [list wappInt-http-readable-unsafe $chan] msg"
    </verbatim>
    
  2. login: "mjanssen"
  3. mimetype: "text/x-fossil-wiki"
  4. severity changed to: "Critical"
  5. status changed to: "Open"
  6. title changed to: "wapp cannot be loaded in a slave interp"
  7. type changed to: "Code_Defect"