Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f250520904cea85b3e6c0bd6208d71e34065f1d226b2e754d2b1ac08550ecf69
Ticket: 0ee626dfb24ee37f6ef1e4955b114ff09ea350f3
lseq numeric overflow
User & Date: dkf on 2025-06-10 09:06:36
Changes

  1. icomment:
    Now when we build with `-ftrapv` (one of the configurations used on the trunk) we get an abort on line 762 of `tclArithSeries.c` during test `lseq-bug-0ee626dfb2-0`:
    
    > ```
    > 	    end = start + (step * (len - 1));
    > ```
    
    (Technically it's in code called from that line due to how trapping arithmetic is implemented on this platform, but that's the line at fault.)
    
    On the other hand, I can't see anywhere where `end` (or its trivial derivative, `dend`, computed on the next line) is used at all after that point in that function. Deleting the whole innermost branch containing that failing location makes the test pass.
    
  2. login: "dkf"
  3. mimetype: "text/x-markdown"