Skip to content
Tcl Source Code View Ticket
Login

View Ticket

panic in Ptr2Block of tclThreadAlloc.c

Closed / Fixed550378ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-04-29 20:57:53
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.
hobbsplain2002-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.
hobbs Ticket [550378ffff]: 2 changes [History diff]2002-04-30 05:02:40
hobbsplain2002-04-30 05:02:41
File Added - 22175: threadallocnull.txt
Log in (anonymous is fine) to add a comment.

Attachments: