Overview
| Artifact ID: | 376b0713df8026aa1597f1e6f9669e7f7bcdef48 |
|---|---|
| Ticket: | 1458266fffffffffffffffffffffffffffffffff
cmd execution traces interfere with step execution traces |
| User & Date: | eriklns on 2006-04-02 18:01:24 |
Changes
- icomment:
Logged In: YES user_id=113903 OK, then how about me supplying a fully documented test script that you can use as a basis for the test suite? I took the liberty to do that (see uploaded file "interferenceTest.tcl"). The reason that I am particularly careful here, is because we're actually in one of the corner cases that I mentioned in the previous post: the observed bug emerges only when two step traces are registered, both using the same trace handler. The docs are not explicit about that case. Therefore, the test script does a differential diagnostic, i.e. comparing two runs, but not saying anything about the correct behaviour of any of the two runs. It does not test for a predefined "correct" result. If you insist on checking for a "correct" result of a single run, then indeed more reflection is needed. In order to keep the progress with this issue, I post the differential approach and await how useful that is to you. The comments to the test script explain in detail what should happen and what not, and why. You may use the test for its explanation alone, or use it as a basis for other tests; whatever you like. As for the supplied patch: I'm quite sure that I found the location which is responsible for the interference. That in itself is one value of the patch. However, this is the first time that I provided a patch at the C level. I may not have enough overview of the Tcl C library to know about possibly related areas that should change as well (byte compiled scripts are an example, because it is a sort of subsystem that I do not grasp very well). I've used a new libtcl8.4.so (that has my patch applied) in quite some tests. Among these are some that exercise traces. These tests all behaved as expected. Nevertheless, I'm curious whether the patch has any side effects in areas that were overlooked. Regards, Erik Leunissen
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"