Artifacts Associated With Ticket 994454ffffffffffffffffffffffffffffffffff
Ticket change [2a36fc86ef] (rid 118515) by vasiljevic on 2004-07-20 12:08:47:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
array set a "" array startsearch a s-1-a array anymore a s-1-a 0 info exists a(dummy) 0 array anymore a s-1-a couldn't find search "s-1-a" The fact that actually nothing was added nor removed from the array "a" makes me believe that we have a bug there. If this is a regular behaviour, then docs have to be updated accordingly. I doubt, however, that this is the intended behaviour.
- foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vasiljevic"
- subsystem initialized to: "07. Variables"
- title initialized to: "False [info exists] breaks [array anymore]"
- type initialized to: "Bug"
Ticket change [bc31295027] (rid 129627) by msofer on 2004-07-20 19:21:22:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=148712 Sounds buggy to me; passing on to donal, who is (I hope) more knowledgeable about these matters
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [51e5116872] (rid 126208) by dkf on 2004-08-03 16:32:36:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=79902 Culprit is TclVarTraceExists() in tclTrace.c (or rather it's equivalent in 8.4 which is located in tclVar.c), but I don't know whether what it is doing is the best choice; the comment indicates that this is a complex problem. I really have no idea how to progress with this.
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "46. Traces"
- username: "dkf"
Ticket change [a5def2eda5] (rid 110447) by dgp on 2004-08-03 21:29:53:
- icomment:
Logged In: YES user_id=80530 FWIW, I tried reproducing this in Tcl 7.6: % array set a "" % array startsearch a "a" isn't an array !?!
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1d7a81660d] (rid 90819) by dgp on 2004-08-03 21:33:26:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=80530 Replace [array set a ""] with [array set a {b c}] and the same "bug" is present in Tcl 7.6. I lack the courage to call this a bug, rather than a consequence of complex trace requirements I do not fully understand. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [f6a28be1fc] (rid 130328) by vasiljevic on 2004-08-03 22:08:31:
- icomment:
Logged In: YES user_id=95086 Tough thing, hm? To call it a "bug" or a "consequence of complex trace mechanism" is quite secondary. If the issue is that complex, that we can not (or will not) tackle it, then it should be documented in the man page as "weird_won't_fix_while_too_complex" side-effect. At least this would save people time and money.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [0603012e19] (rid 89144) by msofer on 2006-10-01 07:10:53:
- icomment:
Logged In: YES user_id=148712 From array.n: "Warning: if elements are added to or deleted from the array, then all searches are automatically terminated just as if array donesearch had been invoked; this will cause array nextelement operations to fail for those searches." Now: the problem is that [info exists] calls TclVarTraceExists, which sets the "create element" flag. Thus, an element is created, and the search is terminated. No choice about that: the hash table is changed, the cached search data is invalid. I tried setting that flag to 0: env-5.4 fails. The ubiquituous env-array ... Now, why does [info exists] call read traces? In order to process the 'env' array properly for sure; any other reason? In any case, changing that can break existing scripts.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "trace.patch" [b1110eaca1] (rid 98089) by msofer on 2006-10-01 07:20:50.
Ticket change [b9f4b36980] (rid 129233) by msofer on 2006-10-01 07:20:50:
- assignee changed to: "dkf"
- icomment:
File Added - 196041: trace.patch Logged In: YES user_id=148712 I attach a patch against HEAD that reduces the problem, without fixing it completely: the only case where a non-existing element will be created is when the array has traces. It does fix the scriptlet here, and passes the testsuite. This is a halfway hack; it is possible to go further (do it only for read traces), but it gets even uglier IMO. Reassigning for comments - let us go around once more.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [2ec753f184] (rid 92945) by dkf on 2007-02-24 20:56:34:
- icomment:
Logged In: YES user_id=79902 Originator: NO Perhaps the trigger of behaviour modification should be the existence of array searches? Mind you, I'd really much rather scratch [array startsearch] and friends; adding an [array foreach] would be better. But all that's not going to happen in 8.* anyway.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [f74c485287] (rid 91352) by dkf on 2008-03-22 02:28:32:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=79902 Originator: NO FWIW, I really can't care to fix this other than in the "get rid of the odd iterator" way.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- username: "dkf"
Ticket change [7416f6cac4] (rid 105142) by dgp on 2008-03-28 04:27:03:
- assignee changed to: "msofer"
Ticket change [fd4a6c2d1e] (rid 108388) by msofer on 2008-06-28 22:00:07:
- closedate changed to: "2008-06-28T15:00:07"
- closer changed to: "msofer"
- foundin changed to: "obsolete: 8.6a1"
- icomment:
Logged In: YES user_id=148712 Originator: NO HEAD does not seem to fail if we set createPart2 to 0! This needs a bit more study, testsuite may be incomplete. Determine if calling those read traces is still necessary (why wouldn't it?), and if so test directly. Determine if partial solution as in the patch is wanted.
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "msofer"
Ticket change [89c177f4d6] (rid 127280) by msofer on 2008-06-28 22:07:33:
- status changed to: "Open"