-
Notifications
You must be signed in to change notification settings - Fork 72
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
Segmentation fault when trying to install any kernels #328
Comments
Whatever it is it isn't your fault. There should be nothing you could do wrong to cause that even if you tried. Could you run |
Absolutely, here's what I got:
|
Hm. Everything is fine. Right up until it isn't. May I see and/or just blindly try It's failing right at the end of a function that already worked fine earlier in the same session. AsyncTask.begin() uses Process.spawn_async_with_pipes() to run aria2c with a bunch of argv args and it's job list supplied by stdin. That is all easy to bork, but all of that machinery already worked earlier in the process to download the indexes. Unfortunately there is no more debugging to enable right in that spot so I'd have to give you a special binary or a git branch you can build, with more stuff added to AsyncTask.vala and LinuxKernel.vala install_klist(). Maybe you can try this, run aria2c manually with the same args and feeding the same stdin data from the log above, only in your terminal and you'll be able to see if aria2c gives an error this way. I've added an arg
|
I tried deleting the cache, and verified that it was really gone, but that didn't seem to solve it. Here's what
I tried running the aria2c that you posted as well - I haven't played with aria2c before so hopefully I ran it correctly, I went ahead and pointed the input-file arg at the stdin_data I saved from before:
The output log file from that was very long so I'm just going to attach it: |
Could you please redo with exactly the command I give and not something else? ALso, I forgot a few things so here is a new command. This will delete cache, download, and produce 3 files, aria2c.log aria2c.out aria2c.err, and the .out will also contain the exit value.
It does look like the files are getting downloaded ok, but what I can't tell is if aria2c is doing anything weird at the end and not exiting normally, even though the files got downloaded. It honestly looks like there is no problem with the download and so no problem with the whole child process, except that is where the segv is happening is right at the end of this process, so I'm trying to examine the very end of this process, when aria2c exits. I think the crash is happening while still in spawn_async_with_pipes() or at least while still in download_packages(), because there is code right after it that should print a message that never gets printed. This seems to be working: mainline/src/Common/LinuxKernel.vala Line 1152 in 9ea2c80
Yet we don't get the So something is happening at the end of download_packages() Permissions & owner are are good on your cache directory and the downloaded files. |
Ah, sorry about the misunderstanding with how the code works - I reran with the new code now. The err file was empty, so I'm just attaching the out and log files. |
Exit 0 and 0 bytes even tried to write to stderr. Perfectly normal and expected. |
Hello,
For some reason whenever I try to install a different kernel, I get a segmentation fault, terminating the program.
"mainline install-minor
mainline 1.4.9
Updating Kernels...
Downloading 6.1.69
Segmentation fault"
is what I see in my terminal. Happy to provide more detailed output if needed, just not sure how to do it right now to be honest.
Currently on kernel 6.1.27. Not sure if I'm doing something wrong, I'm pretty sure I've used the tool properly before a couple of times, though.
Any help is greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: