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

History Of Ticket 219136ffffffffff

Artifacts Associated With Ticket 219136ffffffffff

  1. Ticket change [b05f044e7a] (rid 97968) by nobody on 2000-10-26 05:02:12:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 607 Bug
      Version: 8.1a2
      SubmitDate: '1998-05-21'
      LastModified: '2000-03-31'
      Severity: SER
      Status: Assigned
      Submitter: hershey
      ChangedBy: hobbs
      RelatedBugIDs: 1653
      OS: AIX
      FixedDate: '2000-01-11'
      ClosedDate: '2000-10-25'
      
      
      I've had a quick look at the thread support in Tcl8.1a2, 
      >and I'm posting some observations and problems.
      >My platform is AIX 4.1.5 on a 4-processor RS/6000, compiling
      >with the cc_r compiler from IBM's C-Set++ package.
      >
      >I have been using Richard Hipp and Mike Cruse's PtTcl so far
      >and I recognise a lot of its code (updated and restructured)
      >in Tcl8.1a2.  This includes some of the problems which I
      >have previously found and reported to the PtTcl authors,
      >together with fixes.
      >
      >I don't have time for a very detailed report right now,
      >but here's a quick summary.
      >
      >1) Running configure for AIX needs CC=cc_r.  libpthread doesn't exist - 
      >libpthreads does exist but doesn't need to be specified when you use cc_r. 
      >   
      >2) the URL in the README for porting info:
      >   http://www.sunlabs.com/cgi-bin/tcl/info.8.1
      >   doesn't work.  The same with info.8.0 does exist.
      >
      >3) Running "make test" I get a hang in io.test but didn't have time to
      >   track down why yet.
      >
      >4) There seems to be no attempt to use thread-safe versions of unsafe
      >   library routines, eg. to use localtime_r instead of localtime.
      >   This is odd because PtTcl did try to do this, though there is a lack
      >   of standardisation of the *_r variants between different unixes.
      >
      >5) There is a race bug inherited from PtTcl which can cause deadlock
      >   in "testthread send".  Doing a lot of sends in succession will
      >   trigger this reliably on my platform - eg.
      >
      >$ ./tcltest
      >% testthread create
      >537107728
      >% testthread send 537107728 {set a A}
      >A
      >% testthread send 537107728 {set a}
      >A
      >% time {testthread send 537107728 {set a}} 10000
      >
      >- hangs.  I'll send more details next week but the basic problem is that
      >if the sending thread signals the receiving thread between the call to
      >Tcl_ServiceEvent in Tcl_DoOneEvent and the later call to TclpConditionWait
      >from Tcl_WaitForEvent the message gets lost.
      >
      >6) Code from PtTcl in tclCkalloc.c which I have found in the past to cause 
      >   a false error report when running multithreaded with TCL_MEM_DEBUG and 
      >   using "memory validate on" exists unchanged, but I haven't had time to
      >   retest it.
      >
      >
      >Thanks a lot to the Sun (or Scriptics) team for their efforts so far.
      >
      >Colin.
      >--
      ><<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv<<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv
      >Colin Macleod, software engineer, Intrasoft SA, Athens, Greece
      >email (remove added spaces to use) :  macleod @ intrasoft . gr
      
      items 3, 5, and 6 are fixed in 8.1a3
      the remainder are still outstanding
      --
      issues 1 && 2 were resolved by 8.2.3.  4 remains open.
      -- 01/11/2000 hobbs 
      -- 01/11/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.1a2"
    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: "49. Threading"
    10. title initialized to:
      Tcl8.1a2 thread config problems (use reentrant calls)
      
    11. type initialized to: "Bug"
  2. Ticket change [da5d7d057e] (rid 107769) by kennykb on 2001-03-31 00:08:03:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=99768
      
      The one remaining open item in this bug is the thread-unsafe calls in tclUnixTime.c 
      and related modules.  This item is also reported as bug id # 232558.
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. username: "kennykb"
  3. Ticket change [1f99d86dba] (rid 91175) by kennykb on 2001-04-10 06:04:02:

    1. closedate changed to: "2001-04-09T23:04:02"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Changes to use localtime_r and gmtime_r, if available, have been committed to the HEAD.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"