Skip to content

Commit

Permalink
Catalog: Add entries for emergency log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
1awesomeJ committed Aug 17, 2023
1 parent 13f0082 commit 6648555
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
78 changes: 78 additions & 0 deletions catalog/systemd.catalog.in
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,84 @@ System factory reset has been initiated. The precise operation this
executes is implementation-defined, but typically has the effect of
reverting the system's state and configuration to vendor defaults.

--d9ec5e95e4b646aaaea2fd05214edbda
Subject: Exiting PID 1...
Defined-By: systemd
Support: %SUPPORT_URL%

When a program crashes, we want to either freeze or exit or reboot.
For containers we choose the option of exiting.
The details of the crash can be gotten from the container manager.

To fix:
Check the container manager for details.

-- 3ed0163e868a4417ab8b9e210407a96c
Subject: Failed to reboot
Defined-By: systemd
Support: %SUPPORT_URL%

Reboot has failed when a program attempted to reboot after a crash.

-- 645c735537634ae0a32b15a7c6cba7d4
Subject: Freezing execution
Defined-By: systemd
Support: %SUPPORT_URL%

If the instance is not a container, and the program isn't set to crash on reboot, its execution will be frozen whenever it crashes.

-- 5addb3a06a734d3396b794bf98fb2d01
Subject: Caught <signal>, not dumping core
Defined-By: systemd
Support: %SUPPORT_URL%

In the instance of a crash arising from corrupted memory. The signal caught is propagated, but the core is not dumped.

-- 5c9e98de4ab94c6a9d04d0ad793bd903
Subject: Caught <signal>, cannot fork for core dump
Defined-By: systemd
Support: %SUPPORT_URL%

-- 5e6f1f5e4db64a0eaee3368249d20b94
Subject: Caught <signal> from unknown sender process
Defined-By: systemd
Support: %SUPPORT_URL%

-- 83f84b35ee264f74a3896a9717af34cb
Subject: Caught <signal> from our own process
Defined-By: systemd
Support: %SUPPORT_URL%

-- 3a73a98baf5b4b199929e3226c0be783
Subject: Caught <signal> from <PID>
Defined-By: systemd
Support: %SUPPORT_URL%

-- 2ed18d4f78ca47f0a9bc25271c26adb4
Subject: Caught <signal>, waitpid() failed
Defined-By: systemd
Support: %SUPPORT_URL%

