LibreOffice creates core.PID files at close

Every time i close LibreOffice I get a file e.g. core.389108 on a Debian system.

LibreOffice 24.8.4.2 480(Build:2)
Kernel: 6.12.10-1-siduction-amd64 x86_64
file core.*
core.389108: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from '/usr/lib/libreoffice/program/soffice.bin --calc --splash-pipe=5', real uid: 1000, effective uid: 1000, real gid: 1004, effective gid: 1004, execfn: '/usr/lib/libreoffice/program/soffice.bin', platform: 'x86_64'

I have no issues when I use the program. But the file is created for a specific reason.
Can someone help me to find the root cause for this error?

try with gdb : linux - getting stacktrace from core dump - Stack Overflow

I get the following output:

$ gdb core.389108
GNU gdb (Debian 16.1-1) 16.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/home/user/core.389108": not in executable format: file format not recognized
(gdb)

should be gdb yourlibreoffice.bin core...
please read the answer linked above :
image

yep, that’s the prompt.
then type : bt Enter

Sorry, I didn’t get that. Thanks for clarification.

$ gdb /usr/lib/libreoffice/program/soffice.bin core.389108 
...
Reading symbols from /usr/lib/libreoffice/program/soffice.bin...
(No debugging symbols found in /usr/lib/libreoffice/program/soffice.bin)

warning: File /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 doesn't match build-id from core-file during file-backed mapping processing

warning: File /usr/lib/x86_64-linux-gnu/libresolv.so.2 doesn't match build-id from core-file during file-backed mapping processing

warning: File /usr/lib/x86_64-linux-gnu/libm.so.6 doesn't match build-id from core-file during file-backed mapping processing

warning: File /usr/lib/x86_64-linux-gnu/libc.so.6 doesn't match build-id from core-file during file-backed mapping processing
[New LWP 389108]

warning: Build-id of /lib/x86_64-linux-gnu/libc.so.6 does not match core file.

warning: Build-id of /lib/x86_64-linux-gnu/libm.so.6 does not match core file.

warning: Build-id of /lib64/ld-linux-x86-64.so.2 does not match core file.

warning: Build-id of /lib/x86_64-linux-gnu/libresolv.so.2 does not match core file.

warning: Could not load shared library symbols for 4 libraries, e.g. /lib/x86_64-linux-gnu/libc.so.6.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `/usr/lib/libreoffice/program/soffice.bin --calc --splash-pipe=5'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fef853f80c4 in rtl_uString_release () from /usr/lib/libreoffice/program/libuno_sal.so.3
(gdb) bt
#0  0x00007fef853f80c4 in rtl_uString_release () from /usr/lib/libreoffice/program/libuno_sal.so.3
#1  0x00007fef82856cdf in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#2  0x00007fef7fe4c261 in ?? ()
#3  0x0000000000000bb8 in ?? ()
#4  0x000000010e824700 in ?? ()
#5  0x0000000000000000 in ?? ()
(gdb) 

looks similar to tdf#157042

maybe retry in Safe Mode.

I tried all options in Safe Mode. I disabled extensions, deleted my user profile and finally resetted to factory settings. None of them helped. I’m still getting new core.PID files every time I close LO.

I tried LO with a new user account. I don’t have the error there. So it is related to my user account. But I don’t know how to solve it.

depends if it’s the symptom or the root cause :
linux - Disabling core dumps for a certain user or shell session without root - Unix & Linux Stack Exchange

Ok, thanks. I disabled as you suggested.