On Thu, 24 Jun 2021 12:55:34 +0100, Grimble wrote:
On 23/06/2021 17:41, Bit Twister wrote:
On Wed, 23 Jun 2021 14:56:33 +0100, Grimble wrote:
I noticed several of the 5.10.43
files in /boot, such as vmlinuz- and sysvers- were 0 B.
Then those are failures. /boot should look something like this snippet:
239K Jun 11 02:33 config-5.10.43-desktop-1.mga8
4.0K Dec 26 08:34 dracut
4.0K Jun 14 09:21 grub2
17M Jun 14 09:12 initrd-5.10.43-desktop-1.mga8.img
33 Jun 14 09:13 initrd-desktop.img -> initrd-5.10.43-desktop-1.mga8.img >> 33 Jun 14 09:13 initrd.img -> initrd-5.10.43-desktop-1.mga8.img
193K Jun 11 02:33 symvers-5.10.43-desktop-1.mga8.xz
4.8M Jun 11 02:33 System.map-5.10.43-desktop-1.mga8
30 Jun 14 09:13 vmlinuz -> vmlinuz-5.10.43-desktop-1.mga8
7.7M Jun 11 02:33 vmlinuz-5.10.43-desktop-1.mga8
30 Jun 14 09:13 vmlinuz-desktop -> vmlinuz-5.10.43-desktop-1.mga8
Thanks, Bit. Fortunately 5.10.45 installed without problems.
Well that is a step forward. Since the old kernels did not compile you
might consider using mcc to remove them.
However,
we're still trying to find the root cause of this instability.
Yes I have been following the thread. Maybe enabling core dump might give
you a chance to find out why.
$ cat enable_coredump.txt
#*********** start of enable_coredump.txt ****************************
# following are instructions for enabling core dumps.
#
# "ulimit -c unlimited" has to executed during login either by
# each user in $HOME/.bash_profile or $HOME/.bashrc or globally
# for everyone. The following is globally.
# As root, paste the following in a root terminal:
echo '#!/bin/bash
# Enable core dump for each user
ulimit -c unlimited
#***** end of /etc/profile.d/xx_enable_coredump.sh
' > /etc/profile.d/xx_enable_coredump.sh
echo '#!/bin/csh
# Enable core dump for each user
ulimit -c unlimited
#***** end of /etc/profile.d/xx_enable_coredump.csh
' > /etc/profile.d/xx_enable_coredump.csh
chmod +x /etc/profile.d/xx_enable_coredump.sh
chmod +x /etc/profile.d/xx_enable_coredump.csh
#****************************************************************
# you need to make sysctl changes, as root, paste the following: #****************************************************************
mkdir --parents /etc/sysctl.d/
echo '#**** start of /etc/sysctl.d/xx_enable_coredump.conf
# enable System Request debugging functionality of the kernel
kernel.sysrq = 1
# Enabling suid dump PID appending and set core location and name
kernel.core_uses_pid = 1
kernel.core_pattern = /var/tmp/%e_%p_%s.core
fs.suid_dumpable = 2
#********* end of /etc/sysctl.d/xx_enable_coredump.conf *********
' > /etc/sysctl.d/xx_enable_coredump.conf
#***********************************************
# reload all sysctl changes with the following: #***********************************************
sysctl -a
#**************************************************
# add any/all users to the systemd-coredump group #**************************************************
while read -r line; do
set -- $(IFS=':' ; echo $line)
usermod --append --groups systemd-coredump $1
done < <(grep /home/ /etc/passwd)
#******************************************************************
# users have to log out/in to pick up the new systemd-coredump group.
# verify user can create a core dump, In a user terminal run #******************************************************************
firefox &
pkill --signal SIGSEGV --full firefox
ls -Al /var/tmp/
rm /var/tmp/*firefox*.core
#*******************************************************************
# When a user launches a terminal, $HOME/.bashrc is normally executed.
# I can recommend adding a command to check for core files. I also have
# a hourly cron job to warn about core files. #*******************************************************************
------8<------8<------8<--cut below this line ----8<------8<
#!/bin/bash
#********************* start ck_4_core *******************************
for _d in $HOME /tmp /var/tmp /var/lib/systemd/coredump ; do
_cnt=$(ls $_d/*core* 2> /dev/null | wc -l)
if [ $_cnt -gt 0 ] ; then
echo " "
ls -la $_d/*core*
echo "
# from $(hostname --short) ck_4_core
# There is a $_d/*core file. To remove it, run
rm --force $_d/*core*
"
fi
done
#*************** end ck_4_core **************************************** ------8<------8<------8<--cut above this line ----8<------8<
Do remember to set execute bit on ck_4_core.
chmod +x ck_4_core
#*********** end of enable_coredump.txt ******************************
--- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
* Origin: A noiseless patient Spider (2:250/1@fidonet)