SysAK (System Analyse Kit) is a system O&M toolkit for Alibaba Cloud Linux instances. A bug in SysAK 2.2.0 causes a segmentation fault whenever a DNF (Dandified YUM) command runs. Upgrade SysAK to resolve this.
A segmentation fault occurs when a program tries to access memory in violation of memory access rules.
Problem description
On an Alibaba Cloud Linux 2 or Alibaba Cloud Linux 3 instance with sysak-2.2.0-1.al7.x86_64.rpm installed, any dnf command returns the following error:
Segmentation faultCause
SysAK uses a YAML (YAML Ain't Markup Language) configuration file for initialization. To parse YAML, SysAK bundles a LibYAML .so dynamic link library in its own runtime environment instead of installing it into the system runtime environment. In SysAK 2.2.0, this bundled library is incorrectly exposed as a system-wide library. When DNF runs and loads its dependencies, it picks up this misidentified LibYAML library. Because DNF cannot use LibYAML through this path, the process crashes with a segmentation fault.
Solution
Upgrade SysAK to a version later than 2.2.0:
sudo yum update -y sysakAfter the upgrade completes, verify that the installed version is later than 2.2.0:
sudo rpm -qa sysakThe output should show a version number higher than 2.2.0.