Artifacts Associated With Ticket e6d86e4a92faff0d
Ticket change [45c09d8621] (rid 155264) by nurdglaw on 2017-08-07 18:19:41:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized 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 initialized to: "8.6.1"
- is_private initialized to: "0"
- login: "nurdglaw"
- priority initialized to: "5 Medium"
- private_contact initialized to: "37337879866fb05885aad09f6a1ed0f41308a547"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "nurdglaw"
- subsystem initialized to: "21. [namespace]"
- title initialized to: "[namespace upvar] problem in TclOO constructor"
- type initialized to: "Bug"
Ticket change [8ddee429fc] (rid 155265) by sebres on 2017-08-08 12:32:30:
- closedate changed to: "2457974.0225717"
- closer changed to: "sebres"
- icomment:
Not reproduceable on current 8.6 / trunk.<br/> And upvar reference between the member variable to namespace array was also set correctly. <pre><code> % oo::define noddy method get_arr {} {array get m_arr} % ::n get_arr 1 one 2 two 3 three % set ::ns::arr(0) zero zero % ::n get_arr 0 zero 1 one 2 two 3 three </code></pre> Seems to be already fixed (I remember similar issue as regards variable resolver on some previous 8.6th version long time ago).<br/>Please test the newest 8.6 version. - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"