Artifacts Associated With Ticket ec06d0db3225afca
Ticket change [11d6da7687] (rid 193813) by pooryorick on 2021-04-20 10:25:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
In core-8-branch, commit [a3599d9b2596c181], a build with <code>--enable-symbols CFLAGS=-DPURIFY</code>, <code>make TESTFLAGS='-verbose t -file append.test -match "append-3.3 append-3.4"' valgrind</code> produces the following errors: <code><verbatim> ==1870667== Invalid read of size 4 ==1870667== at 0x4A01D9D: Tcl_AppendObjToObj (tclStringObj.c:1439) ==1870667== by 0x4A21BB1: StringAppendInVar (tclVar.c:1959) ==1870667== by 0x4A21E78: TclPtrSetVarIdx (tclVar.c:2086) ==1870667== by 0x497E59A: TEBCresume (tclExecute.c:3412) ==1870667== by 0x489921A: TclNRRunCallbacks (tclBasic.c:4857) ==1870667== by 0x4898ADC: Tcl_EvalObjv (tclBasic.c:4576) ==1870667== by 0x489B1AF: TclEvalEx (tclBasic.c:5728) ==1870667== by 0x49C5F82: Tcl_FSEvalFileEx (tclIOUtil.c:1782) ==1870667== by 0x49D4A97: Tcl_MainEx (tclMain.c:399) ==1870667== by 0x10A3B4: main (tclAppInit.c:91) ==1870667== Address 0x62c856c is 12 bytes inside a block of size 18 free'd ==1870667== at 0x4840D7B: realloc (vg_replace_malloc.c:834) ==1870667== by 0x488C4A2: TclpRealloc (tclAlloc.c:747) ==1870667== by 0x48A8AE2: Tcl_Realloc (tclCkalloc.c:1130) ==1870667== by 0x4A00714: GrowUnicodeBuffer (tclStringObj.c:224) ==1870667== by 0x4A07BEA: ExtendUnicodeRepWithString (tclStringObj.c:4156) ==1870667== by 0x4A07AE6: FillUnicodeRep (tclStringObj.c:4131) ==1870667== by 0x4A00DB0: Tcl_GetUnicodeFromObj (tclStringObj.c:657) ==1870667== by 0x4A00D6A: Tcl_GetUnicode (tclStringObj.c:620) ==1870667== by 0x4A01D98: Tcl_AppendObjToObj (tclStringObj.c:1432) ==1870667== by 0x4A21BB1: StringAppendInVar (tclVar.c:1959) ==1870667== by 0x4A21E78: TclPtrSetVarIdx (tclVar.c:2086) ==1870667== by 0x497E59A: TEBCresume (tclExecute.c:3412) ==1870667== by 0x489921A: TclNRRunCallbacks (tclBasic.c:4857) ==1870667== by 0x4898ADC: Tcl_EvalObjv (tclBasic.c:4576) ==1870667== by 0x489B1AF: TclEvalEx (tclBasic.c:5728) ==1870667== by 0x49C5F82: Tcl_FSEvalFileEx (tclIOUtil.c:1782) ==1870667== by 0x49D4A97: Tcl_MainEx (tclMain.c:399) ==1870667== by 0x10A3B4: main (tclAppInit.c:91) ==1870667== Block was alloc'd at ==1870667== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==1870667== by 0x488C464: TclpAlloc (tclAlloc.c:699) ==1870667== by 0x48A89FE: Tcl_Alloc (tclCkalloc.c:1054) ==1870667== by 0x4A07EC5: SetStringFromAny (tclStringObj.c:4284) ==1870667== by 0x4A01C8B: Tcl_AppendObjToObj (tclStringObj.c:1425) ==1870667== by 0x4A21BB1: StringAppendInVar (tclVar.c:1959) ==1870667== by 0x4A21E78: TclPtrSetVarIdx (tclVar.c:2086) ==1870667== by 0x497E59A: TEBCresume (tclExecute.c:3412) ==1870667== by 0x489921A: TclNRRunCallbacks (tclBasic.c:4857) ==1870667== by 0x4898ADC: Tcl_EvalObjv (tclBasic.c:4576) ==1870667== by 0x489B1AF: TclEvalEx (tclBasic.c:5728) ==1870667== by 0x49C5F82: Tcl_FSEvalFileEx (tclIOUtil.c:1782) ==1870667== by 0x49D4A97: Tcl_MainEx (tclMain.c:399) ==1870667== by 0x10A3B4: main (tclAppInit.c:91) </verbatim></code>
- is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to:
Tcl_AppendObjToObj and Tcl_GetUnicode lead to Valgrind "Invalid read of size".
- type initialized to: "Bug"
Ticket change [8a163e43ba] (rid 193819) by jan.nijtmans on 2021-04-20 11:24:00:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459324.9750106"
- closer changed to: "jan.nijtmans"
- icomment:
So, the cause was a regression in the fix for [7f1162a867]. Congratulations! You found it and fixed it. Well done!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [9986986bb1] (rid 193820) by pooryorick on 2021-04-20 11:34:45:
- closedate changed to: "2459324.98246585"
- closer changed to: "pooryorick"
- icomment: "Fixed in [c7100a073ba1e0b8]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
Ticket change [2e75d832a1] (rid 193825) by pooryorick on 2021-04-20 13:48:15:
- closedate changed to: "2459325.07518436"
- icomment:
More fixes in [ec5b3d21f9b29ee9] for related issues reported by Valgrind.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"