| Ticket UUID: | 2686560 | |||
| Title: | memleak in crc::cksum | |||
| Type: | Bug | Version: | None | |
| Submitter: | pedietz | Created on: | 2009-03-13 22:12:31 | |
| Subsystem: | crc | Assigned To: | andreas_kupries | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2009-04-22 03:08:25 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2009-04-21 20:08:25 | |||
| Description: |
calling crc::cksum over and over causes a huge memleak.
while { 1 } {
set a [crc::cksum helloworld]
}
doing the same with crc::crc32 doesnt.
| |||
| User Comments: |
andreas_kupries added on 2009-04-22 03:08:25:
allow_comments - 1 Fixed in CVS head. Bumped to version 1.1.3. The CksumFinal command missed the 'unset state' cleaning up the internal state token/array. I.e. the code generated thousands of tokens = array variables and never removed them. andreas_kupries added on 2009-03-17 11:43:50: Phil, thank you for the additional information. With none of the accelerators loaded this definitely looks to be a problem within the cksum Tcl code itself. pedietz added on 2009-03-14 21:02:54: % info loaded
% package require cksum
1.1.1
% info loaded
%
No packages.
This problem happens under 8.4.14 with tclllib1.1.10
and 8.5.6 with tcllib 1.1.11.
This is the entire program:
package require cksum
while { 1 } {
set a [crc::cksum helloworld]
}
Run that. Then in another shell do 'ps aux | grep tclsh' and watch the number grow.
andreas_kupries added on 2009-03-14 05:59:03: What does the command 'info loaded' report regarding loaded C packages ? crc can use a number of C extensions to accelerate its operation and knowing which is loaded should help us finding which of them leaks. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki