summaryrefslogtreecommitdiffstats
path: root/results/classifier/111/review/1921092
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-06 09:15:28 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-06-06 09:15:28 +0000
commitd0af66c2d76056b173294fc81cdfc47305e4e2a7 (patch)
tree04414c325574a99bc3cd3f1f354786f1b24f06de /results/classifier/111/review/1921092
parent140a79ffee69434ba0fbfde4cefb9fe5e82d93b4 (diff)
downloademulator-bug-study-d0af66c2d76056b173294fc81cdfc47305e4e2a7.tar.gz
emulator-bug-study-d0af66c2d76056b173294fc81cdfc47305e4e2a7.zip
add new results
Diffstat (limited to 'results/classifier/111/review/1921092')
-rw-r--r--results/classifier/111/review/192109269
1 files changed, 69 insertions, 0 deletions
diff --git a/results/classifier/111/review/1921092 b/results/classifier/111/review/1921092
new file mode 100644
index 00000000..c9a79eff
--- /dev/null
+++ b/results/classifier/111/review/1921092
@@ -0,0 +1,69 @@
+other: 0.216
+debug: 0.131
+files: 0.127
+device: 0.100
+semantic: 0.097
+boot: 0.077
+PID: 0.060
+socket: 0.046
+network: 0.029
+graphic: 0.029
+vnc: 0.026
+permissions: 0.026
+performance: 0.026
+KVM: 0.010
+debug: 0.772
+boot: 0.046
+other: 0.031
+semantic: 0.026
+device: 0.023
+files: 0.022
+PID: 0.019
+performance: 0.012
+socket: 0.011
+graphic: 0.010
+permissions: 0.008
+network: 0.008
+vnc: 0.007
+KVM: 0.006
+
+gdbstub debug of multi-cluster machines is undocumented and confusing
+
+Working with Zephyr RTOS, running a multi core sample on mps2_an521 works fine. Both cpus start.
+Trying to debug with options -s -S the second core fails to boot.
+Posted with explanation also at: https://github.com/zephyrproject-rtos/zephyr/issues/33635
+
+there was no bug, it was my fault. How do I delete this
+
+In general, you don't need to delete bugs that turn out to be user error, or edit the description/title; just mark them as 'invalid', perhaps with a comment about what turned out to be the cause. That leaves the trail of what was going on for future readers who might be going down the same path as you.
+
+There are actually a couple of things we should do here in upstream QEMU:
+
+* we should document the process for using the debugstub with multi-cluster board models like the mps2-an521
+* we should check whether we are doing the right/most appropriate thing when the user connects to the debug stub and is only attaching to one 'inferior' -- it sounds from your report like the un-attached inferior is left permanently in the 'stopped' state. Maybe that's what the gdb protocol requires, but it seems a bit unhelpful.
+
+I'm going to update the bug status/text accordingly.
+
+
+Thanks for the answer,
+
+indeed the second cluster of the board has been halted when I was starting gdb the "normal" way - not adding the second inferior. In my own research I did not find out about these inferiors, so I was wondering why "info threads" did only show one cpu. Maybe gdb could inform the user about unattached inferiors when using "info threads"
+
+Could you provide an example QEMU command line and guest image file which you were having this problem with, please? That would save me figuring out how to build zephyr binaries :-)
+
+
+qemu-system-arm -cpu cortex-m33 -machine mps2-an521 -nographic -m 16 -vga none -net none -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -icount shift=7,align=off,sleep=off -rtc clock=vm -device loader,file=<remote_dir>/zephyr.elf -s -S -kernel <master_dir>/zephyr.elf
+
+i've included both .elf files in a zip. That should be enough for running the sample
+
+There's now a new docs section on debugging multicore (including multi-cluster) machines:
+
+https://qemu-project.gitlab.io/qemu/system/gdb.html#debugging-multicore-machines
+
+
+Is there still anything to do here or could we close the ticket now?
+
+It can be closed. The added documentation is very helpful.
+
+Ok, thanks, so I'm closing this ticket now.
+