Hi guys, I was playing around with the newest openocd git commit 9a0497. (although I oblserved the same error in previous revisions) It is not happening in the stable version of openocd v0.4.0.
I tested using floss-jtag, jtag-key tiny and lisa-l all connected to stm32 targets. Running reset halt commands leads to a segfault. I include the backtrace. I compiled openocd on Mac OS X Snow Leopard (V 10.6.5) using GCC i686-apple-darwin10-gcc-4.2.1. I include the backtrace: #0 0x0000000100071804 in mem_ap_read_atomic_u32 () #1 0x00000001000b6f8a in jim_target_reset () #2 0x00000001000cd9ba in command_unknown () #3 0x00000001000e5463 in Jim_EvalObj () #4 0x00000001000ea3e1 in Jim_EvalCoreCommand () #5 0x00000001000e5463 in Jim_EvalObj () #6 0x00000001000e5178 in Jim_EvalObj () #7 0x00000001000e862b in Jim_IfCoreCommand () #8 0x00000001000e5463 in Jim_EvalObj () #9 0x00000001000e5b71 in JimCallProcedure () #10 0x00000001000e5499 in Jim_EvalObj () #11 0x00000001000ea3e1 in Jim_EvalCoreCommand () #12 0x00000001000e5463 in Jim_EvalObj () #13 0x00000001000e5b71 in JimCallProcedure () #14 0x00000001000e5499 in Jim_EvalObj () #15 0x00000001000e862b in Jim_IfCoreCommand () #16 0x00000001000e5463 in Jim_EvalObj () #17 0x00000001000e835c in JimForeachMapHelper () #18 0x00000001000e8535 in Jim_ForeachCoreCommand () #19 0x00000001000e5463 in Jim_EvalObj () #20 0x00000001000e5b71 in JimCallProcedure () #21 0x00000001000e5499 in Jim_EvalObj () #22 0x00000001000eccdf in Jim_CatchCoreCommand () #23 0x00000001000e5463 in Jim_EvalObj () #24 0x00000001000e4759 in Jim_InterpolateTokens () #25 0x00000001000e51d9 in Jim_EvalObj () #26 0x00000001000e5178 in Jim_EvalObj () #27 0x00000001000e5b71 in JimCallProcedure () #28 0x00000001000e5499 in Jim_EvalObj () #29 0x00000001000e5da0 in Jim_Eval_Named () #30 0x00000001000e5df5 in Jim_Eval () #31 0x00000001000ada45 in target_process_reset () #32 0x00000001000b13ae in handle_reset_command () #33 0x00000001000cc7e8 in run_command () #34 0x00000001000cb7bc in script_command_run () #35 0x00000001000cb86a in script_command () #36 0x00000001000e5463 in Jim_EvalObj () #37 0x00000001000ea3e1 in Jim_EvalCoreCommand () #38 0x00000001000e5463 in Jim_EvalObj () #39 0x00000001000eccdf in Jim_CatchCoreCommand () #40 0x00000001000e5463 in Jim_EvalObj () #41 0x00000001000e27a2 in Jim_EvalExpression () #42 0x00000001000e28ed in Jim_GetBoolFromExpr () #43 0x00000001000e85b8 in Jim_IfCoreCommand () #44 0x00000001000e5463 in Jim_EvalObj () #45 0x00000001000e862b in Jim_IfCoreCommand () #46 0x00000001000e5463 in Jim_EvalObj () #47 0x00000001000e86f0 in Jim_IfCoreCommand () #48 0x00000001000e5463 in Jim_EvalObj () #49 0x00000001000e5b71 in JimCallProcedure () #50 0x00000001000e5499 in Jim_EvalObj () #51 0x00000001000ea3e1 in Jim_EvalCoreCommand () #52 0x00000001000e5463 in Jim_EvalObj () #53 0x00000001000e5b71 in JimCallProcedure () #54 0x00000001000e5499 in Jim_EvalObj () #55 0x00000001000e5da0 in Jim_Eval_Named () #56 0x00000001000cc978 in command_run_line () #57 0x00000001000c9826 in telnet_input () #58 0x00000001000c809a in server_loop () #59 0x000000010000253c in openocd_main () #60 0x0000000100001a87 in main () I hope that helps to track down the segfault. If I can provide any additional information or you can point me to how to debug and fix that bug I will greatly appreciate it! Cheers Esden -- My blog: http://www.esden.net My projects: http://open-bldc.org, http://openmulticopter.org _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
