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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
6 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: systemd-coredump@7-3897-0.service: Failed at step NETWORK spawning /lib/systemd/...
user avatar
  • 121
0 votes
0 answers
18 views

Can coredump handler mess up process exit code?

I have a program that installs a handler to log backtrace on fatal signals (SIGSEGV, SIGABRT and a couple others). The signal handler does void signalHandler(int signum) { signal(signum, SIG_DFL); ...
user avatar
  • 562
0 votes
0 answers
45 views

At some point during the execution of a process, core dumps stop being generated

I know there are plenty of similar questions, but I didn't find any info about my case. I have a working setup for core dump generation on my Ubuntu - the limits are unlimited, the pattern is set, ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
1 vote
2 answers
514 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 () { ...
user avatar
  • 13
0 votes
0 answers
57 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 ...
user avatar
  • 804
0 votes
1 answer
111 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 ...
user avatar
  • 101
0 votes
1 answer
155 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, ...
user avatar
0 votes
2 answers
135 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 ...
user avatar
0 votes
1 answer
253 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 ...
user avatar
0 votes
1 answer
85 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 ...
user avatar
  • 133
2 votes
1 answer
2k 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 ...
user avatar
  • 188
1 vote
0 answers
34 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? ...
user avatar
  • 111
1 vote
0 answers
40 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 ...
user avatar
1 vote
0 answers
43 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 ...
user avatar
  • 112
0 votes
1 answer
2k 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=...
user avatar
0 votes
1 answer
267 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 ...
user avatar
  • 90.6k
3 votes
1 answer
330 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
800 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 ...
user avatar
2 votes
1 answer
920 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 ...
user avatar
2 votes
0 answers
1k 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 ...
user avatar
2 votes
2 answers
416 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 ...
user avatar
  • 1,456
0 votes
1 answer
567 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 165
1 vote
1 answer
581 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 ...
user avatar
  • 125
0 votes
1 answer
756 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 ...
user avatar
  • 123
2 votes
0 answers
249 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 ...
user avatar
  • 436
0 votes
1 answer
32 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 ...
user avatar
  • 103
7 votes
1 answer
5k 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.
user avatar
  • 792
2 votes
0 answers
49 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 /...
user avatar
0 votes
2 answers
312 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 ...
user avatar
  • 111
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. ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
437 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 &...
user avatar
  • 359
1 vote
1 answer
3k 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. ...
user avatar
  • 157
2 votes
1 answer
552 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 ...
user avatar
  • 155
3 votes
0 answers
1k 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: ...
user avatar
  • 31
1 vote
1 answer
308 views

Enable core dump on Linux 2.6.35

I'm running kernel 2.6.35 on a custom embedded device (ARMv7). I'm trying to get a core dump but it appears core dumps are disabled. My kernel config can be found here: https://pastebin.com/XXZ8YyaA ...
user avatar
0 votes
1 answer
4k views

How to convert Coredump .gz file so that I can read it

I have coredump file in .gz format (which I am not aware of) and I want to convert it, so that I can read it. Is there a way I can use coredumpctl to read the .gz core dump file?
user avatar
  • 157
1 vote
1 answer
185 views

Configure Linux core-dump program to store cores permanently

I am using RHEL operating system, which has its default program systemd-coredump which handles the cores within the node. Here I see that document says, if Storage=none then dumps will not be stored ...
user avatar
  • 157
-3 votes
2 answers
122 views

Does the existence of a writable regular file with the same name prevent producing a core dump file? [closed]

The manpage of core(5) says one of the reason by which core dump file is not produced is: A (writable, regular) file with the same name as would be used for the core dump already exists,...
user avatar
  • 90.6k
1 vote
0 answers
1k views

What decides where core dump files are created?

Does /proc/sys/kernel/core_pattern decide where core dump files are created? Mine looks like $ cat /proc/sys/kernel/core_pattern |/usr/share/apport/apport %p %s %c %d %P which I guess means to pipe ...
user avatar
  • 90.6k
2 votes
1 answer
95 views

can anybody share the thought process about having coredump in systemd? [closed]

While I have found /var/lib/systemd/coredump/* to be extremely useful when gdb doesn't give the right answers, I have not been able to figure out the rationale behind it and what existed before it, in ...
user avatar
  • 10.9k
2 votes
1 answer
1k views

Debian: Find binary and debug files by build-id

Assuming I have a core dump from a Debian system, where I know the build-ids of the libraries used in the dump, but don't know the exact versions, is there a way to find those files? For example, the ...
user avatar
  • 123
1 vote
1 answer
1k views

Xargs rm doesn't work when running it in a script as part of a core_pattern

I am trying to run a cleanup script that gets invoked on every core dump. I first wrote the contents of the core file to another file, and after then I tried to do a cleanup on the oldest ten files. ...
user avatar
  • 111
1 vote
1 answer
4k views

Illegal instruction (core dumped) after running executable

I have two PCs (PC1 and PC2) running Linux Mint 18. I compiled a repository and had built an executable on one PC1, and it ran with no problem. I installed Linux Mint 18 on the other PC2, and tried ...
user avatar
2 votes
1 answer
1k views

How to redirect Core dump and stack smash messages

I can redirect stdout and stderr of a program using ./a.out > output.txt 2> error.txt But these don't redirect messages like segmentation faults. So I found { ./a.out < $TEST_DIR'test'$i'....
user avatar
2 votes
1 answer
5k views

systemd: Failed to create coredump on readonly file system

I am on an embedded Linux setup. I mount a squashfs with a writable overlay (using overlayfs) and then chroot into it, transferring control to systemd. I have patches in systemd to send the coredumps ...
user avatar