qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Aleksandar Markovic
Subject: Re: [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)
Date: Tue, 3 Sep 2019 11:44:52 +0200

02.09.2019. 18.08, "Aleksandar Markovic" <address@hidden> је
написао/ла:
>
>
> 02.09.2019. 06.17, "Libo Zhou" <address@hidden> је написао/ла:
> >
> > 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;}
> > After compiling it with "mips-linux-gnu-gcc test.c -o test", I ran it
with "./qemu-mips -L /usr/mips-linux-gnu test", then I got the following
error message:
> > qemu: uncaught target signal 11 (Segmentation fault) - core dumped
> >
> >
> > Does anyone have a solution to this? Thank you in advance.
> >
>
> Hi, Libo.
>
> Please try this:
>
> cd /usr/mips-linux-gnu
> sudo mkdir etc
> sudo ldconfig -c etc/ld.do.cache -r .
>
> ... and start qemu as you described.
>

Or, unless you really need dynamicly linked executables, compile with
"-static", and you will never need "-L" QEMU switch, and will never have
the problem you described.

> Sincerely,
> Aleksandar
>
> >
> > Cheers,
> > Libo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]