Questions tagged [core-dump]
A coredump represents the state of working memory of a Unix program at a specific time especially when the program has terminated abruptly.
160
questions
0
votes
0
answers
17
views
systemd-coredump service fills /run/systemd/propagate until out of inodes
On my SUSE Linux, huge amount of coredump service directories were observed under /run/systemd/propagate/, sample as below, as of now /run has been totally filled with those folders without any free ...
1
vote
0
answers
54
views
How to get symbolized call-stacks with coredumpctl info?
I am trying to enable systemd coredumps containing call stacks with function names when printed with coredumpctl info, so that I can get a call stack without using gdb and/or coredumpctl debug (since ...
0
votes
0
answers
111
views
How to compress coredump file in Linux
After changing the creation location of the coredump file using the core_pattern file, the coredump is not compressed.
Before changing the content of core_pattern, the content was |/usr/lib/systemd/...
0
votes
1
answer
22
views
Configure abrt to dump core file without root privileges
I run my program on a machine for which I do not have root privileges. The core file is supposed to be handled by abrt:
$ sysctl kernel.core_pattern
kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %...
5
votes
1
answer
385
views
How to remove entries in coredumpctl with missing corefile
For some reason coredumpctl keeps hoarding entries that don't have a corefile available any more. How can I clean these up so they don't clog the output?
1
vote
1
answer
376
views
Ubuntu RAM memory dump
I want to take memory dump of ubuntu machine using pyhton script without using LIME, AVML etc tools. I want to use linux inbuilt command like gcore.
After creating memory dump of all RAM processes I ...
1
vote
2
answers
80
views
Can't start Linux after deleting core dumps
My root partition had no space to the point that couldn't login.
So invoked Ctrl+Alt+F2 and ran to free disk space:
find / -xdev -name core -ls -o -path "/lib*" -delete
Now can't even ...
0
votes
1
answer
176
views
Solaris 11.4 Corefile Issues
I've been working with my client for some time now to try to determine some strange behaviours with core file generation on their Solaris SPARC systems.
Their current version of Solaris is 11.4-11.4....
0
votes
0
answers
130
views
How are coredumps from systemd watchdogs configured?
If I use the following systemd service file:
[Unit]
Description=description
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=60
ExecStart=/usr/bin/foo
WatchdogSec=1s
[Install]
...
0
votes
0
answers
111
views
What does this backtrace mean in dmesg
While running many short period threads for long time, I'm ended up with the crash. And it didn't produce coredump too. Can anybody give some insights on the below logging in dmesg.
Nov 29 19:02:34 (...
1
vote
0
answers
3k
views
How to generate a core dump in ubuntu (and where to find it)?
I have a program that throws a segmentation fault like:
Segmentation fault (core dumped)
but I cannot find a core dump file.
What I did:
Run ulimit -c unlimited
Run sudo systemctl enable apport
Run ...
0
votes
1
answer
89
views
Linux machine crashing on a daily basis, what does this kernel stacktrace mean?
The crash comes in the form of a total hang. No more control and screen freezes.
I grabbed a stacktrace on this machine using:
sudo journalctl -f
The last messages displayed are:
Nov 18 19:42:12 ...
0
votes
1
answer
426
views
How to dump the stack and heap of a running application to determine if zeroization is occuring?
I am trying to ensure that after the use of sensitive parameters, a program zero-es them from all active memory (stack and heap). The simple test I was hoping to perform was to dump the active memory ...
1
vote
1
answer
137
views
systemd-coredump - Invalid argument
I'm trying to force a core dump using systemd-coredump, however, when I check my journal I see the following error:
[email protected]: Failed at step NETWORK spawning /lib/systemd/...
1
vote
0
answers
75
views
Tracking down symbols used by library in binary ELF as listed in memory map
I have an application written in C++ that crashed during exit. The reason for the crash is understood, there are references to different versions of the same library mixed inside the executable. This ...
2
votes
2
answers
6k
views
Core dump not written on segmentation fault
I'm now reading The Shellcoder's Handbook: Discovering and Exploiting Security Holes, 2nd Edition.
In the second chapter considered the simple buffer overflow problem like this (C code):
int main () {
...
1
vote
0
answers
277
views
Is it possible to get each thread's `comm` from a core dump with gdb?
I wrote a C program that uses multiple threads.
For convenience I set the threads comm to some individual value for each thread, and that even might change depending on the state of the thread (a bit ...
0
votes
1
answer
359
views
OpenBSD core dump and /var size
I'm trying to figure out my partitioning
which leads to https://man.openbsd.org/disklabel#AUTOMATIC_DISK_ALLOCATION which says:
/var 13% of disk. 80M – 2x size of crash dump
But how do I ...
0
votes
1
answer
635
views
Disabling core dump for an already running process
We are dealing with a vendor's product, which has a nasty tendency to crash (with a massive core-dump) on shut down (upon receiving a SIGTERM).
We don't want to disable core-dumping for it completely, ...
0
votes
2
answers
475
views
How to execute a one-line posix dash command within dash script to enable coredump?
For unrelated purposes I am forced to produce a script that only works with posix sh.
Within my script I have checked if the system allows the creation of coredumps, then if the limit is set to 0 I ...
0
votes
1
answer
743
views
Disabling core-dumps, when filesystem is almost full
We make good use of the core-dumps and don't want to disable them completely. At the same time, we don't want them to fill up the filesystem.
Can Linux be told to disable them automatically, when the ...
0
votes
1
answer
1k
views
How core file ended up on my system when its limit was set to 0?
A file named core appeared on my desktop after a reboot. I checked it using file core and it seemed that it was created by VLC. The strange thing is when I checked the limit on core files' size using ...
3
votes
1
answer
7k
views
Core Dump file cannot be found on Linux system
1
I looked at the similar topic for issue when trying to find Core Dumped file but none of the solutions seem to work for me. Can someone help me in debugging. My application generates output in log ...
1
vote
0
answers
135
views
Load a core dump continue running
I can create a coredump as a snapshot of a process's image and continue running.
Can I then, on another run of the program load the coredump and continue at that same point in time? If so how?
...
1
vote
0
answers
165
views
Coredump during login (before password)
After rebooting my laptop, I am asked for a login archlinux login:, and I can fill a username, but then the screen simply redraws, instead of asking for a password.
Booting from a live USB and using ...
1
vote
0
answers
106
views
How to reinvoke systemd-coredump with an existing coredump file
The core_pattern on my system is |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %e.
When one of my binaries crashed, the system rebooted before systemd-coredump could complete its processing of the ...
1
vote
1
answer
4k
views
Enabling core files on CentOS 8.1
I am trying to debug a broken application that renders X11 windows. I am running CentOS 8.1.
I have followed the instructions per Redhat on enabling core dumps.
I have enabled DefaultLimitCORE=...
0
votes
1
answer
592
views
In what form of ELF is a core dump file?
https://en.wikipedia.org/wiki/Executable_and_Linkable_Format mentions core dumps.
In what form of ELF is a core dump file? Relocatable, executable, or shared?
CSAPP says
7.3 Object Files
Object files ...
3
votes
1
answer
636
views
What is core file in Debian?
My Debian laptop became unresponsive and I decided to force poweroff. After booting, I found a core file in my home directory. What is it and how can I use it? I guess that it is some sort of memory ...
2
votes
1
answer
4k
views
/tmp full but... empty
In a Python program, I use np.memmaps, which make use of the /tmp directory to handle massive arrays.
I make sure to clear /tmpregularly by running rm -rf /tmp/* every time I use this code. However ...
1
vote
1
answer
1k
views
Apport not receiving coredumps from Docker containers
If a program crashes inside a Docker container and reports "core dumped", no core dump is actually created. Instead, there's just an entry in /var/log/apport.log saying sth. like host pid 21500 ...
2
votes
1
answer
2k
views
coredumpctl on Ubuntu 19
After updating my system to Ubuntu 19.04 I can't seem to find the systemd coredumpctl program. If anybody knows how to find it and/or some alternatives I would appreciate it. I use the program for ...
4
votes
0
answers
2k
views
Core file may or may not escape docker container, depending on the core pattern
I am a docker noob who recently ran into a problem. I quote a random pipermail from years ago that poses the question far more elegantly than I ever could:
I noticed the following core_pattern ...
3
votes
2
answers
769
views
How can I find which dbgsym packages I need to obtain symbolic stack traces?
I have a core file on a Debian system. I want to obtain a complete list of all debug symbol packages needed to generate a symbolic stack trace from that core dump.
By what means can I generate such a ...
0
votes
1
answer
801
views
Blender fails to launch - Floating Point Exception (Core Dumped)
I am new to Linux so excuse my noob. I haven't been able to find an answer for this anywhere nor have I even found anyone with a similar problem and no one on discord has an answer either.. I am ...
1
vote
1
answer
4k
views
"coredumpctl" cannot read core dump, gives message file is not readable or no such file or directory?
I am issuing the following commands:
coredumpctl list
Mon 2019-11-18 23:58:19 GMT 19043 1000 1000 31 missing /opt/google/chrome/chrome
Mon 2019-11-18 23:58:19 GMT 19062 1000 1000 31 ...
0
votes
1
answer
2k
views
Analyse core dump file redhat 7.0
We have a process that keeps producing a core dump file but not even sure which process. I have followed instructions to use the crash utility to analyse the core dump file. I had to install a new ...
2
votes
1
answer
1k
views
How are stack traces reconstructed from a coredump?
The coredumpctl utility displays a stack trace of the program when the coredump has been created.
For example, on a firefox coredump:
Stack trace of thread 14469:
#0 0x00007f0ac652d3bd ...
0
votes
1
answer
1k
views
sles12 - Why are core dumps not being generated for systemd services?
There is an issue that I am seeing on a sles12 env with creation of core dumps for system services (like the below java app). Need some help in understanding sles12 core dump creation process.
My ...
2
votes
0
answers
337
views
Create core dump only when a systemd service dies with a specific signal (segmentation fault)
I have some services running in systemd on Ubuntu 18.04 which very occasionally crash with a segfault (11/SIGSEGV). Is it possible to configure it to create a core dump only for SIGSEGV and not when ...
0
votes
1
answer
110
views
Filter hundreds of coredumps by signal
If I had several hundred core dumps in a directory and want to filter it down to just ones generated by a specific signal without having to manually open each one in GDB one at a time, is there a way ...
9
votes
1
answer
10k
views
/var/lib/systemd/coredump/ — what is it, and can I delete it?
I'm running Manjaro KDE and the /var/lib/systemd/coredump/ folder is around 500MB. What is it there for, and is it safe to delete it? sudo systemctl status shows running and no failed units.
2
votes
0
answers
76
views
filter coredumps collected by systemd
Is is possible to filter the coredumps collected by systemd-coredump?
I do not want /var/lib/systemd/coredump/ to be filled up from executables in user writable locations
coredumps of software from /...
0
votes
2
answers
441
views
How do I enable core dumps in Void Linux?
Everything I see tells me to configure core dumps via ulimit, but Void doesn't have this command (at least not out of the box). I can't seem to find any relevant results to help me enable them.
I'm ...
1
vote
0
answers
1k
views
Core File not being generated
I have recently been getting into linux through the Ubuntu Windows app. I need to look at the core file generated by a program that seg faults for a ctf, however no core file is being generated.
...
1
vote
1
answer
2k
views
How to change core dump location without sudo
CentOS release 6.10 (Final)
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6)
My program is crashing, and generating a core dump. Unfortunately, it's trying to dump it in my home directory, which ...
1
vote
0
answers
530
views
Not able to save crash dump using kdump
I have a VPS server on amazon's AWS Lightsail service.
I've been testing kdump using the following two commands(to trigger an automatic kernel crash):
# echo 1 > /proc/sys/kernel/sysrq
# echo c &...
1
vote
1
answer
4k
views
Get backtrace from core dump using gdb via shell script(non interactive)
I have core dump file and gdb.
I can do
gdb <executable> <core_file>
(gdb)bt
This will give me backtrace but I want to do this using a shell script and in non-interactive mode. ...
2
votes
1
answer
769
views
SLES 12.4| systemd-coredump[<PID>]: Failed to parse resource limit: <daemon_name>
I am using SLES 12.4 VM where I have a custom daemon dumping core frequently as I see from /var/log/messages and coredumpctl. But I never see a core file in /var/lib/systemd/coredump/ or in any other ...
4
votes
0
answers
2k
views
Hard lockup triggers reboot but no panic and no kdump
I have been trying to debug random system freezes when running the 4.14.93-rt kernel. To this end, I have enabled the lockup detector in the kernel using the following config:
...