Manifest of check-in
[c6c7d2f492]
- The DupEncodingIntRep() routine is broken. It fails to set the typePtr
field of the duplicated Tcl_Obj to indicate that the intrep is that of
the &encodingType. The impact must be that refcounting of Tcl_Encodings
are out of balance, at least in the (unusual?) case where "encoding" values
need duplication. I hesitate to actually commit this fix until I have a
test demonstrating the need for it, and a chance to see the impact on
actual encoding operations. The lifetime management of encodings has a
history of being tricky and raising controversy. More work required.
by
dgp on
2016-03-28 21:24:22.
B 938b541a95647f70b63920b4e6e4d630698dd03b
C The\sDupEncodingIntRep()\sroutine\sis\sbroken.\s\sIt\sfails\sto\sset\sthe\stypePtr\nfield\sof\sthe\sduplicated\sTcl_Obj\sto\sindicate\sthat\sthe\sintrep\sis\sthat\sof\nthe\s&encodingType.\s\sThe\simpact\smust\sbe\sthat\srefcounting\sof\sTcl_Encodings\nare\sout\sof\sbalance,\sat\sleast\sin\sthe\s(unusual?)\scase\swhere\s"encoding"\svalues\nneed\sduplication.\s\sI\shesitate\sto\sactually\scommit\sthis\sfix\suntil\sI\shave\sa\ntest\sdemonstrating\sthe\sneed\sfor\sit,\sand\sa\schance\sto\ssee\sthe\simpact\son\nactual\sencoding\soperations.\s\sThe\slifetime\smanagement\sof\sencodings\shas\sa\nhistory\sof\sbeing\stricky\sand\sraising\scontroversy.\s\sMore\swork\srequired.
D 2016-03-28T21:24:22.576
F generic/tcl.h 22aef77e0f551eff9498100c6192fee5c64c5d21
F generic/tclCompCmdsGR.c 82675e4b3816489056f559527fd1543de02d26cb
F generic/tclCompCmdsSZ.c c483661c0b5046b8a0a09c56a1f87b6953375590
F generic/tclCompExpr.c 49269b7a2e7df756c78a74728a6e06576a65886f
F generic/tclCompile.c df256774138b0a39bd1271358f62c9f46d364e38
F generic/tclCompile.h 40f428fd869fa46079efb76637eef3ade4354257
F generic/tclEncoding.c 66848876bf5e07b0ac340e1ca7e41cf66102a4a5
F generic/tclEnsemble.c 319f99b7677d9e01aa6a353d43e998399d907668
F generic/tclExecute.c 5173851d8c72e48d882d6c02bed55415cb03fdf6
F generic/tclHash.c 2d5dfc1d1cae9989f3a22edd42b54689e3ba042c
F generic/tclIOCmd.c e10c696600b77531b2c940aa70e9e48744983b42
F generic/tclStringObj.c 8c04569a47f2b8503a685e6d1c5bb55092885da0
F generic/tclStringRep.h bac7f4be8b89120a37838cdc883d669bd6b74098
F library/tzdata/America/Santiago 28fde6eea3d7741a359e32e776175758dabcc856
F library/tzdata/Antarctica/Palmer 9b633f1c15c9571794f15d8bdc9831a58491f7bb
F library/tzdata/Asia/Baku e9953a14e06318cd36a0fff0e964a7d4be706609
F library/tzdata/Asia/Barnaul 43e16efa2b342c6b2c11cefa66394224c12f7d6d
F library/tzdata/Europe/Kaliningrad 9e980855f3d7116265dd01c4822652f03317d07e
F library/tzdata/Europe/Vilnius 72f5f5d280530a67591fc0f88bf272e2975e173c
F library/tzdata/Europe/Volgograd 600c7af3ad2f3d8cddb6a31213ea3e1681437abf
F library/tzdata/Pacific/Easter 68b519faac566095a336774999eeddda7de5752c
F library/word.tcl fcc32ef5b8ed9abf06bffdac99bfb92ec038585d
F tests/compile.test 1e2c26cb62a36d9ca6fdeecf4a01711a84dcbc7e
F tests/lreplace.test c7962deb3220f45fe58c35471ec31cae81af7728
F tests/stringComp.test 7668418dd763c25432df801b2d3eef496a008871
F unix/Makefile.in 98c1ba9c797419a288de9806b7aee7334cc3659d
F unix/configure dbd1b9440b20043e71822953de23ed21297caaf6 x
F unix/tcl.m4 fc1f1e4734a3365220889c691f0c52eb11761f9a
F unix/tclUnixNotfy.c e7a4e80416f7134c50bed518823255d2eec40efb
F unix/tclUnixThrd.c 23c5842371716c014295a31fab9fa9324021f2bb
F win/configure 0e977f3078279015e0b1a9cae3a87a442dd4ae3f x
F win/tcl.m4 20dd4f1294204eedbf55641e41c941bb1e4618f9
F win/tclWinThrd.c 3769388b8b40be3216b8878a67810e88a7b3ec8d
P fb6e45132efb6bcffcec214d53f90a70bede1e07
R 3090491e127750a0fd1c4fb6eef1ef67
T *branch * dgp-dup-encoding-fix
T *sym-dgp-dup-encoding-fix *
T -sym-trunk *
U dgp
Z 19874fbf5e6978159a2299191cddaa62