Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5ac8a1a47ab45eeefd4834942d383ce47502441faca535a3cf0cb5a8af138b23
Ticket: e2698b94b151aecf275b3dd2c5d605b89022684e
Tcl_FSChdir crashes after seteuid
User & Date: apnadkarni on 2026-04-16 06:30:55
Changes

  1. icomment:
    Ok, I was able to reproduce this behavior by hacking getcwd to return NULL after the seteuid() call and can confirm it results in the current directory being set to the empty string which then results in the recursive crash you saw.
    
    Examining for potential fixes...
    
    Thanks much for the detailed crash and short test case. Would not have been possible for me to tackle this otherwise.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"