Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-19
22:53 • Closed ticket [3048170fff]: bgerror called when limit exceed proc calls vwait<... artifact: b4b1f20d03 user: jan.nijtmans
2026-10-17
09:30 • Ticket [3048170fff]: 4 changes artifact: 369e48e9f7 user: serhiy.storchaka
09:30 • Ticket [3027822fff] Failure of expr with interp limit and vwait status... artifact: 0254b353f9 user: serhiy.storchaka
09:22
Fix [3027822fff] and [3048170fff]: the time limit timer callback could re-run the limit check while ... closed check-in: b8ee0282eb user: serhiy.storchaka tags: time-limit-handler-reentry
2010-08-19
05:32 • Ticket [3048170fff] bgerror called when limit exceed proc calls vwait stat... artifact: da9ed341e6 user: johannes-kuhn
05:32 • Add attachment testInterpLimits2.tcl to ticket [3048170fffffffff|304817... artifact: 8a94b9483d user: johannes-kuhn
2010-08-18
22:32 • New ticket [3048170fff] bgerror called when limit exceed proc calls vwait. artifact: c7a9f5fb06 user: johannes-kuhn

bgerror called when limit exceed proc calls [vwait]

Closed / Duplicate3048170fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 13 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:42
  • b8ee0282ebFix [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: