| Ticket UUID: | 570306 | |||
| Title: | tktest finalize segfault | |||
| Type: | Bug | Version: | obsolete: 8.4a5 | |
| Submitter: | dgp | Created on: | 2002-06-18 02:12:57 | |
| Subsystem: | 67. Unix Window Operations | Assigned To: | mdejong | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2002-06-20 02:41:15 | |
| Resolution: | Fixed | Closed By: | mdejong | |
| Closed on: | 2002-06-19 19:41:15 | |||
| Description: |
After running the clipboard.test file in the test
suite, tktest
has a segfault while finalizing. The really weird thing is
that the segfault shows up only when using a short glob
pattern to select the file. See below.
(gdb) run ./../tests/all.tcl -file cli\*.test
Starting program: /local/src/tk/unix/./tktest
./../tests/all.tcl -file cli\*.tes
t
Tk 8.4a5 tests running in interp:
/local/src/tk/unix/./tktest
Tests running in working dir: /local/src/tk/unix
Sourcing files that match: /local/src/tk/tests/cli*.test
Tests began at Mon Jun 17 21:54:26 EDT 2002
clipboard.test
Tests ended at Mon Jun 17 21:54:29 EDT 2002
all.tcl: Total 35 Passed 35 Skipped
0 Failed 0
Sourced 1 Test Files.
Program received signal SIGSEGV, Segmentation fault.
0x200005c17a8 in chunk_free (ar_ptr=0x20000770de0,
p=0x1203e67a0)
at malloc.c:3121
3121 malloc.c: No such file or directory.
(gdb) bt
#0 0x200005c17a8 in chunk_free (ar_ptr=0x20000770de0,
p=0x1203e67a0)
at malloc.c:3121
#1 0x200005c4574 in __libc_free (mem=0x20000770de0) at
malloc.c:3023
#2 0x12020a1a8 in TclpFree (cp=0x1203e69f0 "") at
./../generic/tclAlloc.c:702
#3 0x120135f68 in Tcl_Free (ptr=0x1203e69f0 "")
at ./../generic/tclCkalloc.c:1160
#4 0x12018c020 in Tcl_DeleteHashTable
(tablePtr=0x12036fa48)
at ./../generic/tclHash.c:618
#5 0x12004b3ac in FreeUidThreadExitProc (clientData=0x0)
at /local/src/tk/unix/../generic/tkGet.c:508
#6 0x120172740 in Tcl_FinalizeThread () at
./../generic/tclEvent.c:906
#7 0x120172520 in Tcl_Finalize () at
./../generic/tclEvent.c:804
#8 0x120172108 in Tcl_Exit (status=0) at
./../generic/tclEvent.c:564
#9 0x120137d88 in Tcl_ExitObjCmd (dummy=0x0,
interp=0x120360480, objc=1,
objv=0x120361c40) at ./../generic/tclCmdAH.c:667
#10 0x12012dd90 in TclEvalObjvInternal
(interp=0x120360480, objc=1,
objv=0x120361c40, command=0x0, length=0, flags=0)
at ./../generic/tclBasic.c:3012
#11 0x120174ac8 in TclExecuteByteCode
(interp=0x120360480, codePtr=0x1204800f0)
at ./../generic/tclExecute.c:1279
#12 0x120173bf8 in TclCompEvalObj (interp=0x120360480,
objPtr=0x1204630d0)
at ./../generic/tclExecute.c:917
#13 0x12012f6c8 in Tcl_EvalObjEx (interp=0x120360480,
objPtr=0x1204630d0,
flags=0) at ./../generic/tclBasic.c:3907
#14 0x1201c8c64 in TclObjInterpProc
(clientData=0x12046cb70,
interp=0x120360480, objc=2, objv=0x11fffeee0)
at ./../generic/tclProc.c:1074
#15 0x12012dd90 in TclEvalObjvInternal
(interp=0x120360480, objc=2,
objv=0x11fffeee0,
command=0x12044988a "::tcltest::cleanupTests
1\nreturn\n", length=26,
flags=0) at ./../generic/tclBasic.c:3012
#16 0x12012ee5c in Tcl_EvalEx (interp=0x120360480,
script=0x120448ff0 "# all.tcl --\n#\n# This file
contains a top-level script
to run all of the Tk\n# tests. Execute it by invoking
\"source all.tcl\" when
running tktest\n# in this directory.\n#\n# Copyright
(c) 1998-1999 by Sc"...,
numBytes=2235, flags=0) at ./../generic/tclBasic.c:3607
#17 0x1201a6008 in Tcl_FSEvalFile (interp=0x120360480,
pathPtr=0x1203ce740)
at ./../generic/tclIOUtil.c:1355
#18 0x1201a4c88 in Tcl_EvalFile (interp=0x120360480,
fileName=0x11ffff248 "./../tests/all.tcl") at
./../generic/tclIOUtil.c:234
#19 0x12004fe88 in Tk_MainEx (argc=3, argv=0x11ffff3b0,
appInitProc=0x12002a500 <Tcl_AppInit>,
interp=0x120360480)
at /local/src/tk/unix/../generic/tkMain.c:234
#20 0x12002a4d8 in main (argc=4, argv=0x11ffff3a8)
at /local/src/tk/unix/tkAppInit.c:69
Notice that "-file cli\*.test" was used. Any longer
prefixes from
"-file clip\*.test" up to "-file clipboard.test" show
no segfault.
Shorter prefixes do show the segfault, but also cause more
files to be tested.
This problem is seen on the Linux/Alpha platform.
| |||
| User Comments: |
mdejong added on 2002-06-20 02:41:15:
Logged In: YES user_id=90858 Should be bixed by commit of Tk patch 570902 on 2002-06-19, closing. dgp added on 2002-06-20 00:24:24: Logged In: YES user_id=80530 yes it does mdejong added on 2002-06-19 09:20:24: Logged In: YES user_id=90858 Please give Tk patch 570902 a try to see if it fixes this problem for you. mdejong added on 2002-06-19 08:09:54: Logged In: YES user_id=90858 I already have a fix for this problem in hand, just getting the patch in final shape. dgp added on 2002-06-19 07:50:32: Logged In: YES user_id=80530 assigning to Mo, who reportedly has experience diving into XCloseIM() and might have a clue what it could do to cause these segfaults. dgp added on 2002-06-19 07:48:47: Logged In: YES user_id=80530 Disabling the XCloseIM() call in TkpCloseDisplay() stops the segfault. Buggy X? dgp added on 2002-06-19 07:40:50: Logged In: YES user_id=80530 Compile with -DTK_XIM_SPOT=0 stops the segfault. dgp added on 2002-06-18 10:50:21: Logged In: YES user_id=80530 Same stack trace is triggered by "-file select\*.test" | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki