Ticket UUID: | 550378 | |||
Title: | panic in Ptr2Block of tclThreadAlloc.c | |||
Type: | Bug | Version: | obsolete: 8.4a5 | |
Submitter: | furukawa | Created on: | 2002-04-29 20:57:53 | |
Subsystem: | 41. Memory Allocation | Assigned To: | hobbs | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2002-04-30 05:02:41 | |
Resolution: | Fixed | Closed By: | hobbs | |
Closed on: | 2002-04-29 22:02:40 | |||
Description: |
Tcl/Tk: 8.4a5, cvs on Apr.29.2002. Platform: Tru64Unix V5.1 / Alpha Thread enabled The same results with gcc and cc (1) If tcl/tk is built with thread enabled, tcltest passes tcl/tests. However, the interpreter crashes in tktest like this. (in tk/unix) make test ... config.test alloc: invalid block: 1400a4430: 54 54 74 /bin/sh: 680284 Abort - core dumped --- ./tktest ../tests/config.test -verbose psb ... ++++ config-12.17 PASSED ++++ config-13.1 PASSED alloc: invalid block: 14009ebf0: cd 0 74 Abort (core dumped) (2) If I run a part of the test, it does not crash. ./tktest ../tests/config.test -verbose psb -match 'config-1[23]*' ... ++++ config-13.1 PASSED config.test: Total 158 Passed 18 Skipped 140 Failed 0 (3) If I compile tcl without -DUSE_THREAD_ALLOC=1, tcl/tk passes tests as before. ----- Kazuro Furukawa. | |||
User Comments: |
hobbs added on 2002-04-30 05:02:41:
File Added - 22175: threadallocnull.txt hobbs added on 2002-04-30 05:02:39: Logged In: YES user_id=72656 This has to due with not checking for NULL values to TclpFree of TclpRealloc. Attached is the patch to be commited for 8.4cvs. |
Attachments:
- threadallocnull.txt [download] added by hobbs on 2002-04-30 05:02:40. [details]