On 13/12/2010, at 11:00 PM, Domen Puncer wrote: > On Mon, Dec 13, 2010 at 12:47, Steve Bennett <ste...@workware.net.au> wrote: >> >> On 13/12/2010, at 8:12 PM, Domen Puncer wrote: >>> >>> but code only allocates space for extra len-1 objects. >> >> There is already one "slot" allocated for the arg. If the arg expands to >> 'len' >> elements, we only need to allocate 'len-1' more. > > OK then, just seemed fishy. > >> >> Can we see the code being evaluated here? >>> ==32465== by 0x4B6DB2: Jim_Eval_Named (jim.c:9644) >> > > 9643 else { > 9644 retval = Jim_EvalObj(interp, scriptObjPtr); > 9645 } > 9646 Jim_DecrRefCount(interp, scriptObjPtr); > 9647 return retval; > 9648 }
Sorry, I meant the Tcl script that is being evaluated at that point. > > > And the error happens (as the previous gdb backtrace shows) in > Jim_Free, almost at the end of Jim_EvalObj: > > if (argv != sargv) { > Jim_Free(argv); > argv = sargv; > } > > -- > Domen > -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: 0434 921 300 E: ste...@workware.net.au F: 07 3102 9221 _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development