From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s49sm512656wrc.36.2018.04.09.06.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 06:29:05 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 55E5B3E02A3; Mon, 9 Apr 2018 14:29:05 +0100 (BST) References: <87efjov999.fsf@linaro.org> User-agent: mu4e 1.1.0; emacs 26.1 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Ajay Garg 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 In-reply-to: Date: Mon, 09 Apr 2018 14:29:05 +0100 Message-ID: <87d0z8v78e.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TUID: 8uKrWtFFsbmF Ajay Garg 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 > 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: > . > Find the GDB manual and other documentation resources online at: > . > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from qemu-system-arm...(no debugging symbols found)...don= e. > (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=3Dsig@entry=3D6) 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=3Dsig@entry=3D6) 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=3D0x7fffd21fc700) 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=C3=A9e