Menu

#1870 panic in Ptr2Block of tclThreadAlloc.c

obsolete: 8.4a5
closed-fixed
5
2002-04-29
2002-04-29
No

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.

Discussion

  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-04-29
    • status: open --> closed-fixed
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-04-29

    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.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-04-29