Kernel panic while executing "exit" in MIPS Linux target on I32 Linux host
hi,
I am running qemu (latest version from CVS) on my I32 Linux desktop to emulate the MIPS arch. While running the mips-test-0.1.tar.gz <http://www.qemu.org/mips-test-0.1.tar.gz>, everything works fine except executing the "exit" command. I got the following information.
BusyBox v1.01 (Debian 1:1.01-4) Built-in shell (ash) Enter 'help' for a list of built-in commands.
~ # help
Built-in commands:
-------------------
. : break cd chdir command continue eval exec exit export false hash help let local pwd read readonly return set shift times trap true type ulimit umask unset wait
~ # exit
Kernel panic - not syncing: Attempted to kill init!
Is it a bug or not?
Thanks,
Neo
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Quoted 18 lines · Neo
hi,
I am running qemu (latest version from CVS) on my I32 Linux desktop to emulate the MIPS arch. While running the mips-test-0.1.tar.gz
<http://www.qemu.org/mips-test-0.1.tar.gz>, everything works fine except executing the "exit" command. I got the following information.BusyBox v1.01 (Debian 1:1.01-4) Built-in shell (ash) Enter 'help' for a list of built-in commands.
~ # help
Built-in commands:
-------------------
. : break cd chdir command continue eval exec exit export false hash help let local pwd read readonly return set shift times trap true type ulimit umask unset wait
Quoted 8 lines
~ # exit
Kernel panic - not syncing: Attempted to kill init!Is it a bug or not?
Thanks,
Neo
No bug. With exit, you terminate the shell (/bin/sh). In this test, /bin/sh is the init process which normally never terminates while your OS is running. If it does, you get a kernel panic ...
Stefan
Quoted 25 lines · Stefan Weil
Quoted 23 lines · Neo
hi,
I am running qemu (latest version from CVS) on my I32 Linux desktop to emulate the MIPS arch. While running the mips-test-0.1.tar.gz
<http://www.qemu.org/mips-test-0.1.tar.gz>, everything works fine except executing the "exit" command. I got the following information.BusyBox v1.01 (Debian 1:1.01-4) Built-in shell (ash) Enter 'help' for a list of built-in commands.
~ # help
Built-in commands:
-------------------
. : break cd chdir command continue eval exec exit export false hash help let local pwd read readonly return set shift times trap true type ulimit umask unset wait~ # exit
Kernel panic - not syncing: Attempted to kill init!Is it a bug or not?
Quoted 10 lines
Quoted 4 lines
Thanks,
NeoNo bug. With exit, you terminate the shell (
/bin/sh). In this test,/bin/shis the init process which normally never terminates while your OS is running. If it does, you get a kernel panic ...
Thank you for your explanation. But why there is no kernel panic when the target host is PC?
Neo
Quoted 10 lines
Stefan
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Quoted 2 lines · Neo
Thank you for your explanation. But why there is no kernel panic when the target host is PC?
Specify init=/bin/sh on the kernel command line, and type exit when you get the shell - you'll also get a kernel panic.
Signature · 4 lines
< Jernej Simonèiè ><><><><>< http://deepthought.ena.si/ >
When you need towns, they are very far apart.
-- Steinbeck's Law