Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 42d54c73b8bcf2485b4fba042392413fd8addab82927e82dafc5b84fef6afd74
Ticket: e2ff7b517903296ad13018f4b9962576b9a7ad2f
Crash when taking minimum of very large integers.
User & Date: SVIDevelopment on 2026-04-17 09:21:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    When running the script below via tclsh, we are experiencing a segmentation fault:
    
    -----------------------------------------------------------------------
    
    set a [string repeat 9 25]
    set b [string repeat 5 25]
    
    puts "a = $a"
    puts "b = $b"
    set c [expr {min(-$a,-$b)}]; # This crashes
    puts "c = $c"; # Not reached
    
    -----------------------------------------------------------------------
    
    Tested on Ubuntu 24.04, with an tclsh compiled from source with gcc. Tcl is configured with --with-system-libtommath=no.
    
  5. foundin changed to: "9.0.2"
  6. is_private changed to: "0"
  7. login: "SVIDevelopment"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "54be8d2ecf914ca591bab8796ebb920a82b33bb2"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "SVIDevelopment"
  14. subsystem changed to: "48. Number Handling"
  15. title changed to: "Crash when taking minimum of very large integers."
  16. type changed to: "Bug"