Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 45c09d8621443f85670970d0477546cf8b8be421
Ticket: e6d86e4a92faff0dfc070ab48817da9e2b71092f
[namespace upvar] problem in TclOO constructor
User & Date: nurdglaw on 2017-08-07 18:19:41
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The <a href="https://sourceforge.net/projects/selenium-tcl">selenium-tcl</a> package uses [namespace upvar] in the ErrorHandler constructor to propagate error messages and the like to individual objects. Using ActiveTcl 8.6.1, this works fine on Windows, but causes a SegFault on Ubuntu Linux 12.04.
    
    The code below illustrates the problem:
    
    <verbatim>
    namespace eval ns {
        array set arr {
    	1 one
    	2 two
    	3 three
        }
    }
    
    oo::class create noddy {
        variable m_arr
    
        constructor {} {
    	namespace upvar ::ns arr [self namespace]::m_arr
        }
    }
    
    noddy create n
    </verbatim>
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "nurdglaw"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "37337879866fb05885aad09f6a1ed0f41308a547"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "nurdglaw"
  14. subsystem changed to: "21. [namespace]"
  15. title changed to: "[namespace upvar] problem in TclOO constructor"
  16. type changed to: "Bug"