Overview
| Comment: | This patch fixes the failing case reported, but is really a work around of a considerably deeper bug. When GetEndOffsetFromObj() needs to do index arithmetic calculations with bignum arguments, rather than code all of that directly, it tries to call on the routine we already have for that, Tcl_ExprObj(). Problem is that apparently a call to Tcl_ExprObj() in certain scenarios leads to nested (?) calls of TclNRExecuteByteCode() and somehow this mangles the expectations of the TclStack(Alloc|Free) routines in their abuse of the execution stack space. It's very complicated and I haven't figured it out yet. We can accept this patch as a fix for the reported bug. But if so, we should open a new bug that Tcl_ExprObj() has undocumented conditions on when it can be safely called. That's bad for a public routine. |
|---|---|
| Timelines: | family | ancestors | descendants | both | bug-b5777d3d32 |
| Files: | files | file ages | folders |
| SHA3-256: |
b48d59721d08e894ee503d9607d4b3c6 |
| User & Date: | dgp on 2020-09-01 22:26:32.076 |
| Other Links: | branch diff | manifest | tags |
Context
|
2020-09-04
| ||
| 06:28 | More testcases from dgp-nested-execution branch check-in: e3bed2ac80 user: jan.nijtmans tags: bug-b5777d3d32 | |
|
2020-09-01
| ||
| 22:26 | This patch fixes the failing case reported, but is really a work around of a considerably deeper bug... check-in: b48d59721d user: dgp tags: bug-b5777d3d32 | |
|
2020-08-25
| ||
| 16:09 | Add test-case util-9.59, which demonstrates bug [b5777d3d32] check-in: f1fba2e12f user: jan.nijtmans tags: bug-b5777d3d32 | |
Changes
Modified generic/tclUtil.c
from [615ac4325b]
to [0c04271efe].
[diff]