Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2015-11-20
16:58
[3293874] Simplified fix (not backport). Also detect >LIST_MAX early. check-in: a2c1ec0241 user: dgp tags: core-8-5-branch
2011-06-01
03:40 • Closed ticket [3293874fff]: list length limit hits too soon plus 7 other cha... artifact: f0d9b22086 user: dgp
2011-05-12
03:41 • Ticket [3293874fff]: 4 changes artifact: 57ed724f9f user: dgp
2011-04-27
16:56 • New ticket [3293874fff]. artifact: 9ad158ee64 user: dgp

list length limit hits too soon

Closed / Fixed3293874fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2011-04-27 16:56:05
% set l [lrepeat 0x10000000 1]; concat
% lappend l 2; concat
max length of a Tcl list (536870909 elements) exceeded

A limit of 536870909 is stopping creation of a list
of 268435457 elements.  Tcl's imposed length limits
are made about twice as bad as needed because the
growth algorithm is incomplete.

Contrast with:

% set s [string repeat a 0x40000000]; concat
% append s b; concat
% string length $s
1073741825
dgpplain2011-05-12 03:41:23
Work toward patch on bug-3293874 branch
dgpplain2011-06-01 03:40:27
allow_comments - 1

fixed in trunk
Log in (anonymous is fine) to add a comment.