Array search does not terminate on element unset
Closed / Fixed46a24106507476a2ef2b791958bea01d4175f125Created 10 years agoUpdated 9 years ago
Descriptionwiki2016-12-24 23:32:31
Test var-13.2 fails and var-13.3 SIGSEGVs in [33fc7a3358], branch array-search-unset. The problem was introduced by [af5c35971a].
INST_UNSET_ARRAY does not check if an array has an active search, and it will happily delete array elements without triggering DeleteSearches().
Referenced by3
244c0b893d[46a2410650] compiled [unset] was bypassing cleanup of active array search. Overdue thanks to Andy Goth for tests and report. check-in2018-04-22 13:22:2063059c3e09Update tests array-7.16 and array-7.17 and delete test array-7.18 now that bug [46a2410650] is fixed check-in2016-12-25 00:11:119642a1b91eBug [46a2410650]: Create macro TclIsVarArraySearched to check if an array variable has an active search, and modify INST_UNSET_ARRAY to fall back on the slow unset method for array elements within an array being searched. The slow unset method involves a call to DeleteSearches() which stops all active searches. check-in2016-12-24 23:58:29
andy (claiming to be Andy Goth)html2016-12-25 00:02:46
Proposed fix committed to branch array-search-unset, passes all test cases. Please review and integrate to trunk if good.
dgpplain2018-04-22 13:23:35
Fix merged to 8.6
Log in (anonymous is fine) to add a comment.