Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
884 views

Disable core file generation in RHEL7

I'm currently running RHEL7. I haven't been able to find a definitive explanation of how to disable core dump files. I can limit to number of core files that are produced, but I don't know how to ...
2
votes
0answers
9 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 /...
1
vote
2answers
35 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
0answers
113 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: ...
24
votes
5answers
90k views

How to view core files for debugging purposes in Linux?

I want to view the contents of a core file while debugging a program. How can I view the contents of a core file?
0
votes
1answer
1k views

echo c > /proc/sysrq-trigger doesn't reboot the system

I am trying to collect a core dump in result of kernel panic. Installed and configured kdump, but when executing echo c > /proc/sysrq-trigger, everything just hangs and the reboot doesn't happen. I ...
1
vote
0answers
30 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. ...
0
votes
1answer
46 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 ...
0
votes
0answers
39 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 &...
0
votes
1answer
66 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. ...
4
votes
2answers
3k views

How to view Core file (general)

Scenario (Ubuntu 16.04): I compile and run a C program (with -g, I get the traditional Segmentation Fault (core dumped), and then (of course) there is no mythical "core" file to be found. Some ...
3
votes
4answers
6k views

What is centos /root/core.* files? they eat my hard disk till it is full

I have a vps server with 130GB hard disk. Recently, the server is crash down, I access ssh and use dh -h, Filesystem Size Used Avail Use% Mounted on /dev/vzfs 130G 130G 0 ...
2
votes
1answer
40 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 ...
2
votes
1answer
1k views

How to limit coredump CPU usage?

I have some process (test) which runs on my machine. Sometimes it crashes and a core dump is generated. Whilst the core dump is being written, the machine is completely frozen (even the mouse pointer ...
4
votes
2answers
6k views

Where is core file with abrt-hook-cpp installed?

I posted this question to StackOverflow a little while ago, but just now found this community, and felt like this is at least an equally appropriate site for this question: I've been led to ...
1
vote
1answer
41 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 ...
0
votes
0answers
72 views

Get Coredump file with coredumpctl

First thing what is the purpose of coredumpctl? To copy the coredump file using coredumpctl ? If yes I am trying to do the following: coredumpctl list TIME PID UID GID ...
0
votes
1answer
162 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?
1
vote
1answer
52 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 ...
-4
votes
2answers
79 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,...
1
vote
0answers
292 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 ...
3
votes
1answer
774 views

core dump — linux

I'm trying to understand the core dump generation. Is the core dump generated separately for a user space application process crash and the kernel level crash? Is the ulimit -c for both kinds?
17
votes
2answers
8k views

Cleaning up coredumpctl list

I'm looking for a way to remove any trace of old coredumps in coredumpctl list. At the moment it lists coredumps beginning at 2014-12-14 - I've updated software so often between then and now that I ...
2
votes
1answer
63 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 ...
4
votes
5answers
2k views

Why does the following way not change core file limit size?

To solve the problem in https://unix.stackexchange.com/a/446428/674, I followed https://stackoverflow.com/a/17483998/156458, but it doesn't set core file limit size? $ sudo sh -c "ulimit -c 1024 &...
2
votes
1answer
205 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 ...
1
vote
1answer
291 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. ...
1
vote
1answer
637 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 ...
1
vote
1answer
224 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'....
2
votes
2answers
3k views

Configure the location for AIX core dumps

Recently I had an experience where a core dump was created in my home directory that resulted in the filesystem running out of space. How can I tell AIX to create core dumps in some other location?
12
votes
2answers
4k views

No core-dumps after recent upgrades to systemd?

When I execute a program that I work on, it fails with the following message: ... Aborted (core dumped) However, no core dump is created. Core dumps were written previously, and I don't remember ...
1
vote
1answer
462 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 ...
0
votes
1answer
79 views

How to install debug symbols for corosync package on CentOS?

I got a crash in corosync which I would like to view in gdb. However, currently the core dump shows me only this much info Debug logs for core.1385 (Generated on Jul 26 10:17 BST) [Thread debugging ...
0
votes
1answer
367 views

Disabling core dumps for a certain user or shell session without root

I'm working on a large C++ project. While testing it, I frequently get a core dumped from the main process. This produces a lot of uninteresting core dumps saved within systemd and it takes useful ...
13
votes
1answer
56k views

How to set the core dump file location (and name)?

I am on CentOS 6, trying to enable core dumps for an application I am developing. I have put: ulimit -H -c unlimited >/dev/null ulimit -S -c unlimited >/dev/null in to my bash profile, but a ...
0
votes
0answers
530 views

ABRT enabled and application core dumps?

ABRT is running on a RHEL7 server, so the kernel conf is : # cat /proc/sys/kernel/core_pattern |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I All core dumps from application systems/...
1
vote
0answers
372 views

Given a core-dump, how to get the files opened by the late process?

Answers to related questions all suggest using lsof or checking under /proc/NPID/, which is not helpful for when the process is already gone and only its core-dump remains. However, it should be ...
0
votes
0answers
17 views

redhat kernel dump investigate [duplicate]

I have received a vmcore.gz (400MB) and vmcore-dmesg.txt file from production machine that had kernel panic. The producation is redhat 5 machine with kernel 2.6.18-431.el5 In order to investigate the ...
11
votes
4answers
37k views

Segmentation fault (core dumped) - to where? what is it? and why?

When a segmentation fault occurs in Linux, the error message Segmentation fault (core dumped) will be printed to the terminal (if any), and the program will be terminated. As a C/C++ dev, this happens ...
0
votes
0answers
36 views

What does mount_root_run_init option in kdump.conf actually mean?

I do not understand the purpose of the mount_root_run_init action in kdump.conf: # default <reboot | halt | poweroff | shell | mount_root_run_init> # - Action to preform ...
0
votes
1answer
943 views

Where is core dumped file by handling SIGQUIT stored?

From http://qr.ae/TUTxgN SIGQUIT is the dump core signal. The terminal sends it to the foreground process when the user presses ctrl-\. The default behavior is to terminate the process and dump ...
0
votes
4answers
332 views

Is it possible to dump the memory of a program to file and restore it again?

I want to create a copy the RAM used by a certain program to a file. And then restore that state again later. Something similar to the effect of ctrl+z & fg, but I also want to free the RAM from ...
0
votes
1answer
2k views

How can I automatically set the core dump size on a single user?

I am running OpenSUSE. I usually open the console with an interactive non-login shell bash, and frequently use tcsh after logon. I am writing some C code, compiling with gcc, and I'd like to have the ...
0
votes
1answer
399 views

Analysing core dump in linux sytem : error

We are using a private module to dump a corefile which uses the kernel utility elf_core_dump in source/fs/binfmt_elf.c file in kernel source 4.4.52. Using this module we are getting a core of ...
1
vote
1answer
303 views

Limiting total Core file sizes to 10% of disk usage in ArchLinux

I need to limit the total core files sizes generated to be 10% of my disk usage. I have set ulimit -c to be unlimited stating that each file size is unlimited. Then I used the configuration file /etc/...
4
votes
2answers
1k views

How to find why a bash exits with signal 11, Segmentation fault

In my production server running Red Hat Linux (V6) I got frequently core dumps from bash. This occurs from a couple of time a day to dozens of time a day. TLTR Resolution: install the bash-...
3
votes
2answers
2k views

Recover full command that generated core dump

A program I am working on is crashing and generating core dumps. I think that the issue is related to the arguments that it's being called with, some of which are automatically generated by another (...
1
vote
0answers
55 views

I am trying to pass some strings trough espeak and it reads them [closed]

This is my code. I want to get 5 strings from the user and espeak reads each of them when user interred it. But I get segmentation fault(core dumped) message. #include <string.h> #include <...
1
vote
0answers
187 views

How to interpret the crash dump

This a sample crash dump I have from the unit. Could anyone help me in understanding what these details mean? Example: [] (sys_init_module+0x0/0x1878) from [] (ret_fast_syscall+0x0/0x30) Here ...
1
vote
1answer
253 views

Hooking up core dump before apport [closed]

I'm hooked up coredump generation for my application on remote Ubuntu system. I did it with adding into /proc/sys/kernel/core_pattern path to my coredumper bash script. "|/some/.../path/...