I notice from time to time my $HOME directory has many .core files.
Some of the recent ones being:
adb.core
geany.core
pcmanfm.core
firefox128.core
rofi.core
rofi gdb backtrace:
$ gdb -ex "set pagination off" -ex "bt" -ex "quit" `which rofi`
rofi.core
...
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000018de2cdee in rofi_view_get_completed ()
--Type <RET> for more, q to quit, c to continue without paging--
[Current thread is 1 (process 9057)]
#0 0x000000018de2cdee in rofi_view_get_completed ()
#1 0x000000018de2e778 in rofi_view_maybe_update ()
#2 0x000000018de46d1c in ?? ()
#3 0x000000018de5981c in ?? ()
#4 0x00007856d6a545f5 in g_main_dispatch () from
/usr/pkg/lib/libglib-2.0.so.0
#5 0x00007856d6a5736f in g_main_context_iterate_unlocked.constprop ()
from /usr/pkg/lib/libglib-2.0.so.0
#6 0x00007856d6a57c60 in g_main_loop_run () from
/usr/pkg/lib/libglib-2.0.so.0
#7 0x000000018de5af65 in main ()
firefox128 gdb backtrace:
$ gdb -ex "set pagination off" -ex "bt" -ex "quit" `which firefox128`
firefox128.core
...
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000077984017eeea in ?? ()
[Current thread is 1 (process 12017)]
#0 0x000077984017eeea in ?? ()
#1 0x000077982b07f7b4 in ?? ()
#2 0x0000000000000400 in ?? ()
#3 0x0000000000000000 in ?? ()
I run startx from tty to run GUI WM. tty defaults to $HOME, so I assume
this is why they are created there. From my memory I can remember that
some of the programs those files are named of, crashed during use.
I couldn't find any documentation about this, so had to write here.
I have some questions:
1. Why are .core files created?
2. How can I disable creating .core files (without solving the crash)?
Is there any config somewhere, like FreeBSD's kern.coredump sysctl
switch?
3. How can I solve the issue so that there are no more crashes+*.core?
For #3 I have a feeling it might be something relating to limited RAM
given to programs by NetBSD in default setup. I was thinking if
login.conf can solve this? My /etc/login.conf is mostly commented
except I have a rule for tor. In case needed, dmesg on the machine
says:
avail memory = 3736 MB