coredump

generate a core dump in linux

I have a process in linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails? ...

Solaris Core dump analysis

I use pstack to analyze core dump files in Solaris How else can I analyze the core dump from solaris? What commands can be used to do this? What other information will be available from the dump? ...

How can a C program produce a core dump of itself without terminating?

I want a C program to produce a core dump under certain circumstances. This is a program that runs in a production environment and isn't easily stopped and restarted to adjust other kinds of debugging code. Also, since it's in a production environment, I don't want to call abort(). The issues under investigation aren't easily replicated ...

How do I find what is using memory in a Python process in a production system?

My production system occasionally exhibits a memory leak I have not been able to reproduce in a development environment. I've used a Python memory profiler (specifically, Heapy) with some success in the development environment, but it can't help me with things I can't reproduce, and I'm reluctant to instrument our production system with...

How do I dump an entire Python process for later debugging inspection?

I have a Python application in a strange state. I don't want to do live debugging of the process. Can I dump it to a file and examine its state later? I know I've restored corefiles of C programs in gdb later, but I don't know how to examine a Python application in a useful way from gdb. (This is a variation on my question about debu...

Can you freeze a C/C++ process and continue it on a different host?

I was wondering if it is possible to generate a "core" file, copy if to another machine and then continue execution of the a core file on that machine? I have seen the gcore utility that will make a core file from a running process. But I do not think gdb can continue execution based on a core file. Is there any way to just dump the he...

Which wiki will let me dynamically create a page when its link is clicked?

For an application (*) I'm developing I need a mixture of dynamically generated and static pages. It would be cool to use a wiki such that once a dynamic page has been accessed for the first time it becomes a static page that can be annotated by a user just like any other static wiki page. In other words, I want to override whatever out...

Using a stackdump from Cygwin executable

So I wrote buggy code that occasionally crash ... and creates a stackdump file. Using addr2line I can figure out how the program got to the crash point by decoding the addresses on by one. Is there an alternative tool that can ease the debug using stack dumps? Is there a way to to load this information in Insight/Gdb? ...

how to get the pid of a process which has sent a SIGABRT signal to another process which has exited dumping core

how to get the pid of a process which has sent a SIGABRT signal to another process which has exited dumping core ...

How to get symbol files for java application when I analyse system crash core dump files?

This is a java application running on Websphere application server. When I analyse the system crash core dump file, I get some info like this: ERROR: Symbol file could not be found. Defaulted to export symbols for J9THR23.dll How can I get symbol files for java applications? Thanks in advance. More details are here: * Exception...

What would cause Perl to dump core?

What are the most common reasons that I would be getting this error from running a Perl script: Memory fault(coredump) I am running two SQL commands beforehand that only store ~1500 rows each with 6 fields. The SQL works fine out of the script, so I don't think I'm getting the error from that. And half of my code runs before it takes ...

segmentation fault on Unix - possible stack corruption

hello, i'm looking at a core from a process running in Unix. Usually I can work my around and root into the backtrace to try identify a memory issue. In this case, I'm not sure how to proceed. Firstly the backtrace only gives 3 frames where I would expect alot more. For those frames, all the function parameters presented appears to co...

Creating core dumps on Linux

Duplicate: generate a core dump in linux I am trying to create a core dump in my "Fedora Core release 3 (Heidelberg)". [root@testserver test_core_dump]# uname -a Linux testserver 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:46:55 EDT 2005 i686 athlon i386 GNU/Linux I am following this to create core dumps. The problem is, /proc/sys/kern...

Why core dump file is generated ?

I am working on a Linux project for which I've written a makefile. Sometimes when I run my code a core dump file is generated. The filename is of the form core.* . And it is occupying too much space. Now, how to avoid this core dump file from being generated? Also can anyone tell why it is generated only sometimes? One more thing. Is t...

How to programatically cause a core dump in C/C++

I would like to force a core dump at a specific location in my C++ application. I know I can do it by doing something like: int * crash = NULL; *crash = 1; But I would like to know if there is a cleaner way? I am using Linux by the way. ...

Mark data as sensitive in python

Hi, I need to store a user's password for a short period of time in memory. How can I do so yet not have such information accidentally disclosed in coredumps or tracebacks? Is there a way to mark a value as "sensitive", so it's not saved anywhere by a debugger? ...

What is SEGV_MAPERR ?

What is SEGV_MAPERR, why does it always come up with SIGSEGV ...

Handling COR dump issue with purify

Hi all, I an instrumenting a C++application using IBM purify and I get the issue COR dump and my program aborts although when run from terminal it runs fine. Can anyone tell me what is this COR dump and how to handle with it? Platform: RHEL 64bit Thanx, ...

Debugginng a daemon that terminates unexpectedly

I am writing a daemon in c on linux. It traps signals SIGHUP, SIGTERM, SIGINT, and SIGQUIT, logs them using syslog and quits. If it receives SIGSEGV it core dumps. When these occur everything happens as expected but once in a while it quits...does not exit cleanly, does not log the signal, and does not leave a core dump. I am stumped and...

Core dump for process spawned from Java

Hi, My Java (Eclipse) application is spawning a child process, monitoring its stdout stream and exit value. When the child process is crashing with SIGABRT, there is no core dump file created. If I start the child process manually and kill it, the core dump is there alright. I couldn't find any info about whether the JVM prepares someh...