Handling *.core files

I have numerous *.core files all over my system and have no intention of looking at them since I have no idea what to look for.

For some reason I believed that PERIODIC deleted them after some period.

Do I understand this correctly? And if so do I need to enable deletion of these files.

I've looked into the documentation but I must be missing something since they are not getting deleted.
 
the at-spi-bus-launcher process, clearly.

the fact that this is in the root directory implies that it's running as root. are you running your desktop environment as root? :S
 
I couldn't find a periodic cronjob that can delete .core files on my system. There are ways to prevent dumping of .core files, though. I use kern.corefile=/dev/null in /etc/sysctl.conf.
/etc/defaults/periodic.conf says daily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" but this requires, i think, that you enable daily_clean_disks_enable="YES" in /etc/periodic.conf — this is probably the cronjob that the OP was referring to.
 
Even if I do not intend to read *.core files, I still want to see them, because they show something is malfunctioning. So I send all the *.core files to a common place where I can find them, like so (in /etc/sysctl.conf):
kern.corefile=/var/tmp/%N.%U.%P.%I.core
 
/etc/defaults/periodic.conf says daily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" but this requires, i think, that you enable daily_clean_disks_enable="YES" in /etc/periodic.conf — this is probably the cronjob that the OP was referring to.
Ah, i might have missed this path with my grep(1)...
 
I couldn't find a periodic cronjob that can delete .core files on my system. There are ways to prevent dumping of .core files, though. I use kern.corefile=/dev/null in /etc/sysctl.conf.
In /etc/defaults/periodic.conf there is this section:-

Code:
# 100.clean-disks
daily_clean_disks_enable="NO"<-><------><------><------># Delete files daily
daily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*"
daily_clean_disks_days=3<------><------><------><------># If older than this
daily_clean_disks_verbose="YES"><------><------><------># Mention files deleted

Do I just need to change enable to "YES" for periodic to deal with *.core files ? And will it look for all such files on my local system?

I think I've been though this before but was never successful.
 
I couldn't find a periodic cronjob that can delete .core files on my system. There are ways to prevent dumping of .core files, though. I use kern.corefile=/dev/null in /etc/sysctl.conf.
Do you mean something like:


echo 'daily_clean_disks_enable="YES"' >> /etc/periodic.conf
 
Yes, /etc/defaults/periodic.conf relates to /etc/periodic.conf in the same way /etc/defaults/rc.conf does for /etc/rc.conf. You do not modify the files in /etc/defaults/, you put your changes in /etc/periodic.conf.
 
I looked at periodic() (not sure how to get this to reference (5)) and


and I'm not clear about what you need to do to simply overide enable="NO" with enable="YES".

Do I simply put this in /etc/periodic.conf ?

daily_clean_disks_enable="YES"

There is also some mention of a /etc/periodic.conf.local just to confuse things even more.
 
Even if I do not intend to read *.core files, I still want to see them, because they show something is malfunctioning. So I send all the *.core files to a common place where I can find them, like so (in /etc/sysctl.conf):
kern.corefile=/var/tmp/%N.%U.%P.%I.core

I think I will do the same here. I have a lot of *.core files when I was getting KDE Plasma Desktop 6 installed on the new 15.0 releases.

On a side note I stumbled onto an installer from the community. This installer is for KDE Plasma Desktop running on the new 15.0 releases. I’ll add it to the KDE development thread we have running in the forum.

I have not tested it myself but it looks sound and is recommended from the foundation and our little community

 
Even if I do not intend to read *.core files, I still want to see them, because they show something is malfunctioning. So I send all the *.core files to a common place where I can find them, like so (in /etc/sysctl.conf):
kern.corefile=/var/tmp/%N.%U.%P.%I.core
Is a reboot required for this to be taken into effect, or can you just restart somethng?
 
Back
Top