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

History Of Ticket 746378ffffffffff

Artifacts Associated With Ticket 746378ffffffffff

  1. Ticket change [67e9a05c49] (rid 102973) by mistachkin on 2003-05-30 22:35:08:

    1. assignee initialized to: "mistachkin"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This patch has been tested on Linux, FreeBSD, and 
      Solaris.
      
      This is a VERY experimental patch.  
      
      Please test this on your Unix platform of choice.
      
      
    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: "mistachkin"
    9. subsystem initialized to: "None"
    10. title initialized to: "experimental unix stack check patch..."
    11. type initialized to: "Patch"
  2. Ticket change [ed8087693b] (rid 103894) by mistachkin on 2003-05-31 05:35:08:

    1. icomment:
      
      
      File Added - 51776: unixStackCheck.zip
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  3. Add attachment "unixStackCheck.zip" [89c8111405] (rid 127284) by mistachkin on 2003-05-31 05:35:08.

  4. Ticket change [c34718e639] (rid 111632) by mistachkin on 2003-05-31 05:53:12:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      FreeBSD 4.8-STABLE: OK.
      SuSE 8.0 Linux: OK.
      Solaris 8: OK.
      RedHat 9.0 (?) Linux: OK.
      
      This patch will work when compiling with threads 
      enabled, however, it is not thread safe [yet].
      
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  5. Ticket change [427d626e05] (rid 116393) by mistachkin on 2003-05-31 06:34:05:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      OpenBSD 3.2: OK.
      RedHat 7.3 (it wasn't 9.0): OK.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  6. Ticket change [a77701d198] (rid 98800) by mistachkin on 2003-05-31 08:40:56:

    1. icomment:
      
      
      File Added - 51787: unixStackCheckV2.zip
      
      Logged In: YES 
      user_id=113501
      
      New thread-safe version of the previous patch, various 
      other clean up done.
      
      Please test.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  7. Add attachment "unixStackCheckV2.zip" [db94b579b3] (rid 107987) by mistachkin on 2003-05-31 08:40:56.

  8. Ticket change [d7c3b22455] (rid 107318) by mistachkin on 2003-06-01 11:24:49:

    1. icomment:
      
      
      File Added - 51837: unixStackCheckV3.zip
      
      Logged In: YES 
      user_id=113501
      
      Been working on this patch to fine tune it a bit more.
      
      The defines still need to be made more portable by 
      using configure.
      
      In my opinion, here is how it should work:
      
      On FreeBSD with threads enabled, the pthread library 
      function pthread_attr_get_np function should be used 
      to check the maximum stack size for each thread.  The 
      reason for this is that getrlimit for RLIMIT_STACK is 
      horribly broken when pthreads are used.
      
      On FreeBSD with threads disabled, the getrlimit function 
      should be used to check the maximum stack size.
      
      So far, on all other tested operating systems (Linux, 
      Solaris, OpenBSD) it looks like the getrlimit function 
      should be used, regardless of whether or not threads are 
      enabled.
      
      On Linux, there is a function that is could be a good 
      candidate for checking the maximum stack size, 
      pthread_getattr_np.  However, it does not seem to 
      report the correct stack size (at least on the version of 
      Linux I tested on), making it worse than useless.
      
      Please note that this patch is thread safe whether or not 
      it uses pthreads to get the stack size.
      
      I am unsure about NetBSD and other platforms not 
      mentioned here.
      
      It would also be nice if there was a way to explicitly 
      specify the stack checking behavior from configure, 
      such as --disable-stack-check (old way) and --enable-
      stack-check (new way), etc.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "mistachkin"
  9. Add attachment "unixStackCheckV3.zip" [c7046b5600] (rid 121866) by mistachkin on 2003-06-01 11:24:49.

  10. Ticket change [ffbceec5a2] (rid 108808) by mistachkin on 2003-06-03 03:34:27:

    1. icomment:
      
      
      File Added - 51966: unixStackCheckV4.zip
      
      Logged In: YES 
      user_id=113501
      
      This has now been tested with 8.4.x.
      Added casting corrections provided by jenglish.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  11. Add attachment "unixStackCheckV4.zip" [b6898c086f] (rid 125436) by mistachkin on 2003-06-03 03:34:27.

  12. Ticket change [5e56650afa] (rid 115619) by mistachkin on 2003-06-03 03:44:52:

    1. icomment:
      
      
      File Added - 51967: stack.tcl
      
      Logged In: YES 
      user_id=113501
      
      Attached a simple test script.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  13. Add attachment "stack.tcl" [50f6ba8397] (rid 126061) by mistachkin on 2003-06-03 03:44:52.

  14. Ticket change [cbb5c099cb] (rid 95567) by mistachkin on 2003-09-25 21:31:14:

    1. assignee changed to: "hobbs"
  15. Ticket change [cdf51f4d21] (rid 95975) by hobbs on 2003-10-13 06:35:11:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      This can be added to the HEAD after the following changes:
      It needs to not compile in by default - it currently does.
      The super debug printfs should be handled like the TRACE 
      functions in generic/tclExecute.c - with a macro at the top 
      that defaults to nothing.  That will clean up the code a lot.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  16. Ticket change [e56e9792b8] (rid 104119) by msofer on 2003-11-12 08:28:13:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Joe: please confirm or correct my remark in patch 450795 -
      namely, that this patch completely supercedes that one
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  17. Ticket change [96b1fee1ae] (rid 106370) by dkf on 2003-11-12 22:58:57:

    1. subsystem changed to: "38. Init - Library - Autoload"
  18. Ticket change [f214bdf7cf] (rid 109480) by mistachkin on 2003-11-13 04:59:43:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      This patch doesn't modify the configure script or any of the 
      test cases. After reviewing your patch, I would say we should 
      probably combine the approach taken by my patch with the 
      modularity of your patch (such as the 
      TclpInitCheckStackSpace function and compile-time detection 
      of whether the stack grows up or down, or do we prefer the 
      runtime detection?).
      
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  19. Ticket change [fb469e64e0] (rid 92028) by msofer on 2003-11-13 05:55:42:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Haven't looked at this in a while. I recall thinking that,
      as this function is called very often, it might be better to
      check the stack-growth direction at compile time to avoid
      branching at run time - premature optimisation?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  20. Ticket change [71c6f76f4e] (rid 100741) by dkf on 2004-06-22 21:52:42:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Try this version which:
       a) Applies to the current HEAD :^)
       b) Refactors the code to reduce the amount of #ifdef
      hackery and conditional code; it is easier for one person to
      maintain both branches of the code now...
      
      (Appears to work non-threaded on Linux...)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dkf"
  21. Ticket change [f68293769b] (rid 130313) by dkf on 2004-06-22 21:52:44:

    1. icomment:
      
      
      File Added - 91518: unixStackCheck.v5.diff
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  22. Ticket change [ad19547bac] (rid 101414) by dkf on 2004-06-23 07:28:15:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2004-06-23T00:28:15"
    3. closer changed to: "dkf"
    4. icomment:
      
      
      File Deleted - 91518: 
      
      
      
      File Added - 91568: unixStackCheck.v6.diff
      
      Logged In: YES 
      user_id=79902
      
      Here's a version that I applied to the HEAD and which
      appears clean and effective under Linux. Further development
      now belongs to the bug tracker!
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"
    9. username: "dkf"
  23. Add attachment "unixStackCheck.v6.diff" [508b486ad9] (rid 125994) by dkf on 2004-06-23 07:28:15.