Overview
| Artifact ID: | 45c09d8621443f85670970d0477546cf8b8be421 |
|---|---|
| Ticket: | e6d86e4a92faff0dfc070ab48817da9e2b71092f
[namespace upvar] problem in TclOO constructor |
| User & Date: | nurdglaw on 2017-08-07 18:19:41 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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> - foundin changed to: "8.6.1"
- is_private changed to: "0"
- login: "nurdglaw"
- priority changed to: "5 Medium"
- private_contact changed to: "37337879866fb05885aad09f6a1ed0f41308a547"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "nurdglaw"
- subsystem changed to: "21. [namespace]"
- title changed to: "[namespace upvar] problem in TclOO constructor"
- type changed to: "Bug"