Skip to content
Tcl Source Code History Of Ticket 219063
Login

History Of Ticket 219063

Artifacts Associated With Ticket 219063

  1. Ticket change [5f85856a49] (rid 115830) by nobody on 2000-10-26 01:10:04:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 4410 Bug
      Version: 8.3
      SubmitDate: '2000-03-20'
      LastModified: '2000-03-27'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: ericm
      OS: Other
      OSVersion: ibm370-amdahl-uts4
      FixedDate: '2000-03-27'
      FixedInVersion: 8.3.1
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      John Ellson
      
      
      
      ReproducibleScript:
      
      > There's a bug in the uts4 native compiler's handling of lseek that's
      
      > causing the tclsh "seek" command to get a "Bad System Call(coredump)"
      
      > signal.  This only fails when the compiler is in non-ansi mode, not 
      
      > with -Xa.
      
      
      
      More lseeks
      
      
      
      Patch:
      
      *** tcl8.3.0/unix/tclUnixPipe.c.O       Fri Mar  3 12:01:42 2000
      
      --- tcl8.3.0/unix/tclUnixPipe.c Fri Mar  3 12:01:56 2000
      
      ***************
      
      *** 147,153 ****
      
               */
      
        
      
              if (mode & O_WRONLY) {
      
      !           lseek(fd, 0, SEEK_END);
      
              }
      
        
      
              /*
      
      --- 147,153 ----
      
               */
      
        
      
              if (mode & O_WRONLY) {
      
      !           lseek(fd, (off_t) 0, SEEK_END);
      
              }
      
        
      
              /*
      
      ***************
      
      *** 198,204 ****
      
                  close(fd);
      
                  return NULL;
      
              }
      
      !       lseek(fd, 0, SEEK_SET);
      
            }
      
            return MakeFile(fd);
      
        }
      
      --- 198,204 ----
      
                  close(fd);
      
                  return NULL;
      
              }
      
      !       lseek(fd, (off_t) 0, SEEK_SET);
      
            }
      
            return MakeFile(fd);
      
        }
      
      *** tcl8.3.0/unix/tclLoadAout.c.O       Fri Mar  3 12:02:06 2000
      
      --- tcl8.3.0/unix/tclLoadAout.c Fri Mar  3 12:02:22 2000
      
      ***************
      
      *** 262,271 ****
      
        
      
        #if defined(__mips) || defined(mips)
      
          status = lseek (relocatedFd,
      
      !                 N_TXTOFF (relocatedHead.ex_f, relocatedHead.ex_o),
      
                        SEEK_SET);
      
        #else
      
      !   status = lseek (relocatedFd, N_TXTOFF (relocatedHead), SEEK_SET);
      
        #endif
      
          if (status < 0) {
      
            goto ioError;
      
      --- 262,271 ----
      
        
      
        #if defined(__mips) || defined(mips)
      
          status = lseek (relocatedFd,
      
      !                 (off_t) N_TXTOFF (relocatedHead.ex_f, relocatedHead.ex_o),
      
                        SEEK_SET);
      
        #else
      
      !   status = lseek (relocatedFd, (off_t) N_TXTOFF (relocatedHead), SEEK_SET);
      
        #endif
      
          if (status < 0) {
      
            goto ioError;
      
      
      
      PatchFiles:
      
      tclUnixPipe.c
      
          tclLoadAout.c
      
      
      
      
      
      Thanks for the patch.  I applied it to the sources in the CVS repository, and the fix will go out with Tcl/Tk 8.3.1.
      
      - eric
      
      -- 03/27/2000 ericm
      
      
      
    4. foundin initialized to: "obsolete: 8.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: "Additional missing lseek() casts"
    11. type initialized to: "Bug"
  2. Ticket change [073140f6ae] (rid 89344) by welch on 2000-10-26 08:34:07:

    1. closedate changed to: "2000-10-26T01:34:07"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [acc6945f80] (rid 101351) by dgp on 2001-04-20 02:08:15:

    1. closedate changed to: "2001-04-19T19:08:15"
    2. closer changed to: "dgp"
    3. subsystem changed to: "27. Channel Types"