Re: [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)

2019-09-03 Thread Aleksandar Markovic
02.09.2019. 18.08, "Aleksandar Markovic" је написао/ла: > > > 02.09.2019. 06.17, "Libo Zhou" је написао/ла: > > > > I am trying to run a simple MIPS program with QEMU user mode. > > > > > > > > Host: Ubuntu 18.04 LTS on x86_64 > > QEMU config: ../configure --target-list=mips-linux-user > > > > Cr

Re: [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)

2019-09-02 Thread Aleksandar Markovic
02.09.2019. 06.17, "Libo Zhou" је написао/ла: > > I am trying to run a simple MIPS program with QEMU user mode. > > > > Host: Ubuntu 18.04 LTS on x86_64 > QEMU config: ../configure --target-list=mips-linux-user > > Cross Compiler: sudo apt install gcc-mips-linux-gnu > > > My test.c is simple: int

Re: [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)

2019-09-02 Thread Libo Zhou
Adding some useful information, enabling strace gives me the following messages. It looks like the segmentation fault is ultimately caused by missing ld.so.nohwcap and ld.so.preload? $ ./qemu-mips -L /usr/mips-linux-gnu -strace test 10255 brk(NULL) = 0x00412000 10255 mmap2(NULL,8192,PROT_READ|

[Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)

2019-09-01 Thread Libo Zhou
I am trying to run a simple MIPS program with QEMU user mode. Host: Ubuntu 18.04 LTS on x86_64 QEMU config: ../configure --target-list=mips-linux-user Cross Compiler: sudo apt install gcc-mips-linux-gnu My test.c is simple: int main(void) {int a = 1; int b =2; int c; c = a + b; return 0;} Af