From: SourceForge.net <no...@so...> - 2007-06-26 03:02:44
|
Bugs item #1743302, was opened at 2007-06-25 22:40 Message generated for change (Comment added) made by dgp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1743302&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: 46. Bytecode Compiler Group: current: 8.5a6 Status: Open Resolution: None Priority: 9 Private: No Submitted By: Daniel A. Steffen (das) >Assigned to: miguel sofer (msofer) Summary: TclStackAlloc crash in TCL_COMPILE_DEBUG build Initial Comment: The recent TclStackAlloc changes appear to have broken the TCL_COMPILE_DEBUG build: $ ../tcl/unix/configure --enable-symbols=compile $ make gdb gdb ./tclsh --command=gdb.run GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:50:43 GMT 2006) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details.build This GDB was configured as "i386-apple-darwin"... Reading symbols for shared libraries .... done (gdb) r Starting program: /TclTk/build/tclsh Reading symbols for shared libraries . done Reading symbols for shared libraries ..... done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x0a069707 in GrowEvaluationStack (eePtr=0x0, growth=5, move=0) at /TclTk/tcl/generic/tclExecute.c:657 657 ExecStack *esPtr = eePtr->execStackPtr, *oldPtr = NULL; (gdb) bt #0 0x0a069707 in GrowEvaluationStack (eePtr=0x0, growth=5, move=0) at /TclTk/tcl/generic/tclExecute.c:657 #1 0x0a0699cb in StackAllocWords (interp=0x13008, numWords=5) at /TclTk/tcl/generic/tclExecute.c:794 #2 0x0a069b4c in TclStackAlloc (interp=0x13008, numBytes=20) at /TclTk/tcl/generic/tclExecute.c:876 #3 0x0a0b54db in TclResetShadowedCmdRefs (interp=0x13008, newCmdPtr=0xb708) at /TclTk/tcl/generic/tclNamesp.c:2659 #4 0x0a0132e1 in Tcl_CreateObjCommand (interp=0x13008, cmdName=0xa1093ec "evalstats", proc=0xa085f24 <EvalStatsCmd>, clientData=0x0, deleteProc=0) at /TclTk/tcl/generic/tclBasic.c:1976 #5 0x0a069320 in InitByteCodeExecution (interp=0x13008) at /TclTk/tcl/generic/tclExecute.c:482 #6 0x0a069488 in TclCreateExecEnv (interp=0x13008) at /TclTk/tcl/generic/tclExecute.c:536 #7 0x0a0115b5 in Tcl_CreateInterp () at /TclTk/tcl/generic/tclBasic.c:473 #8 0x0a0b1a68 in Tcl_Main (argc=1, argv=0xbffff5c8, appInitProc=0x26b7 <Tcl_AppInit>) at /TclTk/tcl/generic/tclMain.c:349 #9 0x000026ac in main (argc=1, argv=0xbffff5c8) at /TclTk/tcl/unix/tclAppInit.c:87 ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2007-06-25 23:02 Message: Logged In: YES user_id=80530 Originator: NO For safety, I'll add the fallback checks to include a check for the case that iPtr->eePtr == NULL to prevent crashes like this. That said, the [evalstats] command is rather weird and strangely placed. It's a command getting created in an interp before that interp is fully initialized. Stranger still, it's a command that apparently gets created in only the first interp created in the process. Someone more familiar with this command, and what it's supposed to do, should consider what needs doing for better thread safety, multi-interp availability, etc. for this debugging command, and also whether it really is best created where it is created. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1743302&group_id=10894 |