[Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
mathiraj
Posts: 31
Joined: 2009-03-08 05:51
Has thanked: 2 times
Been thanked: 2 times

[Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#1 Post by mathiraj »

Kernel 6.11.7 and 6.11.9 hangs intermittently while booting
Console displays the following message

[ 4.263746] sd 2:0:0:0: [sdb] No Caching mode page found
[ 4.263748] sd 2:0:0:0: [sdb] Assuming drive cache: write through

i have to hit Ctrl-Alt-Del to reboot. Most of the time the reboot, boots fine and doesn't hang.
Anyone else faced this?
Last edited by mathiraj on 2024-12-03 23:45, edited 5 times in total.

maloosheck
Posts: 28
Joined: 2011-10-09 15:12
Been thanked: 1 time

Re: [Testing - Trixie] Kernel 6.11.7 and 6.11.9 Intermittent hang

#2 Post by maloosheck »

Out of curiosity have you tried hitting Enter? Do you see the blinking cursor at the end of the line?

mathiraj
Posts: 31
Joined: 2009-03-08 05:51
Has thanked: 2 times
Been thanked: 2 times

Re: [Testing - Trixie] Kernel 6.11.7 and 6.11.9 Intermittent hang

#3 Post by mathiraj »

Actually it booted fine if i press enter.
I thought i was hanging and always did Ctrl-Alt-Del

Now my problem is i have a tablet pc that runs Debian testing. It doesn't have a physical keyboard. I use the on screen keyboard. So, i can't press enter when the kernel pauses with this message.

mathiraj
Posts: 31
Joined: 2009-03-08 05:51
Has thanked: 2 times
Been thanked: 2 times

Re: [Testing - Trixie] Kernel 6.11.7 and 6.11.9 Intermittent hang

#4 Post by mathiraj »

this is becoming an issue on systems without physical keyboard. any suggestions/solutions?

TiberiusKG
Posts: 46
Joined: 2024-08-02 14:08
Has thanked: 20 times
Been thanked: 7 times

Re: [Testing - Trixie] Kernel 6.11.7 and 6.11.9 Intermittent hang

#5 Post by TiberiusKG »

Do you have any physical side buttons except the power button on the edges of your tablet? If yes, it may be worth trying to press them. On my laptop, I can press any key except the power key to get past that occasional halt.

mathiraj
Posts: 31
Joined: 2009-03-08 05:51
Has thanked: 2 times
Been thanked: 2 times

Re: [Testing - Trixie] Kernel 6.11.7 and 6.11.9 Intermittent hang

#6 Post by mathiraj »

@TiberiusKG . thank you. pressing the volume button did the trick

kvdberg
Posts: 6
Joined: 2024-12-08 16:15

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#7 Post by kvdberg »

I have the same issue of intermittent hangs with Debian kernel 6.11.10 and Trixie, and yes, hitting Enter helps. Vanilla kernels (6.11, 6.12) always boot without this intervention so far, but sometimes slower than for instance with Bullseye.

[update] Well, today I had to hit Enter booting a vanilla kernel (6.12) with Trixie, so I guess it's got nothing to do with Debian kernels.[/update]
Last edited by kvdberg on 2024-12-10 08:21, edited 1 time in total.

mathiraj
Posts: 31
Joined: 2009-03-08 05:51
Has thanked: 2 times
Been thanked: 2 times

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#8 Post by mathiraj »

it is weird, why the kernel would stop and expect a keystroke to continue, though...

kvdberg
Posts: 6
Joined: 2024-12-08 16:15

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#9 Post by kvdberg »

It is. Maybe some kind of debug routine that runs randomly at boot time or after a set number of boots?

Aki
Global Moderator
Global Moderator
Posts: 4166
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 121 times
Been thanked: 559 times

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#10 Post by Aki »

Hello,
mathiraj wrote: 2024-12-08 20:38 it is weird, why the kernel would stop and expect a keystroke to continue, though...
It is not probably the kernel, but some script running after the kernel is started during boot.

You can add the "debug" option in the grub configuration to gather more informations in the journal log; i.e. in /etc/default/grub:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="debug"
Then, update the initramfs:

Code: Select all

sudo update-grub
Hope this helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

kvdberg
Posts: 6
Joined: 2024-12-08 16:15

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#11 Post by kvdberg »

According to this thread this behavior is also seen on sid and it's suggested there it might be related to an update of systemd (256.7-3 to 257~rc2-3). My systemd is at 257~rc3-1 and apparently the issue persists. I guess it will be ironed out in due time.
Last edited by kvdberg on 2024-12-10 22:00, edited 1 time in total.

TiberiusKG
Posts: 46
Joined: 2024-08-02 14:08
Has thanked: 20 times
Been thanked: 7 times

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#12 Post by TiberiusKG »

Since I suspect that the lines that follow after pressing a key (shown in cyan) are more relevant than the last line visible when halting, here they are, in the hope that they will be helpful for the people that can do something about it:

Code: Select all

[    4.585293] systemd-sysv-generator[497]: SysV service '/etc/init.d/preload' lacks a native systemd unit file, automatically generating a unit file for compatibility.
[    4.585302] systemd-sysv-generator[497]: Please update package to include a native systemd unit file.
[    4.585306] systemd-sysv-generator[497]: ! This compatibility logic is deprecated, expect removal soon. !

kvdberg
Posts: 6
Joined: 2024-12-08 16:15

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#13 Post by kvdberg »

This bug has caught the attention of the systemd maintainers, see https://github.com/systemd/systemd/issues/35499

kvdberg
Posts: 6
Joined: 2024-12-08 16:15

Re: [Testing - Trixie] [Solved] Kernel 6.11.7 and 6.11.9 Intermittent hang

#14 Post by kvdberg »

Now, with systemd at 257.1-4, the issue seems fixed.

Post Reply