Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: df71d0a982058983fef39e78218edfd104c963bcee617de33e9b539fa189dcd6
Ticket: d90fee06d04a0d52397dfba79e263d932f685707
Uncompiled lassign fails on large lists with memory allocation failure
User & Date: apnadkarni on 2023-04-11 16:18:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The following works
    
    ```
    % set l [testbigdata list 0x100000001]; llength $l
    4294967297
    % lassign $l x ; set x
    0
    ```
    
    The following fails with a memory allocation failure.
    
    ```
    % set lassign lassign
    lassign
    % llength $l
    4294967297
    % $lassign $l x; set x
    ```
    
    The difference is because the compiled version makes use of the ListSpan internal representation while Tcl_LassignObjCmd does not.
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    Uncompiled lassign fails on large lists with memory allocation failure
    
  15. type changed to: "Bug"