Zbigniew Jędrzejewski-Szmek
143f5911b1
core: when skipping state deserializing units, also skip job subsections ( #41957 )
...
If a unit has active jobs, when it gets serialized there are job
subsections, each with their own empty line marker. The skipping
function ignores this and skips until the marker, but then leaves
the job in place, breaking deserialization.
Consume jobs subsections too.
This shows up now that there's TEST-07-PID1.alias-corruption,
which occasionally fails when the aliased unit happens to
still have a job when the reexec happens.
```
[ 967.551630] TEST-07-PID1.sh[179]: + echo 'Testing with: systemctl daemon-reexec'
[ 967.551630] TEST-07-PID1.sh[179]: Testing with: systemctl daemon-reexec
[ 968.405274] TEST-07-PID1.sh[179]: + echo '--- Attempt 1/3 ---'
[ 968.405274] TEST-07-PID1.sh[179]: --- Attempt 1/3 ---
[ 968.698641] TEST-07-PID1.sh[179]: + echo 'Running daemon-reexec...'
[ 968.698641] TEST-07-PID1.sh[179]: Running daemon-reexec...
[ 969.130261] TEST-07-PID1.sh[179]: + echo 'legit.service PID remains 1282. Attempt 1 passed.'
[ 969.130261] TEST-07-PID1.sh[179]: legit.service PID remains 1282. Attempt 1 passed.
[ 970.870456] TEST-07-PID1.sh[179]: + echo '--- Attempt 2/3 ---'
[ 970.870456] TEST-07-PID1.sh[179]: --- Attempt 2/3 ---
[ 971.267205] TEST-07-PID1.sh[179]: + echo 'Running daemon-reexec...'
[ 971.267205] TEST-07-PID1.sh[179]: Running daemon-reexec...
[ 971.715743] TEST-07-PID1.sh[179]: + echo 'legit.service PID changed from 1282 to 1643!'
[ 971.715743] TEST-07-PID1.sh[179]: legit.service PID changed from 1282 to 1643!
```
https://github.com/systemd/systemd/actions/runs/25376867873/job/74414201255
2026-05-12 17:12:59 +02:00
..
2025-12-07 09:09:03 +09:00
2025-11-04 15:53:23 +00:00
2025-07-13 05:49:00 +09:00
2026-04-02 18:08:25 +02:00
2025-12-07 09:09:03 +09:00
2026-04-20 09:37:13 +02:00
2025-12-10 12:09:10 +01:00
2025-11-07 21:35:45 +00:00
2025-08-01 05:42:51 +09:00
2025-07-10 13:37:07 +09:00
2026-02-06 15:15:10 +09:00
2026-01-30 09:30:20 -05:00
2026-05-08 12:01:06 +01:00
2025-07-28 16:29:31 +09:00
2026-05-04 14:30:03 +01:00
2026-04-09 22:39:11 +02:00
2026-05-05 10:45:04 +02:00
2026-05-06 13:02:38 +01:00
2026-04-02 22:58:19 +09:00
2026-02-22 15:13:02 +01:00
2026-05-05 10:37:13 +02:00
2026-02-19 15:08:20 +01:00
2026-04-14 20:35:24 +02:00
2025-09-23 15:48:53 +01:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-12-18 00:19:09 +01:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-11-17 16:50:50 +01:00
2025-11-17 16:50:50 +01:00
2025-07-24 16:35:45 +02:00
2026-03-11 18:09:27 +01:00
2025-09-23 15:48:53 +01:00
2025-09-04 10:58:33 +09:00
2025-06-21 02:22:28 +09:00
2025-11-17 16:50:50 +01:00
2025-12-07 09:09:03 +09:00
2025-09-26 07:20:04 +09:00
2025-07-24 20:55:10 +09:00
2025-12-10 12:09:10 +01:00
2025-09-23 15:48:53 +01:00
2025-12-09 14:41:59 +09:00
2026-01-23 19:29:48 +01:00
2025-12-07 09:09:03 +09:00
2025-07-03 19:35:33 +02:00
2025-09-26 07:20:04 +09:00
2026-05-05 11:53:01 +01:00
2026-05-11 10:59:00 +02:00
2026-05-06 12:04:51 +01:00
2025-10-28 13:26:15 +00:00
2026-04-14 20:35:24 +02:00
2026-01-06 03:26:15 -08:00
2025-12-07 09:09:03 +09:00
2025-09-23 15:48:53 +01:00
2026-05-08 18:05:03 +01:00
2025-12-21 20:31:24 +01:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2026-04-21 16:19:47 +01:00
2026-04-14 20:35:24 +02:00
2026-05-03 16:00:44 +02:00
2025-12-07 09:10:29 +09:00
2026-02-19 15:08:20 +01:00
2026-04-16 13:29:33 +02:00
2026-01-18 14:14:24 +09:00
2025-12-07 09:09:03 +09:00
2025-11-17 16:50:50 +01:00
2026-01-14 16:32:38 +01:00
2026-02-15 12:51:00 +00:00
2026-01-14 16:32:38 +01:00
2026-02-15 12:51:00 +00:00
2025-12-10 12:09:10 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2025-12-10 12:09:10 +01:00
2026-02-06 18:19:33 +01:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2026-02-11 11:24:37 +01:00
2026-01-14 16:32:38 +01:00
2025-09-26 09:28:12 +09:00
2025-09-26 07:20:04 +09:00
2025-09-23 15:48:53 +01:00
2026-03-11 03:36:21 +09:00
2025-09-05 08:29:52 +02:00
2026-03-18 14:58:43 +01:00
2025-11-17 16:50:50 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2026-05-09 11:36:55 +02:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-11-17 16:50:50 +01:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-05-29 05:41:29 +09:00
2025-12-07 09:09:03 +09:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2026-01-16 22:56:28 +09:00
2026-05-03 15:57:25 +02:00
2026-02-12 23:20:47 +00:00
2026-03-03 09:38:36 +01:00
2026-01-14 16:32:38 +01:00
2026-01-21 15:09:46 +01:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-12-10 12:09:10 +01:00
2026-05-05 17:22:26 +02:00
2025-09-26 07:20:04 +09:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2025-09-02 09:38:51 +01:00
2026-05-08 17:15:57 +02:00
2025-09-23 15:48:53 +01:00
2026-04-03 19:13:24 +02:00
2025-12-18 09:12:54 +01:00
2026-02-24 18:29:37 +01:00
2026-03-19 22:36:57 +08:00
2026-02-04 00:05:24 +01:00
2025-09-26 07:20:04 +09:00
2026-01-30 09:30:20 -05:00
2026-05-05 17:22:26 +02:00
2026-01-30 09:30:20 -05:00
2026-05-11 10:57:46 +02:00
2025-09-24 09:52:36 +02:00
2026-03-26 16:00:42 +01:00
2026-02-09 02:05:57 +01:00
2026-05-11 11:15:35 +02:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-11-17 16:50:50 +01:00
2026-05-05 15:56:37 +01:00
2025-12-18 09:12:54 +01:00
2025-09-26 07:20:04 +09:00
2026-05-11 14:37:08 +01:00
2025-09-26 07:20:04 +09:00
2025-09-23 15:48:53 +01:00
2026-05-03 18:08:33 +01:00
2026-05-03 18:08:33 +01:00
2026-05-05 11:10:25 +02:00
2026-05-03 18:08:33 +01:00
2026-05-05 11:53:36 +01:00
2026-05-03 18:08:33 +01:00
2026-05-03 18:08:33 +01:00
2025-12-16 21:10:12 +00:00
2026-03-18 20:47:00 +00:00
2026-04-24 15:29:54 +01:00
2025-06-23 15:32:11 +02:00
2025-09-23 15:48:53 +01:00
2026-04-14 14:54:32 +01:00
2026-04-04 18:18:30 +01:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2026-03-26 16:13:11 +01:00
2025-12-18 13:57:32 +01:00
2025-09-26 09:42:13 +02:00
2025-11-17 16:50:50 +01:00
2025-07-23 22:11:42 +09:00
2026-04-20 15:01:17 +01:00
2025-09-23 15:48:53 +01:00
2026-05-12 11:18:50 +01:00
2025-11-05 02:53:05 +09:00
2025-10-23 11:56:26 +01:00
2026-03-20 09:37:24 +01:00
2025-10-04 23:00:31 +02:00
2026-03-06 18:39:01 +01:00
2026-05-11 04:32:14 -07:00
2025-09-23 15:48:53 +01:00
2026-05-07 14:36:00 +02:00
2025-09-26 07:20:04 +09:00
2026-04-09 22:47:10 +02:00
2025-12-10 12:09:10 +01:00
2025-09-18 20:22:42 +02:00
2025-07-23 08:35:51 +09:00
2025-09-23 15:48:53 +01:00
2025-12-15 18:20:53 +09:00
2025-05-29 01:15:56 +01:00
2026-05-03 18:08:33 +01:00
2026-05-06 10:30:17 +02:00
2026-05-01 07:10:31 +02:00
2026-03-18 10:27:27 +00:00
2025-11-07 14:12:56 +01:00
2026-02-06 18:19:33 +01:00
2026-05-05 17:22:26 +02:00
2025-09-04 02:05:09 +09:00
2026-04-29 12:26:52 +02:00
2025-10-06 04:55:25 +09:00
2026-05-05 15:09:47 +02:00
2025-12-10 12:09:10 +01:00
2026-04-15 10:14:48 +02:00
2026-04-15 10:14:48 +02:00
2026-03-12 13:40:05 +00:00
2026-02-23 02:55:38 +01:00
2026-04-15 10:14:48 +02:00