From: =?gb18030?B?TGlibyBaaG91?= <zhlb29@foxmail.com>
To: =?gb18030?B?cWVtdS1kZXZlbA==?= <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt)
Date: Mon, 2 Sep 2019 12:16:31 +0800 [thread overview]
Message-ID: <tencent_61024D4F136E131E2B085A7DACEA1593D007@qq.com> (raw)
[-- 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
next reply other threads:[~2019-09-02 4:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-02 4:16 =?gb18030?B?TGlibyBaaG91?= [this message]
2019-09-02 11:25 ` [Qemu-devel] Uncaught target signal 11 (Segmentation Faullt) =?gb18030?B?TGlibyBaaG91?=
2019-09-02 16:08 ` Aleksandar Markovic
2019-09-03 9:44 ` Aleksandar Markovic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_61024D4F136E131E2B085A7DACEA1593D007@qq.com \
--to=zhlb29@foxmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).