Bug 217083
Summary: | Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 | ||
---|---|---|---|
Product: | Other | Reporter: | Valerio Vanni (valerio.vanni) |
Component: | Other | Assignee: | other_other |
Status: | NEW --- | ||
Severity: | high | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg caught with serial console
kernel config |
Description
Valerio Vanni
2023-02-24 17:23:54 UTC
Created attachment 303781 [details]
dmesg caught with serial console
Created attachment 303782 [details]
kernel config
I use serial console to collect diagnostic data, but now I've found that it misses lines. In kernel boot line I put "console=ttyS0 console=tty0" so I get both local and serial console. But the issue is: tty0 shows more messages. Is there a way to get everything also on ttyS0? It would be useful, since you cant' scroll tty0 after a kernel panic. When kernel loads, tty0 scrolls very fast. I could see some more line but wasn't able to read. The only way I found was adding a (slow) speed to ttyS0, "console=ttyS0,1200" on kernel boot line. This slowed down ttyS0, and tty0 was forced to go at the same pace. So I could read a line (only on tty0), between "Run /sbin/init as init process" and start of kernel panic. That line complained that it could not find something in /usr/lib/.... At that stage, /usr was not mounted yet. Then I restored full disk image on the machine, an before upgrading from stretch to buster I merged / and /usr, so that /usr/lib/... was available from / mount. After that, kernel panic did not show anymore. Missing file was /usr/lib/x86_64-linux-gnu/libseccomp.so.2. Maybe we can close this bug report. Is it expected that a missing file triggers a kernel panic? |