DLR-FT / a653rs-linux

Apache License 2.0
3 stars 1 forks source link

fix crash on partition without any process #112

Closed wucke13 closed 7 months ago

wucke13 commented 8 months ago

I just got the following crash, which should not happen IMHO:

 TRACE a653rs_linux_hypervisor > parsing args
 TRACE a653rs_linux_hypervisor > My pid is 84802
 INFO  a653rs_linux_hypervisor > parsing config
 INFO  a653rs_linux_hypervisor > Start Hypervisor
 TRACE a653rs_linux_core::file > Create TempFile "system_time"
 TRACE a653rs_linux_core::cgroup > Create cgroup "linux-hypervisor-84802"
 TRACE a653rs_linux_core::cgroup > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802
 TRACE a653rs_linux_core::cgroup > Create cgroup "Foo"
 TRACE a653rs_linux_core::cgroup > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_hypervisor::hypervisor::partition > CGroup Working directory: "/tmp/.tmpXMIG8J"
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Create new "Run" for "Foo" partition
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "processes"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "main"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/main
 TRACE a653rs_linux_core::cgroup                      > Change type of /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/main to threaded
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "periodic"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/periodic
 TRACE a653rs_linux_core::cgroup                      > Change type of /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/periodic to threaded
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "aperiodic"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/aperiodic
 TRACE a653rs_linux_core::cgroup                      > Change type of /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/aperiodic to threaded
 TRACE a653rs_linux_core::file                        > Create TempFile "operation_mode"
 DEBUG a653rs_linux_hypervisor::hypervisor::partition > Successfully created Partition Foo. Main Pid: 84806
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "Bar"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_hypervisor::hypervisor::partition > CGroup Working directory: "/tmp/.tmpUwLmw4"
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Create new "Run" for "Bar" partition
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "processes"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "main"
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 0, mode: 0700, target: Path("/dev/pts/3") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 1, mode: 0700, target: Path("/dev/pts/3") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 2, mode: 0700, target: Path("/dev/pts/3") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 3, mode: 00, target: Path("/proc/84802") })
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/main
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 4, mode: 0500, target: Path("/home/zaes_wa/documents/projects/a653rs-linux/examples/hello_part_no_macros.yaml") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 5, mode: 0700, target: MemFD("system_time (deleted)") })
 TRACE a653rs_linux_core::cgroup                      > Change type of /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/main to threaded
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 6, mode: 0700, target: MemFD("sampling_Foo:Hello_source (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 7, mode: 0700, target: MemFD("sampling_Foo:Hello_destination (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 8, mode: 0700, target: Socket(352867) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 9, mode: 0700, target: MemFD("operation_mode (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 10, mode: 0700, target: Socket(352868) })
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "periodic"
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 11, mode: 0700, target: Socket(352869) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 12, mode: 0700, target: Socket(352870) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 13, mode: 0700, target: Socket(352871) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 14, mode: 0500, target: Path("/sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 15, mode: 00, target: Path("/proc/84806") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 16, mode: 0500, target: Path("/proc/84806/fd") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 17, mode: 0500, target: Path("/proc/84806/fd") })
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/periodic
 TRACE a653rs_linux_core::cgroup                      > Change type of /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/periodic to threaded
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 3
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 4
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 7
 TRACE a653rs_linux_core::cgroup                      > Create cgroup "aperiodic"
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 8
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 10
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 12
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 14
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 15
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 16
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/aperiodic
 DEBUG a653rs_linux_hypervisor::hypervisor::partition > mounting FileMounter { source: None, target: "", fstype: Some("tmpfs"), flags: MsFlags(0x0), data: Some("size=500000"), is_dir: true }
 TRACE a653rs_linux_core::cgroup                      > Change type of /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/aperiodic to threaded
""
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpXMIG8J/tmpfs/
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("target/x86_64-unknown-linux-musl/release/hello_part_no_macros"), target: "/bin", fstype: None, flags: MsFlags(MS_RDONLY | MS_BIND), data: None, is_dir: false }
"bin"
 TRACE a653rs_linux_core::file                        > Create TempFile "operation_mode"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpXMIG8J/tmpfs
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating file /tmp/.tmpXMIG8J/tmpfs/bin
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("/dev/null"), target: "/dev/null", fstype: None, flags: MsFlags(MS_RDONLY | MS_BIND), data: None, is_dir: false }
"dev/null"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpXMIG8J/tmpfs/dev
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating file /tmp/.tmpXMIG8J/tmpfs/dev/null
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("/proc"), target: "/proc", fstype: Some("proc"), flags: MsFlags(0x0), data: None, is_dir: true }
"proc"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpXMIG8J/tmpfs/proc
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: None, target: "/sys/fs/cgroup", fstype: Some("cgroup2"), flags: MsFlags(0x0), data: None, is_dir: true }
"sys/fs/cgroup"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpXMIG8J/tmpfs/sys/fs/cgroup
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("/tmp/.tmpXMIG8J/.inner/ipc"), target: ".inner/ipc", fstype: None, flags: MsFlags(MS_BIND), data: None, is_dir: false }
".inner/ipc"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpXMIG8J/tmpfs/.inner
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating file /tmp/.tmpXMIG8J/tmpfs/.inner/ipc
 TRACE a653rs_linux_core::cgroup                                > Import cgroup /sys/fs/cgroup/processes/main
 DEBUG a653rs_linux_hypervisor::hypervisor::partition > Successfully created Partition Bar. Main Pid: 84807
 TRACE a653rs_linux_core::cgroup                      > Move Pid(84802) to /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802
 TRACE a653rs_linux_core::cgroup                      > Unfreeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 0, mode: 0700, target: Path("/dev/pts/3") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 1, mode: 0700, target: Path("/dev/pts/3") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 2, mode: 0700, target: Path("/dev/pts/3") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 3, mode: 00, target: Path("/proc/84802") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 4, mode: 0500, target: Path("/home/zaes_wa/documents/projects/a653rs-linux/examples/hello_part_no_macros.yaml") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 5, mode: 0700, target: MemFD("system_time (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 6, mode: 0700, target: MemFD("sampling_Foo:Hello_source (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 7, mode: 0700, target: MemFD("sampling_Foo:Hello_destination (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 8, mode: 0700, target: Socket(352867) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 9, mode: 0700, target: MemFD("operation_mode (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 10, mode: 0700, target: Socket(352868) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 11, mode: 0700, target: Socket(352884) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 12, mode: 0700, target: Socket(352870) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 13, mode: 0700, target: MemFD("operation_mode (deleted)") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 14, mode: 0700, target: Socket(352885) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 15, mode: 0700, target: Socket(352886) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 16, mode: 0700, target: Socket(352887) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 17, mode: 0700, target: Socket(352888) })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 18, mode: 0500, target: Path("/sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 19, mode: 00, target: Path("/proc/84807") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 20, mode: 0500, target: Path("/proc/84807/fd") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Open FD: Ok(FDInfo { fd: 21, mode: 0500, target: Path("/proc/84807/fd") })
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 3
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 4
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 6
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 8
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 9
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 10
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 11
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 12
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 14
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 16
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 18
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 19
 TRACE Partition: Foo                                 > Got Memfd from 9. Seals: Ok({SealGrow, SealShrink})
 TRACE a653rs_linux_hypervisor::hypervisor::partition > Close FD: 20
 TRACE Partition: Foo                                 > read 4 bytes from memfd 9
 DEBUG a653rs_linux_hypervisor::hypervisor::partition > mounting FileMounter { source: None, target: "", fstype: Some("tmpfs"), flags: MsFlags(0x0), data: Some("size=500000"), is_dir: true }
 TRACE Partition: Foo                                 > read 4 bytes from memfd 9
""
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpUwLmw4/tmpfs/
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("target/x86_64-unknown-linux-musl/release/hello_part_no_macros"), target: "/bin", fstype: None, flags: MsFlags(MS_RDONLY | MS_BIND), data: None, is_dir: false }
"bin"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpUwLmw4/tmpfs
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating file /tmp/.tmpUwLmw4/tmpfs/bin
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("/dev/null"), target: "/dev/null", fstype: None, flags: MsFlags(MS_RDONLY | MS_BIND), data: None, is_dir: false }
"dev/null"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpUwLmw4/tmpfs/dev
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating file /tmp/.tmpUwLmw4/tmpfs/dev/null
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("/proc"), target: "/proc", fstype: Some("proc"), flags: MsFlags(0x0), data: None, is_dir: true }
"proc"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpUwLmw4/tmpfs/proc
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: None, target: "/sys/fs/cgroup", fstype: Some("cgroup2"), flags: MsFlags(0x0), data: None, is_dir: true }
 TRACE Partition: Foo                                 > Create TempFile "sampling_channels"
