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.

25
votes
5answers
91k 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?
18
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 ...
16
votes
3answers
16k views

How come no core dump is create when an application has SUID set?

I setup my environment to create a core dump of everything that crashes, however when I run an program with SUID set on a different user than the executing user it doesn't create a core dump. Any idea'...
13
votes
2answers
41k views

Where to search for the core file generated by the crash of a linux application?

I am trying to find out the reason of crash for one of my Linux application. But I don't know where core is going. cat /proc/sys/kernel/core_pattern core.%e.%p Any Idea?
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 ...
12
votes
2answers
7k views

Dump process core without killing the process

Is there a way to get a core dump (or something similar) for a process without actually killing the processes? I have a multithreaded python process running on an embedded system. And I want to be ...
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 ...
11
votes
4answers
38k 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 ...
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 ...
8
votes
2answers
10k views

No more coredumps after migrating to systemd [duplicate]

Generating coredumps used to work fine, but after switching over to systemd, I only see the message Aborted (core dumped) but no core file is generated. Has it something to do with systemd? (...
8
votes
1answer
2k views

How to set default core file permissions

The process I'm running sometimes generates core file, and that file has following file permissions: server:~ # ls -l /mnt/process/core/core_segfault -rw------- 1 root root 245760 Dec 2 11:29 /mnt/...
7
votes
1answer
4k views

Why is systemd-coredump storing the dump in memory itself?

I just noticed that most of my memory was hogged by coredump of a few processes that I had killed recently. I had a systemd-coredump process running for each crashed process (usually the processes ...
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 ...
6
votes
1answer
3k views

Can anything useful be done with a truncated core?

We have processes written in a mix of Python, Java and C++ that core dump from time to time. They allocate more memory in chunks as needed during runtime, and are known to crash when their allocation ...
5
votes
1answer
931 views

How can a poor old non-root user get the core dumps systemd ate?

As we know, with systemd, core dumps don't just get written to the current directory but to some obscure journal. Now, I'm a poor old non-root user on some machine, and - I want my core dumps! I can't ...
5
votes
2answers
1k views

Deleted my ssh keys

I'm on a Mac (OSX). I've accidentally deleted my ssh keys, but I haven't restarted my computer yet so I'm still able to access servers with my key. I guess the ssh-agent has some form of it in memory?...
5
votes
1answer
4k views

Exit status on core dump

When a process dumps core, does it set any particular exit code? Alternatively, is there a way to detect if core was dumped in a shell script. I have shell script that fires a job which occasionally ...
5
votes
1answer
1k views

No core dump on Ubuntu on a Parallels shared folder

I have an application that I'm working on, and I'm having trouble getting a core dump when it segfaults. In fact, I'm having trouble getting real core dump files at all. A simple test case will ...
4
votes
1answer
1k views

How to diagnose a problem using a core dump?

I have the following core dump: pth_signal.pthread_kill(??, ??) at 0xd0124734 pth_signal._p_raise(??) at 0xd01241a4 raise.raise(??) at 0xd038acd0 abort.abort() at 0xd03eeb78 ...
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 ...
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 ...
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
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 ...
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 &...
3
votes
2answers
10k views

How to disable core dump generation in Centos (cPanel Server)?

I want to disable core dump generation, How can I disable it ? One of the website keeps generating core dumps every second and eats up all the disk space. OS Details: CentOs cPanel Server ...
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 (...
3
votes
1answer
776 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?
3
votes
1answer
3k views

Debugging dmesg logs

I noticed I have the following in my logs. I just am not sure as to how to go about figuring out how to fix or find out what is causing them and if they are serious. [582046.956291] Core dump to |/...
3
votes
1answer
4k views

“Missing separate debuginfo for …” when running gcore

I am running the following: command: gcore 56058 output: Missing separate debuginfo for /lib64/libdl.so.2 Try: zypper install -C "debuginfo(build-id)=dcca9c1f648bda0a7318a7c8844982c440e3e4a3" ...
3
votes
1answer
144 views

Can you think of a way to stop the generation of a core file WHILE it is happening?

I was just wondering if you can think of a clever way to stop the creation of a core file while it is being produced. I understand that there are several way to disable the creation like setting ...
3
votes
1answer
119 views

What are core.mountd.######### files? OpenSolaris

I and gaining an ever expanding list of of core.mountd.12009999475 type files in my root directory? What are these? Can I just delete them? What causes them to be created?
3
votes
1answer
6k views

How to understand the kernel panic core dump output?

This is the output I get when I run one of my applications: Kernel bug detected[#1]: Cpu 0 $ 0 : 00000000 00000000 0fffff00 0fffff00 $ 4 : c6800000 850b7780 8b0043c0 00000040 $ 8 : 000004ac ...
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 ...
3
votes
2answers
400 views

Can I set my core file location without being root?

It seems strange that I need to be root in order to say "place cores in my current directory" (via cat whatever /proc/sys/kernel/core_pattern). Isn't there any user-specific override for this?
3
votes
2answers
2k views

Are limits in linux (like those controlled by ulimit or /etc/security/limits.conf) per user or per user per process?

I saw three copies of a process running and one of them cored in what seems like memory issue. Each individually occupies about 3-4 GB of memory..would a limit account for killing one of them? And if ...
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) !=...
3
votes
0answers
333 views

How to collect core files of system daemons?

Running a pretty standard Fedora 25 system I expect that the core files of all segfaulting processes are collected by ABRT. But this doesn't seem to be the case. ABRT is enabled: cat /proc/sys/...
3
votes
0answers
1k views

Enable core dumps for all applications started by a user with systemd

This is a follow-up to How to enable crash reports/core dumps/stack trace logging globally?: How can I achieve this on OpenSUSE 13.1 (which uses systemd) and 13.2 for all processes started from an X-...
2
votes
2answers
3k views

How to determine which host generated a core file?

I have a setting where several machines share the same filesystem via NFS. Through a queueing system processing jobs can be submitted to several computing machines (with different properties). ...
2
votes
2answers
310 views

Is core dump generation an atomic operation?

I mean if I see core.<pid> in filesystem does it mean that core file generation finished and I can use it on my own? My question was answered. But I decided to explain it a little bit. 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?
2
votes
1answer
4k views

Core files when the symbols are stripped

I am building an application using g++ 4.3. I am using the with maximum possible optimization level, not using the -g option, and I am stripping symbols after it builds. If I do NOT strip symbols ...
2
votes
1answer
232 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....
2
votes
2answers
2k views

core dumps for out of memory in linux

How to create memory dumps for out of memory. If system is out of memory then oom-killer kills the process which occupies highest memory by some calculations. How can we get core dump of the process ...
2
votes
2answers
8k views

ulimit command not found (without sudo) and error - coredumpsize: Can't set limit (Operation not permitted)

When i initially login to a server, I see the following error message. ullimit: coredumpsize: Can't set limit (Operation not permitted) Further, when I try to copy files into this machine, I see the ...
2
votes
1answer
1k views

How to delete core.* files while the program is running?

I launch my program from .sh file (for simplicity let's say it's content is just ./myprogram). For some unknown reason the program generates large core.* files. What should I add in my .sh file so ...
2
votes
1answer
2k views

Core File In unix

I have some doubts about core file. 1) what is core file. 2) where it is located. 3) what is the use of core fie. 4) How to generate core files while compiling c programs. 5) what is the difference ...
2
votes
1answer
213 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 ...
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 ...
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 ...