Artifacts Associated With Ticket 746378ffffffffff
Ticket change [67e9a05c49] (rid 102973) by mistachkin on 2003-05-30 22:35:08:
- assignee initialized to: "mistachkin"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "None"
- title initialized to: "experimental unix stack check patch..."
- type initialized to: "Patch"
Ticket change [ed8087693b] (rid 103894) by mistachkin on 2003-05-31 05:35:08:
- icomment:
File Added - 51776: unixStackCheck.zip
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Add attachment "unixStackCheck.zip" [89c8111405] (rid 127284) by mistachkin on 2003-05-31 05:35:08.
Ticket change [c34718e639] (rid 111632) by mistachkin on 2003-05-31 05:53:12:
- 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].
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [427d626e05] (rid 116393) by mistachkin on 2003-05-31 06:34:05:
- icomment:
Logged In: YES user_id=113501 OpenBSD 3.2: OK. RedHat 7.3 (it wasn't 9.0): OK.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [a77701d198] (rid 98800) by mistachkin on 2003-05-31 08:40:56:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Add attachment "unixStackCheckV2.zip" [db94b579b3] (rid 107987) by mistachkin on 2003-05-31 08:40:56.
Ticket change [d7c3b22455] (rid 107318) by mistachkin on 2003-06-01 11:24:49:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "mistachkin"
- icomment:
Add attachment "unixStackCheckV3.zip" [c7046b5600] (rid 121866) by mistachkin on 2003-06-01 11:24:49.
Ticket change [ffbceec5a2] (rid 108808) by mistachkin on 2003-06-03 03:34:27:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Add attachment "unixStackCheckV4.zip" [b6898c086f] (rid 125436) by mistachkin on 2003-06-03 03:34:27.
Ticket change [5e56650afa] (rid 115619) by mistachkin on 2003-06-03 03:44:52:
- icomment:
File Added - 51967: stack.tcl Logged In: YES user_id=113501 Attached a simple test script.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Add attachment "stack.tcl" [50f6ba8397] (rid 126061) by mistachkin on 2003-06-03 03:44:52.
Ticket change [cbb5c099cb] (rid 95567) by mistachkin on 2003-09-25 21:31:14:
- assignee changed to: "hobbs"
Ticket change [cdf51f4d21] (rid 95975) by hobbs on 2003-10-13 06:35:11:
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [e56e9792b8] (rid 104119) by msofer on 2003-11-12 08:28:13:
- 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
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [96b1fee1ae] (rid 106370) by dkf on 2003-11-12 22:58:57:
- subsystem changed to: "38. Init - Library - Autoload"
Ticket change [f214bdf7cf] (rid 109480) by mistachkin on 2003-11-13 04:59:43:
- 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?).
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [fb469e64e0] (rid 92028) by msofer on 2003-11-13 05:55:42:
- 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?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [71c6f76f4e] (rid 100741) by dkf on 2004-06-22 21:52:42:
- 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...)
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dkf"
- icomment:
Ticket change [f68293769b] (rid 130313) by dkf on 2004-06-22 21:52:44:
- icomment:
File Added - 91518: unixStackCheck.v5.diff
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [ad19547bac] (rid 101414) by dkf on 2004-06-23 07:28:15:
- assignee changed to: "dkf"
- closedate changed to: "2004-06-23T00:28:15"
- closer changed to: "dkf"
- 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!
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dkf"
Add attachment "unixStackCheck.v6.diff" [508b486ad9] (rid 125994) by dkf on 2004-06-23 07:28:15.