You are not logged in.

#1 2024-06-17 15:05:21

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

[SOLVED] Kernel Panic

I frequently get kernel panics on my machine.

In this case its a notebook, a Dell XPS 17 9720.

I sometimes cant see the stack trace due to the UI still being displayed, but in this case I was able to take an image of the trace.

The kernel trace may not be complete, but here is everything I see.

https://ibb.co/92bqZM5

I tried using kdump but my kernels cant be loaded due to a PEFILE error and I cannot really create any dumps or traces.
As it seems for me this is a memory issue due to the mention of "read access" and "not-present page", though it also mentions that the exception happened inside a interrupt.

This usually happens on shutdowns, but I also had a kernel panic (not necessarily the same one as in this trace) when running Hyprland (Wayland) and starting some apps (as far as I remember).

Sadly, there have been no logs inside inside dmesg or journal.

Do you have ideas on where to start debugging this?

Last edited by MatKaplinski (2024-06-24 18:38:25)

Offline

#2 2024-06-17 15:08:08

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,301
Website

Re: [SOLVED] Kernel Panic

Which module taints your kernel? Does the issue also arise without that module?

Are you running the 'linux' package right now? If so, at which version?

Also did you have a chance to try the lts kernel?

Offline

#3 2024-06-17 15:16:36

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

A bit more information about my system:
Kernel (as it says in the trace) was 6.9.4, bootloader is grub with these arguments: "BOOT_IMAGE=/vmlinuz-linux root=UUID=55fecb9f-9887-4a25-8510-99322d4442a3 rw loglevel=5 crashkernel=16M@256M"

I got the proprietary nvidia drivers installed AFAIK and the GPU is a mobile 3050.
CPU is a 12th Gen Intel(R) Core(TM) i7-12700H.

In response to @gromit:
I am unsure what module "taints" the kernel. I installed "typical" packages like the nvidia ones.

After the kernel panic i ran a -Syu, I am indeed using the linux package and it is now (after the crash) at 6.9.5.arch1-1 (according to pacman -Qs).

I have yet to try the lts kernel. I should've tried that before posting here, but here we are.


Here is a list of my installed packages:
https://paste.c-net.org/GordieRetained

Offline

#4 2024-06-17 16:34:28

xerxes_
Member
Registered: 2018-04-29
Posts: 942

Re: [SOLVED] Kernel Panic

Operation(s) related to red-black trees is failing (rb_first).

After crash can you do something on system (keyboard and mouse work, can you switch to text console)? How do you reboot your system? Do you use sysrq keys to sync, umount disk & reboot system? If not and you can't work or do anything, then wait over 90 seconds (systemd service timeout) and press power button (but don't hold it), wait next 25 seconds. If system don't power off itself, then press and hold power button until system turn off.

Reason for doing this is to check if system hang completely or not: if not then it may save full journalctl log (which you can post here, so we can see what happened) and turn off system gracefully.

Last edited by xerxes_ (2024-06-17 16:36:34)

Offline

#5 2024-06-17 17:31:43

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

No, I usually try to toggle caps lock, but that doesnt work.
I force power off the notebook.

i tried the sysrq keys once, but I dont think they work, I only have a print/f10 key, I am unsure if this keyboard has a "normal" sysrq key.

I will try to wait the next time in hopes the journal still saves.
I think the entire system is hanging, because the capslock key doesnt toggle.

Sometimes it did still toggle, at least the one time when it locked up my DE, but then also became unresponsive after a few clicks.

Offline

#6 2024-06-17 18:17:53

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,301
Website

Re: [SOLVED] Kernel Panic

MatKaplinski wrote:

A bit more information about my system:
In response to @gromit:
I am unsure what module "taints" the kernel. I installed "typical" packages like the nvidia ones.
https://paste.c-net.org/GordieRetained

Yeah its the nvidia package as the nvidia driver is an out-of-tree module and therefore taints the kernel, that also should be somewhere in your dmesg.

Can you reproduce the crash with an untainted kernel? https://wiki.archlinux.org/title/Nouveau

Offline

#7 2024-06-17 19:07:32

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

Hmm so I now have more issues:

I uninstalled the nvidia packages (all of them, like mentioned in the manual), installed the mesa and nouveau drivers, made sure that my initramfs does not contain any nvidia modules anymore, added the parameter to the commandline via grub and ran update-grub and rebooted.

Upon running vulkaninfo it again straight up crashes.

Or, it also crashes when running lspci, which is really strange to me. It did reboot by itself, but the capslock did not toggle when pressing, so it was most likely completely dead.

This still is happening with the normal kernel, 6.9.5.

https://ibb.co/VJBf6h4

Offline

#8 2024-06-17 19:13:26

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

Btw, the kernel seems to still be tainted due to "requested by userspace application (#6)".
In the meantime I will try out the LTS kernel...

Offline

#9 2024-06-17 19:20:10

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

Further information:

vulkaninfo under LTS kernel produces an OOPS, but does not crash the system.

The kernel is still tainted due to enable_guc for the intel gpu. I can try to disable this aswell.

Offline

#10 2024-06-17 19:29:10

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

These are the logs in regards to nouveau crashing on LTS driver;

https://ibb.co/Cw94nqD
https://ibb.co/QQ70pCV

Offline

#11 2024-06-17 19:43:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,348

Re: [SOLVED] Kernel Panic

First kernel crash is pretty much https://bbs.archlinux.org/viewtopic.php?id=293400
tl;dr, https://aur.archlinux.org/packages/nvidia-535xx-dkms

it also crashes when running lspci

That's most likely a different issue and nouveau has a long track record itr.

Online

#12 2024-06-17 20:11:09

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

Isnt installing the dkms driver quite the opposite of what @gromit wants to do?
I dont quite get your intention. I assume you mean first kernel crash as in the one I opened this thread with?

I am now running lts with the dkms driver.
I will report if I get further crashes.

Offline

#13 2024-06-17 20:15:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,348

Re: [SOLVED] Kernel Panic

The crash in the OP is (for all that can be seen and most likely) a known issue w/ the nvidia 550xx drivers the 535xx driver will not have that.

You can try your luck w/ nouveau but as you noticed it comes with a different set of (long standing) issues, for an Ampere chip it's probably to get it out of RTD3

Online

#14 2024-06-17 21:09:11

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

Ah, thank you for explaining.
This makes more sense.

AFAIK, nvidias proprietary drivers tend to be more stable, therefore I didnt opt for the open source ones.

As mentioned I will report for further crashes.

Offline

#15 2024-06-24 09:56:47

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

This seems to have done it.
Still running the lts kernel, though I suspect the driver was the issue.

If theres anything else that comes up, I will create a new post smile

Thanks!

Offline

#16 2024-06-24 14:56:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,348

Re: [SOLVED] Kernel Panic

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#17 2024-06-24 18:38:10

MatKaplinski
Member
Registered: 2024-05-13
Posts: 19

Re: [SOLVED] Kernel Panic

I wanted to, but in my hurry I wasn't able to find the edit feature.
Thanks for the reminder!

Offline

Board footer

Powered by FluxBB