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)

  • StarDreamer
    link
    English
    3
    edit-2
    5 months ago

    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.worldOP
      link
      fedilink
      15 months ago

      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
        link
        English
        25 months ago

        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.worldOP
          link
          fedilink
          15 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.