Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e814c8c11b9aef6eaa2048f694e2e6a3b691cba9
Ticket: cea0344a510723862ec46c632e4262042ea12c6e
Crash from ensemble handling
User & Date: dkf on 2016-07-10 07:32:38
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    I was working on sorting out [3606121], and hit a critical bug (while looking at test <tt>namespace-17.5</tt>; I will apply a workaround for that as the failing path isn't supposed to be taken in that test either). The following code will crash:
    <verbatim>
        namespace eval ::test_ns_1 {
            catch {namespace delete test_ns_2}
            namespace eval test_ns_3 {
                variable ::test_ns_1::test_ns_2::x 2222
            }
        }
    </verbatim>
    When debugging, it looks like the crash is due to the number of arguments being recorded wrongly in the stack frame; the actual crash comes out of <tt>TclLogCommandInfo</tt>, but is because the frame's <tt>argv</tt> has four valid elements in it, but <tt>argc</tt> is 5. It looks like <tt>TclFetchEnsembleRoot</tt> (called from <tt>NRNamespaceEvalCmd</tt>) is doing something wrong, which means there's a problem, and that code isn't something I've worked with.
    
  5. is_private changed to: "0"
  6. login: "dkf"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Critical"
  10. status changed to: "Open"
  11. submitter changed to: "dkf"
  12. subsystem changed to: "21. [namespace]"
  13. type changed to: "Bug"