I have a mostly reproducible crash on the BMP running a build of the latest master as of this issue (b10971b), and also on v1.6. This happens with a SAM4S target, when I attempt to reconnect to the target after having already debugged it. It doesn't happen every time, particularly if I don't do much, but it seems like the more debugging I do in the first session, the more likely the second is to crash. I'm including GDB transcripts from both sessions debugging my target, and a backtrace of the BMP using an STlink. The BMP was reset with monitor reset halt via its attached STlink immediately prior to the first transcript.
(gdb) bt
#0 blocking_handler () at ../../cm3/vector.c:99
#1 <signal handler called>
#2 0x0800f140 in _free_r ()
#3 0x0800a438 in target_list_free () at target/target.c:84
#4 0x0800297a in adiv5_swdp_scan () at target/adiv5_swdp.c:49
#5 0x08002b20 in cmd_swdp_scan () at command.c:199
#6 0x08002e48 in command_process (t=0x0, cmd=cmd@entry=0x20004ef8 "swdp_scan") at command.c:113
#7 0x08004e1c in handle_q_packet (len=<optimized out>, packet=0x20000ab4 <pbuf> "qRcmd,737764705f7363616e") at gdb_main.c:334
#8 0x080050ba in gdb_main_loop (tc=tc@entry=0x20000000 <gdb_controller>, in_syscall=in_syscall@entry=false) at gdb_main.c:275
#9 0x08005514 in gdb_main () at gdb_main.c:483
#10 0x08006e78 in main (argc=<optimized out>, argv=<optimized out>) at main.c:47
I have a mostly reproducible crash on the BMP running a build of the latest master as of this issue (b10971b), and also on v1.6. This happens with a SAM4S target, when I attempt to reconnect to the target after having already debugged it. It doesn't happen every time, particularly if I don't do much, but it seems like the more debugging I do in the first session, the more likely the second is to crash. I'm including GDB transcripts from both sessions debugging my target, and a backtrace of the BMP using an STlink. The BMP was reset with
monitor reset halt
via its attached STlink immediately prior to the first transcript.First gdb session: https://pastebin.com/NsmKauM2 Second gdb session, crash: https://pastebin.com/CwRsnPiv
Backtrace of BMP b10971b:
Registers at the time of crash: