r/voidlinux • u/BluebirdRelevant5762 • Sep 14 '26
Why does Void Linux generate core dumps?
Recently, I have noticed that Void Linux after every reboot and shutdown generates core dump files at the home directory with the following pattern: ./core.[number]. I don't really understand the logic behind these files, except that it might be a SEGFAULT somewhere, right? Are these dumps from last processes that weren't shut down properly?
I would be glad to hear your thoughts on what's potentially going on.
7
Upvotes
3
u/hopingforabetterpast Sep 14 '26
what does
file ~/core.*give you?2
u/Creative-Outside-350 Sep 15 '26
It is kind of normal. I had the same thing with wayland DEs I tested, like gnome. I never had suck issue with Sway though. I presume that it's because gnome expects systemd to do the thing, but it never does. I spend hours trying to find a proper solution, but never did. Neither will you find anything useful in this comment section. Non of those people know what you are talking about.
The "solution" I found: disable core dump generation entirely. I had no other segfaults other than some process related to wayland session. It was always the same thing. You may try the next:
To see for yourself what causes dum generation run
file [path_to_a_dump_file]To disable dump generation you need to do the following
sudo nano /etc/security/limits.confthen scroll to the bottom and change values for* soft core Nand* hard core Nto 0I hope it was helpful
2
u/bart9h Sep 14 '26
No. Core files are dump from a process that had crashed (like segfault). It is useful for debugging purposes. You could configure your shell to disable the generation of core dumps, but it is a good idea to find out what is causing them.