QuarkContainer / Quark

A secure container runtime with CRI/OCI interface
Apache License 2.0
324 stars 49 forks source link

Quark Panic from Quark/qvisor/src/qlib/kernel/fs/sys/devices.rs #1302

Closed chengchen666 closed 5 months ago

chengchen666 commented 5 months ago

Relates to recent change of commit 33d4bdf4b2c65c1605f69c31994f73ad59edbd36 and previous two. Quark panic because my machine does not have cluster thing.

ls /sys/devices/system/cpu/cpu0/topology/
core_cpus       core_id        core_siblings_list  die_cpus_list  package_cpus       physical_package_id  thread_siblings_list
core_cpus_list  core_siblings  die_cpus            die_id         package_cpus_list  thread_siblings

I just comment out these cluster_id, cluster_cpus and cluster_cpus_list thing, quark not works.

chengchen666 commented 5 months ago

Log file

[INFO] [0/18342] get signal 28, action is SignalFaultInfo { Signo: 1c, Errno: 0, Code: 80, _r: 0, addr: 0, lsb: 0 }
[ERROR] [0/23995] ReadContent for file /sys/devices/system/cpu/cpu0/topology/cluster_id open fail with error Os { code: 2, kind: NotFound, message: "No such file or directory" }
[Print] [3/4340140000|0] get panic : Some(called `Result::unwrap()` on an `Err` value: SysError(2))
[Print] [3/4340140000|0] panic occurred in file 'src/qlib/kernel/fs/sys/devices.rs' at line 96
[Print] [3/4340140000|0] ExceptionHandler frame is Frame {
    rbp: 0x434015e640,
    rsp: 0x434015e510,
    rip: 0x40000c7e10,
}
QuarkContainer commented 5 months ago

the issue fix has been merged with PR https://github.com/QuarkContainer/Quark/pull/1303.