Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 52d2b12220018183747f9d9645db82fd0a104f9d
Ticket: 219191ffffffffffffffffffffffffffffffffff
return in after script causes bogus bgerror
User & Date: nobody on 2000-10-26 05:03:20
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2577 Bug
    Version: 8.0.5
    SubmitDate: '1999-08-18'
    LastModified: '2000-04-03'
    Severity: SER
    Status: Assigned
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 3998 750
    OS: Solaris
    OSVersion: 2.5.1
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name: Tedd Hadley
    
    Comments:
    The reason for the error seems to be code in tclTimer.c AfterProc:
        
            result =  afterPtr->command);
            if (result != TCL_OK) {
                Tcl_AddErrorInfo(interp, "\n    (\"after\" script)");
                Tcl_BackgroundError(interp);
            }
        
        Tcl_GlobalEval can, of course, return a value other than TCL_OK without
        it being TCL_ERROR -- TCL_RETURN in this case.  I patched my version
        by changing the condition to if(result == TCL_ERROR).  This may or may
        not be the right fix...
    
    ReproducibleScript:
    after 0 {
           return
        }
        update
    
    ObservedBehavior:
    return in an after script causes a fake error.
    
    DesiredBehavior:
    No error expected
    
    
    
    wish4.2 didn't complain, but 8.0+ does. 
    -- 04/03/2000 hobbs
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "return in after script causes bogus bgerror"
  11. type changed to: "Bug"