Support Center > Search Results > SecureKnowledge Details
Core dump files are not compressed on Gaia OS after upgrading from SecurePlatform OS
Symptoms
  • Core dump files are generated as expected - /var/log/dump/usermode/*.core, but files are not compressed (*.core.gz).

  • Issue occurs on the machine that was upgraded from SecurePlatform OS to Gaia OS.

  • Issue does not occur on the machine with cleanly installed Gaia OS.
Cause

The following line is missing from the value of /proc/sys/kernel/core_pattern parameter:
|/etc/coredump/compress.sh

[Expert@Gaia]# cat /proc/sys/kernel/core_pattern
/var/log/dump/usermode/%e.%p.core
[Expert@Gaia]#

The /etc/sysctl.conf file contains the core dump pattern.
By design, during the upgrade, the /etc/sysctl.conf file is not changed (to keep the user's settings).

The kernel core dump pattern differs between SecurePlatform OS and Gaia OS:

  • On SecurePlatform OS:
    [Expert@SecurePlatform]# grep core_pattern /etc/sysctl.conf
    kernel.core_pattern = /var/log/dump/usermode/%e.%p.core
    [Expert@SecurePlatform]#
    
    [Expert@SecurePlatform]# cat /proc/sys/kernel/core_pattern
    /var/log/dump/usermode/%e.%p.core
    [Expert@SecurePlatform]#
    
  • On Gaia OS:
    [Expert@Gaia]# grep core_pattern /etc/sysctl.conf
    kernel.core_pattern = |/etc/coredump/compress.sh /var/log/dump/usermode/%e.%p.core
    [Expert@Gaia]#
    
    [Expert@Gaia]# cat /proc/sys/kernel/core_pattern
    |/etc/coredump/compress.sh /var/log/dump/usermode/%e.%p.core
    [Expert@Gaia]#
    

Solution
Note: To view this solution you need to Sign In .