Hi guys,
I was developing a simple OS for Raspberry Pi 2.
When I was debugging my OS using "-s -S" options for QEMU, I was
getting a segfault: Segmentation fault (core dumped).
After that, I decided to run QEMU (for ARM using a raspi2 machine) inside GDB.
$ gdb ./arm-softmmu/qemu-system-arm
(gdb) run -kernel ~/myos/kernel.elf -cpu arm1176 -m 256 -M raspi2 -s -S
After starting my kernel in another GDB instance, I got a segfault as
I mentioned.
Here is the error and the backtrace:
Thread 1 "qemu-system-arm" received signal SIGSEGV, Segmentation fault.
0x0000555555785da7 in tb_page_remove (tb=0x7fffd2cf40f0, ptb=0x30) at
/home/julio/qemu/translate-all.c:1033
1033 ptb = &tb1->page_next[n1];