Artifacts Associated With Ticket 217811ffffffffff
Ticket change [89838fe67e] (rid 127242) by nobody on 2000-10-26 00:43:59:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1312 Bug Version: 8.0p2 SubmitDate: '1999-02-26' LastModified: '1999-09-20' Severity: CRIT Status: Closed Submitter: welch ChangedBy: hobbs RelatedBugIDs: 1342 942 OS: Other OSVersion: SCO Unixware 7.0.1 Machine: NA FixedDate: '2000-10-25' ClosedDate: '1999-09-20' Name: Bill Snapper CustomShell: see patch above ReproducibleScript: My application uses Tcl for the configuration language as well as for policy scripting. The application links in the Tcl interpreter and adds some configuration commands. The application is multi-threaded though Tcl is not expected to be multi-threaded. Tcl is only invoked on a single thread. If an "exec" command is in the configuration script it will fail regardless of what is trying to be exec'd. I traced this to tclUnixPipe.c, the function "TclpCreateProcess". This function uses "vfork". On SCO (I'm using Unixware 7.0.1) the function "vfork" will not work if there is more than one LWP in the current process. I have built my own interpreter using "fork" instead of "vfork" and this worked. FYI, the problem is in the latest beta of Tcl that's supposed to be thread-safe as well. ObservedBehavior: exec does not work... DesiredBehavior: exec would work... ;-) Patch: *** tclUnixPipe.c.origWed Nov 5 16:58:52 1997 --- tclUnixPipe.cSun Feb 21 22:19:36 1999 *************** *** 355,361 **** --- 355,365 ---- } joinThisError = (errorFile == outputFile); + #if 0 pid = vfork(); + #else + pid = fork(); + #endif if (pid == 0) { fd = GetFd(errPipeOut); PatchFiles: tclUnixPipe.c - foundin initialized to: "obsolete: 8.0p2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
exec does not work from script processed by the Tcl Interpre
- type initialized to: "Bug"
Ticket change [467dd9e704] (rid 99530) by welch on 2000-10-26 07:49:19:
- closedate changed to: "2000-10-26T00:49:19"
- closer changed to: "welch"
- priority changed to: "1 Zero"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
Ticket change [1af4b219d3] (rid 123069) by dgp on 2001-04-13 23:09:40:
- closedate changed to: "2001-04-13T16:09:40"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"