Skip to content
Tcl Source Code History Of Ticket e6d86e4a92faff0d
Login

History Of Ticket e6d86e4a92faff0d

Artifacts Associated With Ticket e6d86e4a92faff0d

  1. Ticket change [45c09d8621] (rid 155264) by nurdglaw on 2017-08-07 18:19:41:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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>
      
    5. foundin initialized to: "8.6.1"
    6. is_private initialized to: "0"
    7. login: "nurdglaw"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "37337879866fb05885aad09f6a1ed0f41308a547"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "nurdglaw"
    14. subsystem initialized to: "21. [namespace]"
    15. title initialized to: "[namespace upvar] problem in TclOO constructor"
    16. type initialized to: "Bug"
  2. Ticket change [8ddee429fc] (rid 155265) by sebres on 2017-08-08 12:32:30:

    1. closedate changed to: "2457974.0225717"
    2. closer changed to: "sebres"
    3. 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.
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"