Artifacts Associated With Ticket 976090ffffffffffffffffffffffffffffffffff
Ticket change [46c56eeb2b] (rid 99571) by wobster on 2004-06-20 03:33:42:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I discovered a segmentation fault when running some incrTcl code in a new thread. If I run the same script in the main thread, there are no errors. It appears to be related to object creation. I'm using the Tcl 8.4.6, the CVS head of the incrTcl extension, and the CVS head of the thread extension. I haven't been able to trace down the exact source of the memory problem yet. Any ideas? Thanks, Rob p.s. I'm attaching the stack trace of the segmentation fault and the compiler warnings I got when I compiled Tcl on the Cray.
- foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "wobster"
- subsystem initialized to: "49. Threading"
- title initialized to: "Segmentation fault in new thread on Cray X1"
- type initialized to: "Bug"
Add attachment "stacktrace.txt" [0dd0ad4774] (rid 114431) by wobster on 2004-06-20 10:33:42.
Ticket change [912366bc18] (rid 120578) by wobster on 2004-06-20 10:33:43:
- icomment:
File Added - 91249: stacktrace.txt
- login: "wobster"
- mimetype: "text/plain"
- username: "wobster"
- icomment:
Ticket change [1cee96aac9] (rid 90701) by wobster on 2004-06-20 10:34:50:
- icomment:
File Added - 91250: warnings.txt
- login: "wobster"
- mimetype: "text/plain"
- username: "wobster"
- icomment:
Add attachment "warnings.txt" [99bd54badd] (rid 110844) by wobster on 2004-06-20 10:34:50.
Ticket change [6512e2013f] (rid 92889) by wobster on 2004-06-20 10:35:29:
- priority changed to: "9 Immediate"
Ticket change [935374fc08] (rid 105794) by wobster on 2004-06-20 20:00:25:
- priority changed to: "5 Medium"
Ticket change [68a662dd47] (rid 103106) by wobster on 2004-06-20 20:00:26:
- icomment:
Logged In: YES user_id=60261 Zoran Vasiljevic suggested that the default stack size for the threads might not be large enough, so I recompiled Tcl using make MEM_DEBUG_FLAGS=-DTCL_THREAD_STACK_MIN=1048576L That seemed to fix the problem for now.
- login: "wobster"
- mimetype: "text/plain"
- username: "wobster"
- icomment:
Ticket change [756e513541] (rid 105386) by wobster on 2004-06-21 09:24:33:
- icomment:
Logged In: YES user_id=60261 As an FYI here are the default stack sizes for a few of the platforms that I run on: 1.) Cray - 512 KB 2.) IRIX - 128K 3.) Solaris 32 bit - 1 MB 4.) Solaris 64 bit - 2 MB 5.) Linux - 2 MB I'm going to recompile Tcl to use 2 MB on all platforms. At some point, it might be nice to be able to configure the Tcl interpreter at run time to change the stack sizes prior to creating new threads. If there is any way that the user could be alerted that the stack size is insufficient that'd be great as well. Thanks, Rob
- login: "wobster"
- mimetype: "text/plain"
- username: "wobster"
- icomment:
Ticket change [d719d71f16] (rid 123921) by dkf on 2009-06-18 15:34:43:
- icomment:
Tcl 8.6 should use a lot less stack due to its restructure in "stackless" form for NRE. Reopen this bug if it is still an issue.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [8697406a20] (rid 131540) by dkf on 2009-06-18 15:34:44:
- closedate changed to: "2009-06-18T08:34:44"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Closed"