Return value set by Tcl_SetResult affects all following proc
Closed / Invalid218079ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:56
OriginalBugID: 1660 Bug
Version: 8.0.3
SubmitDate: '1999-03-29'
LastModified: '1999-09-13'
Severity: SER
Status: Closed
Submitter: pat
ChangedBy: hobbs
OS: Solaris
OSVersion: 6.5
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-09-13'
Name:
Jim A. Galbraith
ReproducibleScript:
I have written a 'C' procedure that calls Tcl_SetResult():
Tcl_SetResult(interp, "0", TCL_VOLATILE);
ObservedBehavior:
After calling this procedure, all procedure calls appear to have my 0
prepended
to the real return string. For example, if I call open after calling my
procedure, the file handle = "0file4" (no space between 0 & file4. If I
call exec, the PID returned = "0 1234" (space between the 0 and 1234).
DesiredBehavior:
I read that the return string is supposed to be reset prior to calling
each procedure. It appears that this is not happening.
This looks likely to be a programming error (very likely with the
mentioned use of the func). We would need to see more code to
classify this as anything else.
-- 09/13/1999 hobbs
welch Closed ticket [218079ffff].
[History diff]2000-10-26 08:14:45
dgp Ticket [218079ffff]: 4 changes
[History diff]2001-04-16 22:53:08
Log in (anonymous is fine) to add a comment.