qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)
@ 2019-09-02  4:16 =?gb18030?B?TGlibyBaaG91?=
  2019-09-02 11:25 ` =?gb18030?B?TGlibyBaaG91?=
  2019-09-02 16:08 ` Aleksandar Markovic
  0 siblings, 2 replies; 4+ messages in thread
From: =?gb18030?B?TGlibyBaaG91?= @ 2019-09-02  4:16 UTC (permalink / raw)
  To: =?gb18030?B?cWVtdS1kZXZlbA==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 615 bytes --]

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.


Cheers,
Libo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-03  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-02  4:16 [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt) =?gb18030?B?TGlibyBaaG91?=
2019-09-02 11:25 ` =?gb18030?B?TGlibyBaaG91?=
2019-09-02 16:08 ` Aleksandar Markovic
2019-09-03  9:44   ` Aleksandar Markovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).