coredump

segmentation fault (core dump) while loading a file [duplicate]

假如想象 提交于 2019-12-25 02:47:36
问题 This question already has an answer here : Core dump while loading a file (1 answer) Closed 6 months ago . I am trying to create a function which loads data from a .txt file but when it runs I always get a segmentation fault(core dumped) error. The file contains an unknown number of lines while each line has a string and an integer separated by tab.The list_create function just creates a data structure. The while loop in the end deletes the data structure, I did not include the code because I

How do you debug a Linux core dump using VSCode?

孤者浪人 提交于 2019-12-24 19:42:53
问题 I am purposely generating a core dump from a C++ application I'm writing using VSCode. I cannot figure out how to debug the core dump. Has anyone had any experience with this they'd be willing to share? ***** UPDATE ***** I believe I have it working now. I created a second debug configuration for core files. I needed to add the "coreDumpPath" option that pointed to the dump file generated. I also needed to remove preLaunchTask option that would always build a new executable. 回答1: From the

How to take a minidump of a web application on concrete exception running in a farm with periodic recycling?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 18:23:50
问题 Given: sometimes a certain exception occurs in our web application, which we cannot reproduce, except in production. Unfortunately, there are no telemetry and the logs are not helpful. Wanted: minidump when exception happens Problem: Running procdump is not helpful, because the process is periodically recycled. A solution is needed that would run ProcDump automatically whenever the web application starts and do it on each and every web server in the farm. Before engaging in writing an in

Why calculations of eigenvectors of a 2 by 2 matrix with numpy crashes my Python session?

梦想的初衷 提交于 2019-12-24 05:12:58
问题 I try to do the following: import numpy as np from numpy import linalg as la w, v = la.eig(np.array([[1, -1], [1, 1]])) As a result I have a crash of the python session with the following message: Illegal instruction (core dumped) I tried to use scipy instead of numpy. The result is the same. 回答1: I suspect that there is a problem with your installation of python/numpy/scipy as when I try it I have no problems. Python 2.7.4 (default, Sep 26 2013, 03:20:26) [GCC 4.7.3] on linux2 Type "help",

Missing frames on shared libraries on ARM

十年热恋 提交于 2019-12-24 00:05:00
问题 I'm currently working on a debugging environment, and I'm have trouble creating valid core files on ARM where the crash that caused a segmentation fault occurred on shared library code. It seems that when there's a call to a function in a shared library, the frame pointer gets lost. I've checked all the gcc flags I could think of. I'm not using any optimizations, not using -fomit-frame-pointer and I've tried using -rdynamic, all without success. Also, I'm not using abort(), since I read it is

python libsvm core dump

╄→尐↘猪︶ㄣ 提交于 2019-12-23 12:54:15
问题 I have Python code that works fine on my development environment (Ubuntu 12.04) but dumps core on my production environment (a Linode running CentOS). *** glibc detected *** python2.7: double free or corruption (out): 0x090cba60 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6(+0x717b1)[0xb763d7b1] /lib/i686/nosegneg/libc.so.6(+0x73f01)[0xb763ff01] /home/michael/libsvm-3.16/python/../libsvm.so.2(svm_free_model_content+0xe2)[0xb6e0c6b2] /home/michael/libsvm-3.16/python/../libsvm

Dump a process's entire state to disk and load back when required

女生的网名这么多〃 提交于 2019-12-23 04:28:49
问题 I have a c# application that accepts jobs based on multiple events Like file watcher, time based events etc. But an time would come in the life cycle of the application that it would process resources partially, take them in the RAM. And then will wait for an event to happen. But until that event the process would hold the 1.2 GB RAM(say). In this time the process cannot be killed and this process has to accept more jobs. My question: Can we dump the entire state of this process to the disk

关于coredump文件生成与查看

独自空忆成欢 提交于 2019-12-21 23:26:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 博客园闪存首页新随笔联系管理订阅随笔- 711 文章- 0 评论- 230 Linux core 文件介绍 1. core文件的简单介绍 在一个程序崩溃时,它一般会在指定目录下生成一个core文件。core文件仅仅是一个内存映象(同时加上调试信息),主要是用来调试的。 2. 开启或关闭core文件的生成 用以下命令来阻止系统生成core文件: ulimit -c 0 下面的命令可以检查生成core文件的选项是否打开: ulimit -a 该命令将显示所有的用户定制,其中选项-a代表“all”。 也可以修改系统文件来调整core选项 在/etc/profile通常会有这样一句话来禁止产生core文件,通常这种设置是合理的: # No core files by default ulimit -S -c 0 > /dev/null 2>&1 但是在开发过程中有时为了调试问题,还是需要在特定的用户环境下打开core文件产生的设置 在用户的~/.bash_profile里加上ulimit -c unlimited来让特定的用户可以产生core文件 如果ulimit -c 0 则也是禁止产生core文件,而ulimit -c 1024则限制产生的core文件的大小不能超过1024kb 3. 设置Core

Segmentation fault in fgets() - C language

谁都会走 提交于 2019-12-21 05:56:40
问题 I am getting a segmentation fault exactly at this line: while (fgets(line, MAX_LEN + 1, stream) != NULL) { .... } where MAX_LEN is 500, line is reading the current line, and stream is open through fopen(filename, "r"); I am reading lines from a file with a specific format and I get a segmentation fault (Core dumps) exactly at this line according to the debugger. I made my code so that it ignores lines that do not match the scanf format. Here is what I am implementing. Something close to it at

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

半城伤御伤魂 提交于 2019-12-21 03:48:31
问题 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 heap/stack and and restore those at a later point? 回答1: On modern systems, not from a core file, no you can't. For freezing and restoring an individual process on