|
2026-09-15
| ||
| 20:13 | (cherry-pick) Additional fix for [282495fbbd]: valgrind reports uninitialized value problem in oo-15... check-in: 7d4a89a935 user: jan.nijtmans tags: core-9-0-branch | |
| 20:13 | (cherry-pick) Additional fix for [282495fbbd]: valgrind reports uninitialized value problem in oo-15... check-in: 69fa571890 user: jan.nijtmans tags: core-8-6-branch | |
| 16:57 | • Closed ticket [282495fbbd]: valgrind reports uninitialized value problem in oo-1... artifact: 96076fdca0 user: dgp | |
| 16:45 | merge 9.0 (fix for [282495fbbd]) check-in: 2262d64ec7 user: sebres tags: trunk, main | |
| 16:44 | merge 8.6 (fix for [282495fbbd]) check-in: e9077cd2d0 user: sebres tags: core-9-0-branch | |
| 16:42 | • Ticket [282495fbbd] valgrind reports uninitialized value problem in oo-15.10... artifact: 76755d963e user: sebres | |
| 16:41 | init cmdPtr as NULL in TclCreateProc (closes [282495fbbd], somewhere in OO it may remain uninitializ... check-in: 8b08cc9d50 user: sebres tags: core-8-6-branch | |
| 16:28 | • Ticket [282495fbbd] valgrind reports uninitialized value problem in oo-15.10... artifact: 66ed076ddf user: sebres | |
| 15:31 | • Ticket [282495fbbd]: 3 changes artifact: 88a19c1660 user: jan.nijtmans | |
| 15:29 | Fix [282495fbbd]: valgrind reports uninitialized value problem in oo-15.10 check-in: 1c290ad465 user: jan.nijtmans tags: trunk, main | |
|
2026-09-14
| ||
| 18:29 | • Ticket [282495fbbd] valgrind reports uninitialized value problem in oo-15.10... artifact: 7d991f700d user: dgp | |
|
2026-09-11
| ||
| 19:39 | • New ticket [282495fbbd]. artifact: 3d475f4bf6 user: dgp | |
valgrind reports uninitialized value problem in oo-15.10
Closed / Fixed282495fbbdd5049b7f2dab91a40ab84717de67c1Created 82 days agoUpdated 78 days ago
Descriptionplain2026-09-11 19:39:30
Running tests that match: oo-15.10 ... oo.test ---- oo-15.10 start ==1077066== Conditional jump or move depends on uninitialised value(s) ==1077066== at 0x29701F: TclProcCleanupProc (tclProc.c:2190) ==1077066== by 0x296E82: TclProcDeleteProc (tclProc.c:2127) ==1077066== by 0x31532D: DeleteProcedureMethodRecord (tclOOMethod.c:1456) ==1077066== by 0x31539C: DeleteProcedureMethod (tclOOMethod.c:1470) ==1077066== by 0x3134E6: TclOODelMethodRef (tclOOMethod.c:382) ==1077066== by 0x2F8F1F: ObjectNamespaceDeleted (tclOO.c:1514) ==1077066== by 0x274541: Tcl_DeleteNamespace (tclNamesp.c:1042) ==1077066== by 0x2F7D0D: ObjectRenamedTrace (tclOO.c:1107) ==1077066== by 0x167233: CallCommandTraces (tclBasic.c:3960) ==1077066== by 0x166E33: Tcl_DeleteCommandFromToken (tclBasic.c:3760) ==1077066== by 0x2F7F67: TclOODeleteDescendants (tclOO.c:1194) ==1077066== by 0x2F8B73: ObjectNamespaceDeleted (tclOO.c:1423) ==1077066== by 0x274541: Tcl_DeleteNamespace (tclNamesp.c:1042) ==1077066== by 0x2F7D0D: ObjectRenamedTrace (tclOO.c:1107) ==1077066== by 0x167233: CallCommandTraces (tclBasic.c:3960) ==1077066== by 0x166E33: Tcl_DeleteCommandFromToken (tclBasic.c:3760) ==1077066== by 0x2FEBA5: TclOO_Object_Destroy (tclOOBasic.c:755) ==1077066== by 0x302608: TclOOInvokeContext (tclOOCall.c:383) ==1077066== by 0x2FC962: TclOOObjectCmdCore (tclOO.c:3072) ==1077066== by 0x2FC0C6: PublicNRObjectCmd (tclOO.c:2829) ==1077066== by 0x16825B: Dispatch (tclBasic.c:4702) ==1077066== by 0x1682C3: TclNRRunCallbacks (tclBasic.c:4718) ==1077066== by 0x167B16: Tcl_EvalObjv (tclBasic.c:4457) ==1077066== by 0x16A44E: TclEvalEx (tclBasic.c:5545) ==1077066== ++++ oo-15.10 PASSED
Referenced by6
7d4a89a935(cherry-pick) Additional fix for [282495fbbd]: valgrind reports uninitialized value problem in oo-15.10 check-in2026-09-15 20:13:5869fa571890(cherry-pick) Additional fix for [282495fbbd]: valgrind reports uninitialized value problem in oo-15.10 check-in2026-09-15 20:13:252262d64ec7merge 9.0 (fix for [282495fbbd]) check-in2026-09-15 16:45:49e9077cd2d0merge 8.6 (fix for [282495fbbd]) check-in2026-09-15 16:44:498b08cc9d50init cmdPtr as NULL in TclCreateProc (closes [282495fbbd], somewhere in OO it may remain uninitialized) check-in2026-09-15 16:41:471c290ad465Fix [282495fbbd]: valgrind reports uninitialized value problem in oo-15.10 check-in2026-09-15 15:29:53
dgpplain2026-09-14 18:29:22
The faulty jump is reported as happening on line 2190 of tclProc.c, which is new code introduced by checkin https://core.tcl-lang.org/tcl/info/498cc0652caaaed2 This might mean the line is faulty, or it might mean that it is exposing some long hidden fault already present.
jan.nijtmanswiki2026-09-15 15:31:57
Does [this] help?
Even when it doesn't help, it's still a mistake to check for the PROC_CMD_OWNED flag after checking procPtr->cmdPtr, therefore I committed this change anyway ;-)
sebreswiki2026-09-15 16:28:12
No.
- it'd not help at all (the order does not matter)
- PROC_CMD_OWNED flag only means that it is lambda, and proc owns cmd (so for instance it shall decrement its refcount, in proc-cleanup)... check of cmdPtr is NULL is just additional protection, not related to PROC_CMD_OWNED.
sebreswiki2026-09-15 16:42:52
I think [8b08cc9d50a1ab88] may help there... Merging to 9.0/trunk now.
dgpplain2026-09-15 16:57:28
The first patch did silence the report from valgrind. After later commits, the report remains silent.
Log in (anonymous is fine) to add a comment.