Skip to content
Tcl Source Code History Of Ticket 415131ffffffffff
Login

History Of Ticket 415131ffffffffff

Artifacts Associated With Ticket 415131ffffffffff

  1. Ticket change [ce43673d3c] (rid 96023) by mad_derf on 2001-04-10 12:38:11:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi all,
      
      I have been trying to use the tclsh8.1_r on a FreeBSD
      host (it was the only available precompiled package,
      but I also had the case with Tcl 8.0 and Tcl 8.3.2
      compiled).
      
      Ok, so here is the problem :
      
      % exec ls
      error reading output from command: interrupted system
      call
      %
      
      When I link tclsh with libc.so rather than libc_r.so
      (the multi-threaded c library), there is no problem,
      but if I link with the libc_r.so, I often have the
      above output (I say often, because it also sometimes
      work ...)
      
      I went into the code (and I had to say it was tough
      with GDB - seems to have problem with multi-threaded
      applications on FreeBSD), and it seems to be coming
      from the unix/tclUnixPipe.c file.
      
      In the PipeInputProc (), I replaced :
      
      ------------
      
          bytesRead = read(GetFd(psPtr->inFile), buf,
      (size_t) toRead);
          if (bytesRead > -1) {
              return bytesRead;
          }
          *errorCodePtr = errno;
          return -1;
      
      ------------
      
      with
      
      ------------
      
          do
      {
      bytesRead = read(GetFd(psPtr->inFile), buf, (size_t)
      toRead);
      } while ((bytesRead < 0) && (errno == EINTR));
      
          if (bytesRead < 0)
      {
      *errorCodePtr = errno;
      return (-1);
      }
          else
      {
      return (bytesRead);
      }
      -------------
      
      It seems that the SUN RPCs also use that trick (in
      clnt_udp.c). After applying that patch, it seems all
      right.
      
      Shall I commit somewhere for that patch to be
      integrated (if agreed) in next releases ?
      
      Hope this helps
      
      DERF
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mad_derf"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "multithreaded tclsh exec fails (FreeBSD)"
    11. type initialized to: "Bug"
  2. Ticket change [a8aced7a6e] (rid 99034) by hobbs on 2001-05-04 03:50:56:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Please create the necessary patch and add it to this report 
      or place it in the Patches area for other to test on other 
      systems.  Also make sure that this passes 'make test' on 
      your system (both with threaded and non-threaded builds).
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  3. Add attachment "patchfile" [3151260681] (rid 93408) by mad_derf on 2001-05-18 00:26:16.

  4. Ticket change [6c8bda58ab] (rid 128531) by mad_derf on 2001-05-18 00:26:16:

    1. icomment:
      Logged In: YES 
      user_id=193026
      
      I have created the patch file for that bug. It should be
      attached below (hmmm, not sure yet, it is the first time I
      do that).
      
      I ran the make test on several architectures (linux, solaris
      and FreeBSD), there was no differentces with my changes
      except for the multithreaded version on FreeBSD. It now
      works almost fine ... but I guess no one ever tested it
      multithreaded on FreeBSD :)
      
      So now, most of the test goes on with multithread. Almost no
      more "interrupted system call". Seems good no ?
      
      Ok, now here is the patch
      
      
    2. login: "mad_derf"
    3. mimetype: "text/plain"
    4. username: "mad_derf"
  5. Ticket change [38c2ba7333] (rid 112264) by mad_derf on 2001-05-18 00:26:17:

    1. icomment:
      
      
      File Added - 6390: patchfile
      
      
      
    2. login: "mad_derf"
    3. mimetype: "text/plain"
    4. username: "mad_derf"
  6. Ticket change [bb37cb5974] (rid 129448) by hobbs on 2001-08-07 07:26:43:

    1. assignee changed to: "hobbs"
  7. Ticket change [1b92843b11] (rid 123175) by dgp on 2001-10-04 23:20:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Jeff, here's a FreeBSD fix that should go into 8.3.4.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [5b9968d50c] (rid 118360) by andreas_kupries on 2001-10-04 23:32:54:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Note the possibly related items
      218076, 218120, 219251, and 219354.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  9. Ticket change [f29997b337] (rid 109580) by hobbs on 2001-10-18 07:57:11:

    1. closedate changed to: "2001-10-18T00:57:11"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Testing threaded and non-threaded on HP-UX 11, Sol-2.6 and 
      Linux (RH6.2 and 7.0) and it seems to pass all tests.  
      Applied to 8.3.4cvs and 8.4a4cvs.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"