On Mon, Dec 13, 2010 at 12:47, Steve Bennett <[email protected]> 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 }
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
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development