Tcl Source Code

View Ticket
Login
Ticket UUID: 219310
Title: tclhttpd fails to setuid on tcl8.2.2 with threads enabled
Type: Bug Created on: 2000-10-26 05:10:30
Submitter: nobody Assigned to: nobody
Subsystem: 49. Threading Severity:
Priority: 5 Medium Last modified: 2002-03-23 05:06:54
Status: Deleted Closed by: hobbs
Resolution: Invalid Closed on: 2002-03-22 22:06:54
Version: obsolete: 8.2.2
Description:
OriginalBugID: 3513 Bug
Version: 8.2.2
SubmitDate: '1999-11-08'
LastModified: '1999-12-07'
Severity: MED
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
OSVersion: 5.1
Machine: Standard Pentium 166 (Thinkpad560E)
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
miguel sofer

ReproducibleScript:
starting tclhttpd as root

ObservedBehavior:
tclsh8.2 starts three processes (or threads?) when compiled with --enable-threads.
tclhttpd seems to be able to setuid only the third process; fails to run properly

DesiredBehavior:
tclhttpd startable as root with threads enabled
User Comments:
hobbs added on 2002-03-23 05:06:54:
Logged In: YES 
user_id=72656

This sounds like it might be a tclhttpd bug, as it may need 
to call setuid earlier (before the threads are created), or 
setuid in each thread.