Luca Boccassi
8ff7a5cd09
journalctl: don't assert on MESSAGE field without "MESSAGE=" prefix
sd_journal_get_data() can return a MESSAGE data object whose payload does
not start with "MESSAGE=", e.g. when the journal file is corrupted. Instead
of aborting the whole process, log and skip over such an entry like we do for
other bad/missing fields.
[ 87.287390] post.sh[1619]: + journalctl -q -o short-monotonic --grep 'didn'\''t pass validation'
[ 87.287844] post.sh[1620]: + grep -v test-varlink-idl
[ 87.325676] post.sh[1619]: Assertion 'message = startswith(message, "MESSAGE=")' failed at src/journal/journalctl-show.c:261, function show(). Aborting.
#0 0x00007fb47b49a29c n/a (libc.so.6 + 0x9a29c)
#1 0x00007fb47b43e7d0 raise (libc.so.6 + 0x3e7d0)
#2 0x00007fb47b425681 abort (libc.so.6 + 0x25681)
#3 0x00007fb47b8a1ace log_assert_failed (libsystemd-shared-261~rc2.so + 0xa1ace)
#4 0x000055f8e1ef9ddb show (journalctl + 0xcddb)
#5 0x000055f8e1efa6ee action_show (journalctl + 0xd6ee)
#6 0x000055f8e1ef3c20 run (journalctl + 0x6c20)
#7 0x00007fb47b427741 n/a (libc.so.6 + 0x27741)
#8 0x00007fb47b427879 __libc_start_main (libc.so.6 + 0x27879)
#9 0x000055f8e1ef4915 _start (journalctl + 0x7915)
Co-developed-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 23:02:25 +01:00
..
2026-04-30 11:12:33 +01:00
2026-04-30 11:12:33 +01:00
2026-02-03 21:43:17 +09:00
2026-02-03 21:43:17 +09:00
2026-02-03 21:43:17 +09:00
2025-12-15 08:50:13 +09:00
2025-12-15 08:50:13 +09:00
2026-03-05 01:01:33 +01:00
2026-02-23 10:43:00 +01:00
2025-12-15 08:50:13 +09:00
2026-05-31 23:02:25 +01:00
2026-02-23 10:43:00 +01:00
2026-02-23 10:43:00 +01:00
2026-03-29 20:32:15 +02:00
2026-02-21 13:02:38 +01:00
2026-05-12 15:29:51 +02:00
2026-05-12 22:39:21 +02:00
2026-05-12 15:29:51 +02:00
2026-03-30 13:36:00 +02:00
2025-12-15 08:50:13 +09:00
2026-01-02 04:05:45 +09:00
2026-05-11 12:04:02 +02:00
2026-02-03 21:43:17 +09:00
2026-02-03 21:43:17 +09:00
2026-02-03 21:55:49 +09:00
2026-04-12 15:27:15 +02:00
2025-11-26 19:02:31 +09:00
2026-04-12 16:10:03 +02:00
2026-02-03 21:43:17 +09:00
2026-03-30 13:11:25 +01:00
2026-02-03 21:55:49 +09:00
2026-02-03 21:55:49 +09:00
2026-02-21 13:02:38 +01:00
2025-12-15 08:50:13 +09:00
2026-05-18 21:17:38 +00:00
2026-02-03 21:55:49 +09:00