Overview
| Artifact ID: | e814c8c11b9aef6eaa2048f694e2e6a3b691cba9 |
|---|---|
| Ticket: | cea0344a510723862ec46c632e4262042ea12c6e
Crash from ensemble handling |
| User & Date: | dkf on 2016-07-10 07:32:38 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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. - is_private changed to: "0"
- login: "dkf"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "dkf"
- subsystem changed to: "21. [namespace]"
- type changed to: "Bug"