Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*** kernel panic: init exiting #27

Open
garrettgu10 opened this issue Mar 5, 2021 · 5 comments
Open

*** kernel panic: init exiting #27

garrettgu10 opened this issue Mar 5, 2021 · 5 comments
Assignees
Labels

Comments

@garrettgu10
Copy link

I have tried building this kernel on a few different machines but seem to have an issue getting a build to run in QEMU.

I didn't make any changes to the source code, and simply ran the following commands:
make all && (cd misc; sudo ./mkfs.sh; ./qemu.sh)

From some preliminary println debugging, it seems that the execve syscall is throwing an error, since named(path) ends up being NULL. This is due to !S_ISDIR(dent->inod->mode) in named() returning false on the first iteration.

I am testing on a very clean version of Ubuntu 20.04.2 LTS.

I would love if you could give some insight as to why the first build might not be succeeding. I have attached the disk.img file below.

Thanks!

disk.zip

@solomonw1
Copy link

I have had the same problem (no source code changes)

@davxy davxy added the bug label Apr 27, 2022
@davxy davxy self-assigned this Apr 27, 2022
@AxelPreitiT
Copy link

Hello @davxy,
Is there any new update on this bug?
Or do you have any temporary patch that could fix this problem?:
image

@davxy
Copy link
Owner

davxy commented Nov 24, 2022

Hello @davxy, Is there any new update on this bug? Or do you have any temporary patch that could fix this problem?: image

@AxelPreitiT hey I'll look into it soon(ish). For sure not before next month. In the meantime, can you share the disk image that causes you the panic? TY

@azakalik
Copy link

Hello @davxy, Is there any new update on this bug? Or do you have any temporary patch that could fix this problem?: image

@AxelPreitiT hey I'll look into it soon(ish). For sure not before next month. In the meantime, can you share the disk image that causes you the panic? TY

Hello! I had the same problem as @AxelPreitiT.
I discovered that the command "sudo ./mkfs.sh" is throwing a bunch of errors. Probably no one saw that because in the readme the suggested command is "(cd misc && sudo ./mkfs.sh)". As these commands are being executed in a subshell (because of the parentheses), the errors don't show in screen.
I attached screenshot below that shows the error I'm getting (which probably is causing the kernel panic).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@davxy @garrettgu10 @solomonw1 @AxelPreitiT @azakalik and others