Skip to content
Tcl Source Code History Of Ticket 3530533fffffffff
Login

History Of Ticket 3530533fffffffff

Artifacts Associated With Ticket 3530533fffffffff

  1. Ticket change [d2b3c59b96] (rid 113574) by dgp on 2012-05-29 14:16:56:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      ---- Result was:
      file size only 24576
      ---- Result should have been (exact matching):
      ok
      ==== io-27.6 FAILED
      
      
      ---- Result was:
      file size only 12288
      ---- Result should have been (exact matching):
      ok
      ==== io-29.32 FAILED
      
      
    4. foundin initialized to: "obsolete: 8.6b2"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "25. Channel System"
    11. title initialized to: "io.test failures on IRIX64"
    12. type initialized to: "Bug"
  2. Ticket change [b28547874a] (rid 98348) by dgp on 2012-06-01 02:00:49:

    1. icomment:
      These test failures are entirely about the switch
      to a --enable-threads build by default.  They fail
      on thread-enabled Tcl on this platform.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [034fc5561f] (rid 119806) by dgp on 2012-06-01 19:51:18:

    1. icomment:
      Thread-enabled release 8.5.2 handles these tests just fine.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [f281eede29] (rid 109554) by dgp on 2012-06-01 22:40:34:

    1. icomment:
      On the core-8-5-branch, failures start with checkin
      ec37817fc47ea5584aeac174db469b5ba9f05484 2008-04-14 17:49:59 UTC
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [ef6d2e1419] (rid 108992) by dgp on 2012-06-01 22:57:25:

    1. icomment:
      On trunk, failures start with checkin
      b5d4ae05ac619c8fa9c572b80ee2b4729f42634a 2008-04-14 17:54:57 UTC
      which is the merge of the same changes.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [9106d424a8] (rid 120560) by dgp on 2012-06-01 23:01:36:

    1. icomment:
      Cross reference Bug 1942197
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [250f811313] (rid 131220) by dgp on 2012-06-05 20:05:06:

    1. assignee changed to: "kennykb"
    2. icomment:
      Comments left in failing tests.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "2"
    6. username: "dgp"
  8. Ticket change [92cadf6a45] (rid 120831) by jenglish on 2012-06-06 02:20:32:

    1. icomment:
      Best guess as to why this is causing a problem: IRIX has several variants of gettimeofday(), and also has variants of 'struct timeval'.  Which one gets picked depends on various #ifdefs that are or are not in effect when <sys/time.h> is #included.  This *might* be a stack smash, caused by a timeval/gettimeofday mismatch.  Checkin ec37817fc47e removed a local variable, which may have been masking the smash.
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  9. Ticket change [4e2a968b0b] (rid 127175) by jenglish on 2012-06-06 04:21:17:

    1. icomment:
      Probable cause of problem: configure.in checks if BSDgettimeofday() is present, and tclUnixPort.h says:
      
      -#   ifdef HAVE_BSDGETTIMEOFDAY
      -#define gettimeofday BSDgettimeofday
      -#   endif
      
      This is not right.  We don't want BSDgettimeofday() on IRIX, we want the regular old gettimeofday().
      
      On my machine (IRIX 6.5.<something>, circa 2002), in sys/time.h, it looks like if you compile with -D_BSD_COMPAT , sys/time.h #defines gettimeofday as BSDgettimeofday *and in addition* gets a different definition of 'struct timeval', but only on 64-bit builds.  Tcl's autogoo is doing the former, but not the latter, which would lead to an ABI mismatch, as suspected.
      
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  10. Ticket change [283c7e51ce] (rid 88662) by jenglish on 2012-06-06 04:25:00:

    1. icomment:
      
      
      File Added - 445309: no-bsdgettimeofday.patch
      
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  11. Add attachment "no-bsdgettimeofday.patch" [149f164775] (rid 124425) by jenglish on 2012-06-06 04:25:00.

  12. Ticket change [0bdab0fec6] (rid 114069) by jenglish on 2012-06-06 04:36:16:

    1. icomment:
      Archaeology: this was introduced in Tcl 7.4, relevant changes entry:
      
      | 5/5/95 (portability improvement) Changed to use BSDgettimeofday on
      | IRIX machines, to avoid compilation problems with the gettimeofday
      | declaration.
      
      This *might* have been necessary on IRIX 3 (released circa 1998).  To the best of my recollection, it was _not_ needed on IRIX 4.* (circa 1991), and it is *definitely* not necessary today.  This is safe to remove.
      
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  13. Ticket change [1b441d7c5a] (rid 123118) by dgp on 2012-06-07 20:31:35:

    1. icomment:
      Thanks for the patch.
      
      Applying it does not make that failing tests pass
      on the core-8-5-branch tip.  Instead, applying it
      makes the fail tests fail even back on 8.5.2, where
      they were passing.  Some strange instance of bug
      masking bug, I guess.  Continuing to investigate...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [ac7bb5c9d2] (rid 101301) by dgp on 2012-06-07 22:16:27:

    1. icomment:
      With the patch in place, the start of these test
      failures gets tracked to checkin
      eac3630f7292db37c55a 2005-11-27 02:33:48
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  15. Ticket change [de275d3755] (rid 114796) by dgp on 2012-06-08 00:13:35:

    1. icomment:
      The specific triggering cause is the loss of the
      
      #include <pthread.h>
      
      in tclUnixPort.h
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [6c164788fa] (rid 128439) by dgp on 2012-06-08 02:42:39:

    1. icomment:
      Adding to the top of tclUnixPipe.c
      
      #ifdef TCL_THREADS
      #  include <pthread.h>
      #endif
      
      is enough to fix these failing tests on core-8-5-branch.
      
      However, that change causes new test failures:
      
      ==== exec-9.1 commands returning errors FAILED
      ==== Contents of test case:
      
          set x [catch {exec gorp456} msg]
          list $x [string tolower $msg] [string tolower $errorCode]
      
      ---- Result was:
      1 {couldn't execute "gorp456": socket operation on non-socket} {posix enotsock {socket operation on non-socket}}
      ---- Result should have been (exact matching):
      1 {couldn't execute "gorp456": no such file or directory} {posix enoent {no such file or directory}}
      ==== exec-9.1 FAILED
      
      
      
      ==== exec-9.5 commands returning errors FAILED
      ==== Contents of test case:
      
          list [catch {exec gorp456 | [interpreter] echo a b c} msg] [string tolower $msg]
      
      ---- Result was:
      1 {couldn't execute "gorp456": socket operation on non-socket}
      ---- Result should have been (exact matching):
      1 {couldn't execute "gorp456": no such file or directory}
      ==== exec-9.5 FAILED
      
      
      
      ==== exec-14.4 -- switch FAILED
      ==== Contents of test case:
      
          list [catch {exec -- -gorp} msg] [string tolower $msg]
      
      ---- Result was:
      1 {couldn't execute "-gorp": socket operation on non-socket}
      ---- Result should have been (exact matching):
      1 {couldn't execute "-gorp": no such file or directory}
      ==== exec-14.4 FAILED
      
      ==== iocmd-11.4 I/O to command pipelines FAILED
      ==== Contents of test case:
      
          list [catch {open "| no_such_command_exists" rb} msg] $msg $::errorCode
      
      ---- Result was:
      1 {couldn't execute "no_such_command_exists": invalid argument} {POSIX EINVAL {invalid argument}}
      ---- Result should have been (exact matching):
      1 {couldn't execute "no_such_command_exists": no such file or directory} {POSIX ENOENT {no such file or directory}}
      ==== iocmd-11.4 FAILED
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [f5884f1ba0] (rid 130126) by dgp on 2012-06-08 03:31:01:

    1. icomment:
      putting the <pthread.h> include back in
      tclUnixPort.h avoids those problems, but
      it's not clear what aims we have at minimizing 
      the reach of that header file.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Ticket change [f3e25ee49c] (rid 129799) by ferrieux on 2012-06-08 03:58:17:

    1. icomment:
      In not so old days (AIX, Solaris), including <pthread.h> in front of all the rest was required for all modules of a multithreaded application (not only the ones calling into libpthread). So the minimization seems dangerous.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  19. Ticket change [d674e94c9a] (rid 123808) by dgp on 2012-06-08 18:57:05:

    1. icomment:
      In that case, it seems putting the #include back into
      tclUnixPort.h is the right thing to fix matters on IRIX.
      Only worry is that it was taken out for a reason, and I'll
      be regressing on that.
      
      Most likely reason I can imagine would be OSX, but I've
      just tested that and it works fine.  
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [c98d3aba31] (rid 122302) by dgp on 2012-06-08 20:27:41:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2012-06-08T13:27:41"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"