Ticket UUID: | 559376 | |||
Title: | Clock format w/ -gmt 1 leaks memory | |||
Type: | Bug | Version: | obsolete: 8.3.3 | |
Submitter: | nobody | Created on: | 2002-05-22 21:48:21 | |
Subsystem: | 06. Time Measurement | Assigned To: | hobbs | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2002-05-25 02:32:56 | |
Resolution: | Fixed | Closed By: | hobbs | |
Closed on: | 2002-05-24 19:32:56 | |||
Description: |
We have discovered the following : clock format 0 -gmt 1 Actually it does not matter what the value to clock format is as long as you set -gmt 1. Here is a script that will leak:: while 1 {clock format 0 -gmt 1} It also appears that -gmt 1 takes 18 times longer to execute than -gmt 0 | |||
User Comments: |
hobbs added on 2002-05-25 02:32:56:
File Added - 23694: gmttz.patch Logged In: YES user_id=72656 Attached is a patch for 8.3 (also will apply to 8.4) that fixes this problem, as well as making it faster to boot. This passes the useGMT to TclpStrftime so that we avoid needing the env (TZ) setting trick, which is where the mem leak occured (due to a Windows msvcrt bug). In addition, this also makes the %c %x and %X locale- specific time/date formats work correctly on Windows, as well as correcting the behavior of %s with -gmt 1. |
Attachments:
- gmttz.patch [download] added by hobbs on 2002-05-25 02:32:56. [details]