Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [3048353fff] interp limit ... can dump core status still Closed wit... artifact: 2583386be2 user: serhiy.storchaka
2026-10-21
10:03 • Closed ticket [3048353fff]. artifact: 1d7baa69b4 user: serhiy.storchaka
2010-08-19
21:33 • Ticket [3048353fff]: 4 changes artifact: 85bfc0e3fe user: johannes-kuhn
12:41 • Ticket [3048353fff]: 4 changes artifact: 12ca1618b2 user: mistachkin
12:18 • Ticket [3048353fff]: 4 changes artifact: 641f5c2de6 user: bharder
05:02 • New ticket [3048353fff]. artifact: bb8dd7150c user: bharder

[interp limit ...] can dump core

Closed / Fixed3048353fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 41 days ago
Descriptionplain2010-08-19 05:02:34
I was exploring the [interp limit] command when I keyed:
% interp limit {} commands -command pust -value 3

and tclsh (8.6b1.2) dumped core.
bharderplain2010-08-19 12:18:19
tested (both failed) w/ Tcl 8.6b1.2 on NetBSD AMD64, and 8.5.3 on Debian Linux xen/i686
mistachkinplain2010-08-19 12:41:39
The SetScriptLimitCallback function in tclInterp.c is hitting:

Tcl_Panic("installing limit callback to the limited interpreter");
johannes-kuhnplain2010-08-19 21:33:30
I think such a call should return a proper error message.

Otherwise not a bug  as this should never work.
serhiy.storchakawiki2026-10-21 10:03:36

Fixed by [b3333814a0] (8.5.11) and [241cdd7be1] (8.6.0), ticket [3398794]: interp limit {} ... now fails with "limits on current interpreter inaccessible" instead of panicking.

serhiy.storchaka Ticket [3048353fff]: 3 changes [History diff]2026-10-22 17:19:30
Log in (anonymous is fine) to add a comment.