Hello,

anyone here who can reproduce this bug?

I use different jtag adapters (ftdi2232 based) with an arm7tdmi target 
(at91sam7) and calls to the
command "mdb 0 100" result in a crash like this (i have append a gdb backtrace):

Debug: 284 12101 command.c:145 script_debug(): command - mdb ocd_mdb 0 100
Debug: 286 12106 arm7_9_common.c:2107 arm7_9_read_memory(): address: 
0x00000000, size: 0x00000001,
count: 0x00000064
*** glibc detected *** ./openocd: free(): invalid pointer: 0x081e3d00 ***


Regards,

Mathias

---


gdb backtrace:

#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7e57636 in raise () from /lib/libc.so.6
#2  0xb7e58b6c in abort () from /lib/libc.so.6
#3  0xb7e8fe55 in ?? () from /lib/libc.so.6
#4  0xb7e954ef in ?? () from /lib/libc.so.6
#5  0xb7e96d44 in ?? () from /lib/libc.so.6
#6  0xb7e99cb3 in free () from /lib/libc.so.6
#7  0x08085fbf in cmd_queue_free () at commands.c:131
#8  jtag_command_queue_reset () at commands.c:139
#9  0x080515e0 in interface_jtag_execute_queue () at driver.c:479
#10 0x0804e972 in jtag_execute_queue_noclear () at core.c:835
#11 0x0804ea4b in jtag_execute_queue () at core.c:853
#12 0x080bdae4 in arm7_9_execute_sys_speed (target=0x81da360) at 
arm7_9_common.c:644
#13 0x080bf9fc in arm7_9_read_memory (target=0x81da360, address=0, size=1, 
count=100,
buffer=<optimized out>) at arm7_9_common.c:2210
#14 0x08066c51 in handle_md_command (cmd=0xbfffd5e8) at target.c:2650
#15 0x0807dc26 in run_command (num_words=3, words=0x81e14b0, c=0x81ddd80, 
context=<optimized out>)
at command.c:613
#16 script_command_run (interp=0x81af028, argc=136191592, argv=0xbfffd6bc, 
c=0x81ddd80,
capture=true) at command.c:209
#17 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=3, objv=<optimized 
out>) at jim.c:9893
#18 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81d8938) at 
jim.c:10338
#19 0x0812f8dc in Jim_EvalCoreCommand (interp=0x81af028, argc=3, 
argv=0xbfffd7bc) at jim.c:12650
#20 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=3, objv=<optimized 
out>) at jim.c:9893
#21 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81cef68) at 
jim.c:10338
#22 0x0812f241 in Jim_CatchCoreCommand (interp=0x81af028, argc=1, 
argv=0xbfffd900) at jim.c:13568
#23 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=2, objv=<optimized 
out>) at jim.c:9893
#24 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81cec20) at 
jim.c:10338
#25 0x081308d2 in Jim_EvalExpression (interp=0x81af028, exprObjPtr=0x81ced40,
exprResultPtrPtr=0xbfffda0c) at jim.c:9116
#26 0x08130e3b in Jim_GetBoolFromExpr (interp=0x81af028, exprObjPtr=0x81ced40, 
boolPtr=0xbfffda5c)
at jim.c:9158
#27 0x08130f34 in Jim_IfCoreCommand (interp=0x81af028, argc=5, argv=0xbfffdb1c) 
at jim.c:11776
#28 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=5, objv=<optimized 
out>) at jim.c:9893
#29 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81cb150) at 
jim.c:10338
#30 0x0813104a in Jim_IfCoreCommand (interp=0x81af028, argc=5, argv=0xbfffdc4c) 
at jim.c:11788
#31 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=5, objv=<optimized 
out>) at jim.c:9893
#32 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81cac40) at 
jim.c:10338
#33 0x081310c8 in Jim_IfCoreCommand (interp=0x81af028, argc=5, argv=0xbfffdd7c) 
at jim.c:11799
#34 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=5, objv=<optimized 
out>) at jim.c:9893
#35 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81b6fd8) at 
jim.c:10338
#36 0x0812ede2 in JimCallProcedure (interp=<optimized out>, cmd=0x81c9fe0, 
argc=<optimized out>,
argv=0xbfffdecc) at jim.c:10577
#37 0x0812dd77 in JimInvokeCommand (interp=0x81af028, objc=4, objv=<optimized 
out>) at jim.c:9889
#38 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81d8b70) at 
jim.c:10338
#39 0x0812f8dc in Jim_EvalCoreCommand (interp=0x81af028, argc=4, 
argv=0xbfffdfcc) at jim.c:12650
#40 0x0812dd49 in JimInvokeCommand (interp=0x81af028, objc=4, objv=<optimized 
out>) at jim.c:9893
#41 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81d7ee0) at 
jim.c:10338
#42 0x0812ede2 in JimCallProcedure (interp=<optimized out>, cmd=0x81ddfb8, 
argc=<optimized out>,
argv=0xbfffe11c) at jim.c:10577
#43 0x0812dd77 in JimInvokeCommand (interp=0x81af028, objc=3, objv=<optimized 
out>) at jim.c:9889
#44 0x0812e1db in Jim_EvalObj (interp=0x81af028, scriptObjPtr=0x81bf188) at 
jim.c:10338
#45 0x0813019c in Jim_EvalSource (interp=0x81af028, filename=0x0, lineno=0, 
script=0x81e1f90 "mdb 0
100") at jim.c:10652
#46 0x0807d97f in command_run_line (context=0x81d2660, line=0x81e1f90 "mdb 0 
100") at command.c:656
#47 0x0807a05e in telnet_input (connection=0x81d9540) at telnet_server.c:328
#48 0x08078c04 in server_loop (command_context=0x81af008) at server.c:462
#49 0x0804bcf8 in openocd_thread (cmd_ctx=0x81af008, argv=0xbfffe944, argc=6) 
at openocd.c:295
---Type <return> to continue, or q <return> to quit---
#50 openocd_main (argc=6, argv=0xbfffe944) at openocd.c:328
#51 0x0804b6f5 in main (argc=6, argv=0xbfffe944) at main.c:41

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to