Ticket UUID: | 3461051 | |||
Title: | Crash on "exit" when resources are low | |||
Type: | Bug | Version: | obsolete: 8.5.11 | |
Submitter: | tombert | Created on: | 2011-12-16 18:00:32 | |
Subsystem: | 49. Threading | Assigned To: | andreas_kupries | |
Priority: | 5 Medium | Severity: | ||
Status: | Open | Last Modified: | 2012-04-11 03:08:19 | |
Resolution: | None | Closed By: | ||
Closed on: | ||||
Description: |
This is another try in hope that you're able to reproduce. Environment: Win7 with latest thread2.7b1, Tcl 8.5.11 MinGW build and ActiveState (when package 2.6.7 is replaced with 2.7b1); It doesn't crash when using thread2.6.7. It crashes only when resources running low, for this I also have reported a tracker here: https://sourceforge.net/tracker/?func=detail&aid=3461049&group_id=10894&atid=110894 In the example I'am trying to create 10tsd entries whereas it stops earlier without error message. Of course 10tsd entries is weird but I'am having similar troubles in my own application on exiting and there I've got only two toplevels and ~10 entries but lots more itcl classes. So that's why I'am thinking it might be some resources ... Source the attached main.tcl and in the console type: > threads which starts a few threads trying to ping in background. Then type: > entries which tries to create 200 toplevels but stops at 192. Then type: > exit it should crash now. ... I really hope that this time it works ... thx | |||
User Comments: |
tombert added on 2012-04-11 03:08:19:
Got latest head of Tk and Tcl. Tried again but this time it created 200 Toplevels. After "exit" it crashes. dgp added on 2011-12-21 23:33:49: A difference between Thread 2.6.7 and Thread 2.7b1 strongly points to issues with the re-enabled finalization in Thread. That is, the difference isn't so much in what's right/wrong, but in how ambitious the code is. Same bug/issue is always there, but not triggered when finalization is not attempted. Thanks for testing the unreleased 2.7b so we can address this before release. tombert added on 2011-12-17 01:08:57: Cross-link to the tk tracker: https://sourceforge.net/tracker/index.php?func=detail&aid=3461049&group_id=10894&atid=110894 tombert added on 2011-12-17 01:00:38: File Added - 431045: main.tcl |
Attachments:
- main.tcl [download] added by tombert on 2011-12-17 01:00:38. [details]