"sys/fs/cgroup"
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpUwLmw4/tmpfs/sys/fs/cgroup
 TRACE Partition: Foo                                 > read 776 bytes from memfd 4
 TRACE Partition: Foo                                 > Create New Process: "aperiodic"
 DEBUG a653rs_linux_hypervisor::hypervisor::partition           > mounting FileMounter { source: Some("/tmp/.tmpUwLmw4/.inner/ipc"), target: ".inner/ipc", fstype: None, flags: MsFlags(MS_BIND), data: None, is_dir: false }
".inner/ipc"
 TRACE Partition: Foo                                 > Created process "aperiodic" with id: 1
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating directory /tmp/.tmpUwLmw4/tmpfs/.inner
 TRACE a653rs_linux_hypervisor::hypervisor::partition::mounting > Creating file /tmp/.tmpUwLmw4/tmpfs/.inner/ipc
 TRACE Partition: Foo                                 > Create New Process: "periodic"
 TRACE Partition: Foo                                 > Created process "periodic" with id: 2
 TRACE Partition: Foo                                 > read 4 bytes from memfd 9
 DEBUG Partition: Foo                                 > Received Transition Request: Normal
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                      > Unfreeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/aperiodic
 TRACE a653rs_linux_core::cgroup                      > Unfreeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                                > Import cgroup /sys/fs/cgroup/processes/main
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                      > Unfreeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE Partition: Bar                                 > Got Memfd from 13. Seals: Ok({SealGrow, SealShrink})
 TRACE Partition: Bar                                 > read 4 bytes from memfd 13
 TRACE Partition: Bar                                 > read 4 bytes from memfd 13
 TRACE Partition: Bar                                 > Create TempFile "sampling_channels"
 TRACE Partition: Bar                                 > read 776 bytes from memfd 4
 TRACE Partition: Bar                                 > Create New Process: "aperiodic"
 TRACE Partition: Bar                                 > Created process "aperiodic" with id: 1
 TRACE Partition: Bar                                 > Create New Process: "periodic"
 TRACE Partition: Bar                                 > Created process "periodic" with id: 2
 TRACE Partition: Bar                                 > read 4 bytes from memfd 13
 DEBUG Partition: Bar                                 > Received Transition Request: Normal
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_core::cgroup                      > Unfreeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/aperiodic
 TRACE a653rs_linux_core::cgroup                      > Unfreeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_hypervisor::hypervisor            > freezing partition 0
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_hypervisor::hypervisor            > freezing partition 1
 TRACE a653rs_linux_core::cgroup                      > Freeze /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_hypervisor::hypervisor            > moving own process to previous cgroup "/sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope"
 TRACE a653rs_linux_core::cgroup                      > Import cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope
 TRACE a653rs_linux_core::cgroup                      > Move Pid(84802) to /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope
 TRACE a653rs_linux_hypervisor::hypervisor            > deleting partition 0
 TRACE a653rs_linux_core::cgroup                      > Remove /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                      > Kill /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                      > writing '1' to /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/cgroup.kill
 TRACE a653rs_linux_core::cgroup                      > Killing with a 1s timeout
 TRACE a653rs_linux_core::cgroup                      > Killed with a 1s timeout
 TRACE a653rs_linux_core::cgroup                      > Calling remove on /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/main
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/periodic
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes/aperiodic
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo/processes
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Foo
 TRACE a653rs_linux_hypervisor::hypervisor            > deleting partition 1
 TRACE a653rs_linux_core::cgroup                      > Remove /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_core::cgroup                      > Kill /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_core::cgroup                      > writing '1' to /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/cgroup.kill
 TRACE a653rs_linux_core::cgroup                      > Killing with a 1s timeout
 TRACE a653rs_linux_core::cgroup                      > Killed with a 1s timeout
 TRACE a653rs_linux_core::cgroup                      > Calling remove on /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/main
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/periodic
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes/aperiodic
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar/processes
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/Bar
 TRACE a653rs_linux_hypervisor::hypervisor            > deleting former own cgroup
 TRACE a653rs_linux_core::cgroup                      > Remove /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802
 TRACE a653rs_linux_core::cgroup                      > Kill /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802
 TRACE a653rs_linux_core::cgroup                      > writing '1' to /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802/cgroup.kill
 TRACE a653rs_linux_core::cgroup                      > Killing with a 1s timeout
 TRACE a653rs_linux_core::cgroup                      > Killed with a 1s timeout
 TRACE a653rs_linux_core::cgroup                      > Calling remove on /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802
 TRACE a653rs_linux_core::cgroup                      > Removing cgroup /sys/fs/cgroup/user.slice/user-138528.slice/user@138528.service/app.slice/run-rda2785e3a2324d53bd8809678b8d8385.scope/linux-hypervisor-84802
 TRACE a653rs_linux_hypervisor::hypervisor            > Hypervisor clean up took: 6.821366ms
 ERROR a653rs_linux_hypervisor                        > Panic: Partition, At least one periodic or aperiodic process is expected to exist
dadada commented 8 months ago

FYI this is the hello world example. Took me some time to read all that log.

dadada commented 8 months ago

systemd-run-example-hello_part works for me on the main branch. Could you provide more detailed instructions on how to reproduce the issue?

wucke13 commented 8 months ago

This was a copy of the hello_part example with all start process calls removed

wucke13 commented 8 months ago

Would we rather like a warn or a debug type log for when a partition window starts which has 0 processes scheduled?

wucke13 commented 8 months ago

Related PR: https://github.com/DLR-FT/a653rs-linux/pull/113