-- 56b1cd96f24246c5b607666fda952356
Subject: Caught <signal>, coredump failed (child <PID>, code=<code>, status=<status>.
Defined-By: systemd
Support: %SUPPORT_URL%

-- 4ac7566d4d7548f4981f629a28f0f829
Subject: Caught <signal>, dumped core as pid <PID>
Defined-By: systemd
Support: %SUPPORT_URL%

-- 38e8b1e039ad469291b18b44c553a5b7
Subject: Failed t fork off crash shell
Defined-By: systemd
Support: %SUPPORT_URL%

-- 872729b47dbe473eb768ccecd477beda
Subject: execle() failed
Defined-By: systemd
Support: %SUPPORT_URL%

-- 7d4958e842da4a758f6c1cdc7b36dcc5
Subject: A start job for unit @UNIT@ has begun execution
Defined-By: systemd
Expand Down
28 changes: 28 additions & 0 deletions src/systemd/sd-messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,34 @@ _SD_BEGIN_DECLARATIONS;
#define SD_MESSAGE_FACTORY_RESET SD_ID128_MAKE(c1,4a,af,76,ec,28,4a,5f,a1,f1,05,f8,8d,fb,06,1c)
#define SD_MESSAGE_FACTORY_RESET_STR SD_ID128_MAKE_STR(c1,4a,af,76,ec,28,4a,5f,a1,f1,05,f8,8d,fb,06,1c)

#define SD_MESSAGE_CRASH_EXIT SD_ID128_MAKE(d9,ec,5e,95,e4,b6,46,aa,ae,a2,fd,05,21,4e,db,da)
#define SD_MESSAGE_CRASH_EXIT_STR SD_ID128_MAKE_STR(d9,ec,5e,95,e4,b6,46,aa,ae,a2,fd,05,21,4e,db,da)
#define SD_MESSAGE_CRASH_FAILED SD_ID128_MAKE(3e,d0,16,3e,86,8a,44,17,ab,8b,9e,21,04,07,a9,6c)
#define SD_MESSAGE_CRASH_FAILED_STR SD_ID128_MAKE_STR(3e,d0,16,3e,86,8a,44,17,ab,8b,9e,21,04,07,a9,6c)
#define SD_MESSAGE_CRASH_FREEZE SD_ID128_MAKE(64,5c,73,55,37,63,4a,e0,a3,2b,15,a7,c6,cb,a7,d4)
#define SD_MESSAGE_CRASH_FREEZE_STR SD_ID128_MAKE_STR(64,5c,73,55,37,63,4a,e0,a3,2b,15,a7,c6,cb,a7,d4)

#define SD_MESSAGE_CRASH_NO_COREDUMP SD_ID128_MAKE(5a,dd,b3,a0,6a,73,4d,33,96,b7,94,bf,98,fb,2d,01)
#define SD_MESSAGE_CRASH_NO_COREDUMP_STR SD_ID128_MAKE_STR(5a,dd,b3,a0,6a,73,4d,33,96,b7,94,bf,98,fb,2d,01)
#define SD_MESSAGE_CRASH_NO_FORK SD_ID128_MAKE(5c,9e,98,de,4a,b9,4c,6a,9d,04,d0,ad,79,3b,d9,03)
#define SD_MESSAGE_CRASH_NO_FORK_STR SD_ID128_MAKE_STR(5c,9e,98,de,4a,b9,4c,6a,9d,04,d0,ad,79,3b,d9,03)
#define SD_MESSAGE_CRASH_UNKNOWN_SIGNAL SD_ID128_MAKE(5e,6f,1f,5e,4d,b6,4a,0e,ae,e3,36,82,49,d2,0b,94)
#define SD_MESSAGE_CRASH_UNKNOWN_SIGNAL_STR SD_ID128_MAKE_STR(5e,6f,1f,5e,4d,b6,4a,0e,ae,e3,36,82,49,d2,0b,94)
#define SD_MESSAGE_CRASH_SYSTEMD_SIGNAL SD_ID128_MAKE(83,f8,4b,35,ee,26,4f,74,a3,89,6a,97,17,af,34,cb)
#define SD_MESSAGE_CRASH_SYSTEMD_SIGNAL_STR SD_ID128_MAKE_STR(83,f8,4b,35,ee,26,4f,74,a3,89,6a,97,17,af,34,cb)
#define SD_MESSAGE_CRASH_PROCESS_SIGNAL SD_ID128_MAKE(3a,73,a9,8b,af,5b,4b,19,99,29,e3,22,6c,0b,e7,83)
#define SD_MESSAGE_CRASH_PROCESS_SIGNAL_STR SD_ID128_MAKE_STR(3a,73,a9,8b,af,5b,4b,19,99,29,e3,22,6c,0b,e7,83)
#define SD_MESSAGE_CRASH_WAITPID_FAILED SD_ID128_MAKE(2e,d1,8d,4f,78,ca,47,f0,a9,bc,25,27,1c,26,ad,b4)
#define SD_MESSAGE_CRASH_WAITPID_FAILED_STR SD_ID128_MAKE_STR(2e,d1,8d,4f,78,ca,47,f0,a9,bc,25,27,1c,26,ad,b4)
#define SD_MESSAGE_CRASH_COREDUMP_FAILED SD_ID128_MAKE(56,b1,cd,96,f2,42,46,c5,b6,07,66,6f,da,95,23,56)
#define SD_MESSAGE_CRASH_COREDUMP_FAILED_STR SD_ID128_MAKE_STR(56,b1,cd,96,f2,42,46,c5,b6,07,66,6f,da,95,23,56)
#define SD_MESSAGE_CRASH_COREDUMP_PID SD_ID128_MAKE(4a,c7,56,6d,4d,75,48,f4,98,1f,62,9a,28,f0,f8,29)
#define SD_MESSAGE_CRASH_COREDUMP_PID_STR SD_ID128_MAKE_STR(4a,c7,56,6d,4d,75,48,f4,98,1f,62,9a,28,f0,f8,29)
#define SD_MESSAGE_CRASH_SHELL_FORK_FAILED SD_ID128_MAKE(38,e8,b1,e0,39,ad,46,92,91,b1,8b,44,c5,53,a5,b7)
#define SD_MESSAGE_CRASH_SHELL_FORK_FAILED_STR SD_ID128_MAKE_STR(38,e8,b1,e0,39,ad,46,92,91,b1,8b,44,c5,53,a5,b7)
#define SD_MESSAGE_CRASH_EXECLE_FAILED SD_ID128_MAKE(87,27,29,b4,7d,be,47,3e,b7,68,cc,ec,d4,77,be,da)
#define SD_MESSAGE_CRASH_EXECLE_FAILED_STR SD_ID128_MAKE_STR(87,27,29,b4,7d,be,47,3e,b7,68,cc,ec,d4,77,be,da)

/* The messages below are actually about jobs, not really about units, the macros are misleadingly named.
* Moreover SD_MESSAGE_UNIT_FAILED is not actually about a failing unit but about a failed start job. A job
* either finishes with SD_MESSAGE_UNIT_STARTED or with SD_MESSAGE_UNIT_FAILED hence. */
Expand Down

0 comments on commit 6648555

Please sign in to comment.