this post was submitted on 20 Jan 2024
41 points (91.8% liked)

Linux

48062 readers
915 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Any advice on where to go from here? This console was running dmesg -w to try and catch an intermittent crash... And this is what I got. I am using an el cheapo USB wifi adapter that I'm suspicious of.

Everything was working fine until I rebuilt nixos with Nvidia support... Now my old generations of the OS are crashing after a few minutes (display on, no response to input, keyboard lights don't respond, SysRq doesn't work)

you are viewing a single comment's thread
view the rest of the comments
[–] stardreamer@lemmy.blahaj.zone 3 points 9 months ago* (last edited 9 months ago) (1 children)

Look at the line with the asm_exc_invalid_op. That seems like a hardware fault caused by an invalid asm instruction to me. Either something wrong is being interpreted as an opcode (unlikely) or maybe the driver was compiled with extensions not available on the current machine.

OP, how old is your CPU? And how old is the nic you are using?

Edit: ~~did you use a custom driver for the NIC? I'm looking at the Linux src and rt_mutex_schedule does not exist.~~ Nevermind. Was checking 4.18 instead of 6.7. found it now. The bug is most likely inside a macro called preempt_disable(). Unfortunately most of the functions are pretty heavily inlined and architecture dependent so you won't get much out of it. But it is likely any changes you made in terms of premption might also be causing the bug.

[–] mvirts@lemmy.world 1 points 9 months ago (1 children)

It's a 3770k... So super old? 😅 The USB nic is this guy: CF-953AX https://a.aliexpress.com/_mNfj796

Maybe I should set up a config that doesn't use a preemptable kernel for when I want faster wifi :P

Maybe this is my chance to actually fix something kernel related

Thanks for taking a look at this, your comments are super helpful.

[–] stardreamer@lemmy.blahaj.zone 2 points 9 months ago (1 children)

My suggestion would be to try compiling the kernel locally.its highly likely the one packaged in your distro contains extensions that you don't have. Doing a local native compile should rule that out pretty quickly without having to disable any additional features.

[–] mvirts@lemmy.world 1 points 9 months ago

Looks like dmesg isn't being logged to disk... But I made my font smaller 😹 Definitely more to go on there, this happened while playing Minecraft with a small human so I didn't dig into it yet. I'm pretty sure the kernel I'm running was built by a derivation that applies some preempt patches so I'll start there. Ubuntu works fine with the adapter, but it's also not a preemptable kernel.