From: "Alex Bennée" <alex.bennee@linaro.org>
To: Ajay Garg <ajaygargnsit@gmail.com>
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org,
rumpkernel-users@freelists.org
Subject: Re: [Qemu-devel] Crash when running hello-world unikernel for ARM
Date: Mon, 09 Apr 2018 14:29:05 +0100 [thread overview]
Message-ID: <87d0z8v78e.fsf@linaro.org> (raw)
In-Reply-To: <CAHP4M8W-WuBmJUdb6LGR1t3tPayrnaS+b1ZZ1zew71aM==-imA@mail.gmail.com>
Ajay Garg <ajaygargnsit@gmail.com> writes:
>>
>> qemu-system-x86_64 is expecting an x86 binary blob. I assume you need
>> qemu-system-arm. More importantly you need to specify a -M machine type
>> that matches whatever rumprun is expecting.
>>
>
> Oops, sorry my bad.
> Here is the updated status :
>
> ajay@latitude-3480:~/rumprun-arm-hw/rumprun$ qemu-system-arm -machine
> virt -nographic -nographic -kernel helloer.bin
> Bad ram pointer 0x1e8
> Aborted (core dumped)
Can you run under -s -S and gdb step the *guest* and see where it ends
up. The above error is usually indicative of the guest going off into
the weeds somewhere because the hardware isn't what it expects.
>
>
> ajay@latitude-3480:~/rumprun-arm-hw/rumprun$ gdb --args
> qemu-system-arm -machine virt -nographic -nographic -kernel
> helloer.bin
> GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from qemu-system-arm...(no debugging symbols found)...done.
> (gdb) r
> Starting program: /usr/bin/qemu-system-arm -machine virt -nographic
> -nographic -kernel helloer.bin
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x7fffecc88700 (LWP 14033)]
> [New Thread 0x7fffd21fc700 (LWP 14034)]
> Bad ram pointer 0x1e8
>
> Thread 3 "qemu-system-arm" received signal SIGABRT, Aborted.
> [Switching to Thread 0x7fffd21fc700 (LWP 14034)]
> 0x00007ffff2a1b428 in __GI_raise (sig=sig@entry=6) at
> ../sysdeps/unix/sysv/linux/raise.c:54
> 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> (gdb) bt
> #0 0x00007ffff2a1b428 in __GI_raise (sig=sig@entry=6) at
> ../sysdeps/unix/sysv/linux/raise.c:54
> #1 0x00007ffff2a1d02a in __GI_abort () at abort.c:89
> #2 0x00005555557687f1 in get_page_addr_code ()
> #3 0x000055555572d50c in ?? ()
> #4 0x000055555572e11b in cpu_arm_exec ()
> #5 0x0000555555750252 in ?? ()
> #6 0x00007ffff2db76ba in start_thread (arg=0x7fffd21fc700) at
> pthread_create.c:333
> #7 0x00007ffff2aed41d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
> (gdb)
>
>
> Thanks and Regards,
> Ajay
--
Alex Bennée
next prev parent reply other threads:[~2018-04-09 13:29 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-09 9:34 [Qemu-devel] Crash when running hello-world unikernel for ARM Ajay Garg
2018-04-09 12:45 ` Alex Bennée
2018-04-09 12:57 ` Ajay Garg
2018-04-09 13:29 ` Alex Bennée [this message]
2018-04-10 4:14 ` Ajay Garg
2018-04-10 4:21 ` Ajay Garg
2018-04-10 7:38 ` [Qemu-arm] " Peter Maydell
2018-04-10 7:38 ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2018-04-10 8:16 ` [Qemu-arm] [Qemu-devel] " Ajay Garg
2018-04-10 8:16 ` [Qemu-devel] [Qemu-arm] " Ajay Garg
2018-04-10 9:20 ` [Qemu-arm] [Qemu-devel] " Peter Maydell
2018-04-10 9:20 ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2018-04-10 10:19 ` [Qemu-arm] [Qemu-devel] " Ajay Garg
2018-04-10 10:19 ` [Qemu-devel] [Qemu-arm] " Ajay Garg
2018-04-11 7:19 ` [Qemu-arm] [Qemu-devel] " Ajay Garg
2018-04-11 7:19 ` [Qemu-devel] [Qemu-arm] " Ajay Garg
2018-04-12 4:26 ` [Qemu-arm] [Qemu-devel] " Ajay Garg
2018-04-12 4:26 ` [Qemu-devel] [Qemu-arm] " Ajay Garg
2018-04-12 4:53 ` [Qemu-arm] [Qemu-devel] " Ajay Garg
2018-04-12 4:53 ` [Qemu-devel] [Qemu-arm] " Ajay Garg
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=87d0z8v78e.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=ajaygargnsit@gmail.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rumpkernel-users@freelists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.