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.

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
38 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
31 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
47 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
46 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
81 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
1answer
44 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 ...
1
vote
0answers
124 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: ...
1
vote
1answer
47 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
76 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
174 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
56 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
308 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 ...
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 ...
2
votes
1answer
214 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
301 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
667 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
228 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'....
1
vote
1answer
493 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
81 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 ...
1
vote
1answer
907 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 ...
0
votes
1answer
376 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 ...
0
votes
0answers
543 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
374 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
18 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 ...
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 ...
3
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 &...
0
votes
1answer
979 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
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 ...
0
votes
4answers
350 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
403 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 ...
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-...
1
vote
0answers
56 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
189 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
257 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/...
0
votes
1answer
340 views

I have a kdump kernel core dump; how can I analyze it?

After installing kdump-related packages and yet another hang, I now have a: /var/crash/kexec_cmd file. But what can I do with it? Should I use the command-line crash utility? I tried to, but it ...
9
votes
3answers
5k views

Why does GDB need the executable as well as the core dump?

I'm debugging using core dumps, and note that gdb needs you to supply the executable as well as the core dump. Why is this? If the core dump contains all the memory that the process uses, isn't the ...
0
votes
1answer
149 views

Modded Steam game crashes on start, Steam API does not load, cannot read core dump

I have the latest version of Empire: Total War in Steam on Arch Linux x86_64. I have followed this Reddit guide to install DME. I have gone through each and every step (except the optional ones) and ...
2
votes
1answer
48 views

Why does the Linux kernel dump a <unset>.core?

I'm working on Linux 4.0.6, and I've activated the coredump and using %e.core pattern. On my machine I see <unset>.core in the core folder. Can someone explain me what does <unset> mean ...
1
vote
1answer
437 views

How to pipe Coredump to a custom application?

I wrote a simple C application (in core_app.c) to process a coredump: int main(int argc, char *argv[]) { FILE *fp = fopen("/tmp/coretest", "w"); char input[MAX_INPUT]; // write a coredump ...
1
vote
2answers
346 views

Can GDB decode core if it were piped?

I have huge core files, and hence set the core_pattern is set to gzip as they are written. Later if the backtrace is to be obtained, first gunzip has to be done (and it takes a very long time!) ...
2
votes
1answer
233 views

FreeBSD core dump file permissions

Is there a way to specify the core dumped file permissions? When I use sysctl these are the variables I see. kern.corefile: /var/coredump/%N.core kern.nodump_coredump: 0 kern.coredump: 1 kern....
3
votes
0answers
280 views

Cannot find the core dump from an abort due to seg fault on Linux from a docker image

This is running in a docker image. My yml includes the following: - ulimit -c unlimited - ulimit -a Running several robot tests and one (in the middle) outputs: Segmentation fault (core dumped) !=...
1
vote
1answer
291 views

memory fault in lsof [closed]

I am trying to check a port with lsof: lsof -i :443 but it gives me an error message that says: /usr/local/bin/lsof[30]: 6226000 Memory fault(coredump) Why is this happening, and how can I solve ...
3
votes
1answer
325 views

Do apport core dumps contain sensitive information?

For example, if I am drafting an email in a text editor, the text editor crashes, and apport creates a file in /var/crash, will the data below "CoreDump: base64" contain a copy of that draft? Could it ...
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 ...
6
votes
1answer
3k views

What exactly is and what does a core dump of process contain?

It's clear that GDB can generate a core dump of process for example via its wrapper - gcore, however it's not clear what exactly it includes and it's really hard to find an answear because different ...
2
votes
1answer
277 views

Symbolic link becomes unreadable after prctl(PR_SET_DUMPABLE, 0);

I was debugging kcheckpass under Archlinux. (Because I failed to login with kcheckpass) Somehow I believe this particular problem is not within kcheckpass. int main(int argc, char **argv) { #ifdef ...