Hi guys,

Thanks for the feedback.
Basically, I'm using master branch.
I'm not using any specific tag.

$ ./qemu-system-arm --version
QEMU emulator version 2.7.50 (v2.7.0-1871-g9b4b035-dirty)
Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

I updated this branch (git pull only), recompiled and test it again.
The error is still happening.

I'm developing an OS for Raspberry Pi.
The code source base was taken from here:
http://wiki.osdev.org/Raspberry_Pi_Bare_Bones
The compiler, I moved to arm-none-eabi-gcc.

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)

I'm still need to test raspbian yet.

--
Julio Cesar Faracco

2016-11-10 4:39 GMT-02:00 Stefan Weil <s...@weilnetz.de>:
> On 11/09/16 22:35, Julio Faracco wrote:
>>
>> 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];
>
>
> Does this happen with other kernels (for example official Raspbian) too?
> If not: could you provide your special kernel, so it is possible to
> reproduce that crash?
>
> Cheers
> Stefan
>

Reply via email to