coredump

How to create a core dump even if the process is normally running? [duplicate]

◇◆丶佛笑我妖孽 提交于 2020-01-12 03:13:08
问题 This question already has answers here : Is it possible to get a core dump of a running process and its symbol table? (4 answers) Closed 5 years ago . Under Linux, when a process crashes, a core dump will be created. However, I want to create a core dump when the process doesn't crash, but looks buggy. A remote expert need the core dump to analyze. Under Windows, we can create a dump file of a process through task manager, and after that, the process is still running. Is it possible under

Segmentation fault (core dumped) in a simple C code

倖福魔咒の 提交于 2020-01-11 09:58:07
问题 I am new in C. I am referring to the book "The C Programming Language" by Brian W Kernighian and Dennis Ritchie. There is a code for pointer increment and assignment given in the book as follows. #include<stdio.h> int main() { char *s = "Goal"; char *t = "Home"; while(*s++ = *t++) printf(*s); return 0; } The code is saved and compiled using the command gcc ptr.c -o ptr -std=c99 Now on running the code by running command ./ptr I get the following error Segmentation fault (core dumped) The

Segmentation fault due to recursion

混江龙づ霸主 提交于 2020-01-11 04:05:10
问题 I'm writing a program that is to take a number between 1-10 and display all possible ways of arranging the numbers. Ex input: 3 output: 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1 Whenever I input 9 or 10, the program gives a segmentation fault and dumps the core. I believe the issue is my recursive algorithm is being called too many times. Could someone help point out how I could limit the amount of recursive calls necessary? Here is my current code: void rearange(int numbers[11], int index, int num

what is the reason for core dump? stack shows from oracle lib

爷,独闯天下 提交于 2020-01-02 06:40:27
问题 I have a coredmp where all thread stack look normal but one stack shows like this. Can any one tell me possible reason for this? i can see exit is being called from oracle libs, is this issue of oracle? Can any one guide me when this can happen? Thread 3 (process 26454): #0 0x00002b803ceb54a8 in exit () from /lib64/libc.so.6 #1 0x00002b803bbe93f5 in skgdbgcra () from /home/oracle/product/11g/lib/libclntsh.so.11.1 #2 0x00002b803be9cdec in kpeDbgCrash () from /home/oracle/product/11g/lib

Why does scikit-learn cause core dumped?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 02:17:08
问题 I try to run a simple linear fit in scikit-learn: from sklearn import linear_model clf = linear_model.LinearRegression() clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2]) As a result I get: Illegal instruction (core dumped) Does anybody know what is the reason of this problem and how the problem can be resolved? P.S. I use the version 0.16.1 of scikit-learn. But I had this problem also with an older version. I do it under Ubuntu. ADDED Today I have tried another estimator ( KernelRidge ) and I

Get the address that caused segmentation fault from core dump using C

血红的双手。 提交于 2020-01-01 04:16:10
问题 I am trying to write a C program that can parse core dump files. My question is, how can I get the address that caused the core dump in C? I know one can get the address using gdb from this answer: How can I get GDB to tell me what address caused a segfault? But I would like to directly retrieve the address in C. Any information would be highly appreciated. Thanks! Notice: I know how to parse core dump as an elf. But I don't know how to get the address that caused the segfault. 回答1: My

a.out replaced by ELF file format?

喜你入骨 提交于 2019-12-31 21:24:10
问题 I have a few questions: Why was a.out replaced by ELF ? What were the major flaws in the a.out format that led to the raise of ELF file format? Earlier core dumps were based on a.out, but now they are based on ELF. What are the various advantages provided by ELF? 回答1: The a.out format forced shared libraries to occupy a fixed place in memory. If you wanted to distribute an a.out shared library, you had to register its address space. This was good for performance but it didn't scale at all.

Checkpoint/restart using Core Dump in Linux

為{幸葍}努か 提交于 2019-12-30 03:18:25
问题 Can Checkpoint/restart be implemented using the core dump of a process? The core file contains a complete memory dump of the process, thus in theory it should be possible to restore the process to the same state it was in when the core was dumped. 回答1: No, this is not possible in general without special support from the kernel. The kernel maintains a LOT of per-process state, such as the file descriptor table, IPC objects, etc. If you were willing to make lots of simplifying assumptions, such

undefined reference to `std::ios_base::Init::Init()'

拥有回忆 提交于 2019-12-28 01:52:46
问题 I write this code to read 3 files, TM is the size of square matrix, LER the No. of rows of an array and from last value define a non-square matrix of (ler/2)*2 Then... the code read a file with some relations, all are numbers and are assign to C[ler]. Then ... C[ler] is assigned to B[ler/2][2]. Those coordinates, per row, in B[ler/2][2] are assign to a and b. a and b are the row and the column of the matrix A[tm][tm] where to add 1. My code crashes and I don't see what the error is. When I

undefined reference to `std::ios_base::Init::Init()'

二次信任 提交于 2019-12-28 01:52:06
问题 I write this code to read 3 files, TM is the size of square matrix, LER the No. of rows of an array and from last value define a non-square matrix of (ler/2)*2 Then... the code read a file with some relations, all are numbers and are assign to C[ler]. Then ... C[ler] is assigned to B[ler/2][2]. Those coordinates, per row, in B[ler/2][2] are assign to a and b. a and b are the row and the column of the matrix A[tm][tm] where to add 1. My code crashes and I don't see what the error is. When I