Skip to contentSkip to conversation

Kernel panic: Attempted to kill init!

DISCUSSION kjlin 3 participants 3 messages Jul 5, 2001 – Jul 6, 2001 MIPS

lore
Share & tools
lore

kjlin

author
#0 lore raw

Hi,

When the kernel boots up and mounts the root file system,
the kernel start to do "execve("/sbin/AP",argv_init,envp_init)" to run a AP.
But in my case, it panics when kernel tries to do the "execve("/sbin/AP",argv_init,envp_init)". The kernel panic message shows " Kernel panic: Attempted to kill init! ".
What situation will trigger such kernel panic?

Thanks,
KJ

#1 lore raw

When the kernel boots up and mounts the root file system,
the kernel start to do "execve("/sbin/AP",argv_init,envp_init)" to run a AP. But in my case, it panics when kernel tries to do the "execve("/sbin/AP",argv_init,envp_init)". The kernel panic message shows " Kernel panic: Attempted to kill init! ".
What situation will trigger such kernel panic?
Well, bogus values for argv_init and envp_init would be the first thing I would check...

Kevin K.

#2 lore raw
In reply to kjlin
Quoted 11 lines

kjlin wrote:

Hi,

When the kernel boots up and mounts the root file system,
the kernel start to do "execve("/sbin/AP",argv_init,envp_init)" to run a AP. But in my case, it panics when kernel tries to do the "execve("/sbin/AP",argv_init,envp_init)".
The kernel panic message shows " Kernel panic: Attempted to kill init! ". What situation will trigger such kernel panic?

Quoted 2 lines

Thanks,
KJ

A common reason is that /sbin/AP has a seg fault or some other faults. I would debug AP program in a stable environment and then make sure I can see the first "printf" from AP. From there, you can debug AP with printf.

Jun