Skip to content
Tcl Source Code History Of Ticket 218076
Login

History Of Ticket 218076

Artifacts Associated With Ticket 218076

  1. Ticket change [15e57686be] (rid 124640) by nobody on 2000-10-26 00:52:54:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1631 Bug
      Version: 8.0.3
      SubmitDate: '1999-03-25'
      LastModified: '2000-10-25'
      Severity: SER
      Status: Closed
      Submitter: pat
      OS: HP-UX
      OSVersion: 10.2
      Machine: Other
      FixedDate: '2000-10-25'
      FixedInVersion: NA
      ClosedDate: '1999-04-19'
      
      
      Name:
      
      Willi Lohmann
      
      
      CVS:
      
      tclIO.c 1.244 96/11/12 14:47:28
      
      
      Extensions:
      
      none
      
      
      CustomShell:
      
      Have redefined the following to add a couple of args (they just call the real version after checking for the additional args - no actual new functionality):
      
      
      ReproducibleScript:
      
          Reproducing this is hit or miss.  I have applications
      
          that seemingly do the same thing, but one works and one
      
          fails.  Its extremely dependent on the user's os environment
      
          and how many interrupts are occuring.  Sorry (but I have
      
          the fix).
      
      
      ObservedBehavior:
      
          Within GetInput's while (1) loop, one of the possible read errno values
      
          is EINTR.  This means some system interrupt interrupted the io
      
          operation.
      
          Nothing bad happened and the io needs to be continued.  But its
      
          currently
      
          being treated as a hard io error.
      
      
          When running with a lot of interrupts (like itimers to do ui updates)
      
          this
      
          happens all the time on some os's (like hpux) when a tcl exec command is
      
          executed and return data is being read.  I have heard from someone who
      
          has
      
          seen this on solaris also.
      
      
      DesiredBehavior:
      
          I want to see exec not return a "interrupted system call" error.
      
      
      Patch:
      
      Simply changing this line in GetInput():
      
      
      if ((result == EWOULDBLOCK) || (result == EAGAIN)) {
      
      
      to
      
      
      if ((result == EWOULDBLOCK) || (result == EAGAIN) || (result == EINTR)) {
      
      
      seems to fix the problem.
      
      
      PatchFiles:
      
          tckIO.c
      
      
      
      
      4/19/99 - redman - Not a bug. The code should specifically NOT check for EINTR to allow programs to handle and deal with it correctly.
      
      
      
    4. foundin initialized to: "obsolete: 8.0.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "GetInput() doesn't allow for result=EINTR"
    11. type initialized to: "Bug"
  2. Ticket change [bf6b3a0f4d] (rid 102250) by welch on 2000-10-26 08:14:45:

    1. closedate changed to: "2000-10-26T01:14:45"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [6c2fbe0d84] (rid 128456) by bluemoon on 2000-11-29 04:13:53:

    1. icomment:
      Umm... there isn't any way that a program can restart the
      underlying read() call within the Tcl IO routines. Even if
      an interrupt handler catches the interrupt, what can it do
      to cause Tcl to not report an error and restart the read?
      
      
    2. login: "bluemoon"
    3. mimetype: "text/plain"
    4. username: "bluemoon"
  4. Ticket change [7575936aa3] (rid 105391) by dgp on 2001-04-16 22:53:51:

    1. closedate changed to: "2001-04-16T15:53:51"
    2. closer changed to: "dgp"
    3. subsystem changed to: "25. Channel System"