bgerror called when limit exceed proc calls [vwait]
Closed / Duplicate3048170fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 14 days ago
Descriptionplain2010-08-18 22:32:45
Based on #3027822 I found an other Bug that don't affect 8.5. The slave calls bgerror with timelimit exceed on entering the event loop, but this can not handle it because of the exceeded limit. See also #2891362, the solution of this can cause this behavior.
Referenced by2
0254b353f9Ticket [3027822fff] Failure of [expr] with [interp limit] and [vwait] status still Open with 4 other changes ticket2026-10-17 09:30:42b8ee0282ebFix [3027822fff] and [3048170fff]: the time limit timer callback could re-run the limit check while the time limit handlers were already running (e.g. one entered vwait), corrupting the interpreter state. Skip the check while the time limit is marked exceeded. check-in2026-10-17 09:22:34
johannes-kuhnplain2010-08-19 05:32:45
File Added - 383893: testInterpLimits2.tcl
serhiy.storchakawiki2026-10-17 09:30:42
Still present in 8.6–9.1. Same cause as [3027822fff]: the child's time-limit timer fires inside the limit handler's [vwait] and raises a background error in the busy child, whose bgerror handler cannot run because the limit is exceeded.
Proposed fix in branch time-limit-handler-reentry (shared with [3027822fff]): TimeLimitCallback does nothing while the time-limit handlers are running. Test interp-34.15.
jan.nijtmanswiki2026-11-19 22:53:49
Dup of [3027822]
Log in (anonymous is fine) to add a comment.
Attachments:
- testInterpLimits2.tcl [download] added by johannes-kuhn on 2010-08-19 05:32:45. [details]