Questions tagged [coredump]
A core dump represents the state of working memory of a Unix program at a specific time, often when the program has terminated abruptly.
1,031
questions
0
votes
0
answers
19
views
How can we debug a Qnx core dump file without using Gdb debugger to get the callstack of the crash in Qnx?
I tried using command "coreinfo -vvvv -t my_exe.exe.core" in Qnx but i am not able to get the call stack or the back traces.
i need the back traces without using gdb debugger
-2
votes
0
answers
37
views
Why is this a segmentation fault(core dump)? [duplicate]
Solution seems pretty straight-forward but after trying for a good bit, I am unaware as to why I am getting this segmentation-fault.
This question is from HackerRank. https://www.hackerrank.com/...
0
votes
2
answers
44
views
How to change the path of Oracle JVM core dump file?
I am currently using JDK8, in the 17.4.2 Collect Core Dumps on Linux, there is the following description:
By default, the core dump is created in the current working directory of the process and the ...
0
votes
0
answers
36
views
opencv c++ corrupted double-linked list
I'm trying to get the fps from multiple cameras. This is the main:
int main(int argc, char* argv[])
{
//Load all cameras IP
map<string, string> camerasIp; //camera ID and Streaming URL
...
0
votes
1
answer
36
views
mutil_thread append string cause core
i use multi thread to update each item(string) of global vector
each thread update item(string) with different index
i think is a good way to avoid updating same data
but i still get core, i do not ...
-1
votes
0
answers
37
views
Passing parameters to function inside a class creates a core dump
Full traceback : zsh: IOT instruction (core dumped) ./test.py
So guys I had originally written this code that works just fine, it adds a shadow around a QLineEdit.
#!/usr/bin/env python3
from PyQt6....
0
votes
0
answers
44
views
"Can not load or initialize libmscordaccore.so. The target runtime may not be initialized." in dotnet-dump
Background: I have a core dump from a .NET 6.0 process that segfaulted, running in the mcr.microsoft.com/dotnet/runtime:6.0-alpine3.14 Docker image. I would like to find out anything whatsoever about ...
2
votes
1
answer
44
views
Can std::future cause coredump without get or wait
void func() {
std::future<int> fut = std::async(std::launch::async, []{
std::this_thread::sleep_for(std::chrono::seconds(10));
return 8;
});
return;
}
Let's say ...
1
vote
0
answers
65
views
GDAL/ogr2ogr/ogrinfo produces an invalid pointer error each time I run it
After installing ogr2ogr following the steps described here
https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html
When I run either ogr2ogr or ogrinfo, I get the ...
0
votes
0
answers
34
views
The meaning of `empty` in gdb core dump
When I use gdb to analyze some core dumps, I saw something like this:
#6 0x000055e01cf96326 in ClassOne::my_function (my_var=std::unique_ptr<ClassTwo> = {...}) at /usr/include/c++/10/bits/...
-2
votes
1
answer
102
views
How to fix and understand this Segmentation Fault (core dump) error? I cannot comprehend it whatsoever
I am tasked with creating a C code that does what page-replacement algorithms do.
The code is barely 200 lines, so I will try to send some portions and hopefully, you can still be able to help me ...
0
votes
0
answers
13
views
How to generate coredump under current working directory in Xubuntu 20.04.3?
Here's some status of my system:
$ ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (...
2
votes
1
answer
50
views
I run `"crash_demo.run"` by `spawn-fcgi` . How to collect `core` file
1. Question
I run "crash_demo.run" by spawn-fcgi .
How to collect core file .
2. Background & Environment
I'm exolore C++ Web Programming .
web-server : nginx
CGI(FastCGI) : fastcgipp 3....
0
votes
0
answers
11
views
"Core Dump" analogue for Python scripts?
Say, my script runs on server and has failed at some moment of time.
Except for the error messages in the logs - I would like to have some image file on server side - representing the state of python ...
-3
votes
3
answers
60
views
segmentation fault (core dumped) while huge number of for loops in c code [duplicate]
the following code caused segmentation fault (core dumped) with 1000000000 times loop.
but by reducing the looping time to 100000, it goes ok.
so is it causing any thing wrong in cpu, hardware, or ...
0
votes
0
answers
33
views
Why does iterating over this empty object cause a core dump?
I'm working on this iterating program right now, and I'm running into trouble when I try to iterate over an empty list. Here's the code of interest:
// part A
DoublyLinkedList<int> myListOneNode;...
0
votes
0
answers
35
views
Is it possible to use gdb run a little code of crash process with core file?
I know gdb is not able to do everything and gdb cannot recover program since system resources are not existed after process crash.
I wonder is it possible to use gdb run a little code of process with ...
0
votes
1
answer
55
views
I'm getting a core dump
I'm trying to read in a int number as the height for a tree I'm building the input is
./htree testcase height
I'm trying to save it in the struct
struct arguments
{
uint64_t length;
uint8_t* file;
...
1
vote
0
answers
55
views
sosex alternative for linux .net core memory dumps
I am trying to analyze a 10GB memory dump of a .NET Core linux process. I am trying to use the dotnet dump analyze command, but there is a problem - gcroot gets stuck for hours producing no result.
I ...
0
votes
2
answers
75
views
How can we script dotnet dump analyze commands?
When debugging windows dumps I often use cdb scripts. Such a script loads the dump, does all the necessary preparations (like setting up the symbols and loading sosex) and then:
Opens a log file
Runs ...
0
votes
1
answer
56
views
How to get core dump from traps: program[pid] general protection event
I am trying to troubleshoot a locally compiled daemon program on Linux, the program crashes with signal 11, and I need to trace back the stack and values of variables to fix the bug.
However for some ...
0
votes
1
answer
53
views
How to create a program that crashes with a segfault, but without core dump
I am currently writing in C a UNIX-like shell, and in order to test my shell, I need to create a program that creates a segmentation fault, but without Core Dumped being print.
I already wrote a ...
0
votes
0
answers
167
views
QT 5.15 raise segmentation fault (core dumped) but the coredump file's useless
for learning how to use coredump file to obtain the error line in the code, I write a example project, but from the coredump file's message I can know nothing. is there anyone know how to create a ...
0
votes
1
answer
62
views
Debugging a coredump generated by an ASLR enabled system
I have a coredump extracted from a remote target in production. I need to debug it on my own computer since the target lacks gdb-server. Locally, I have the corresponding tooling, debug symbols and ...
1
vote
0
answers
61
views
Generating coredump in archlinux
I am trying to debug for my program in Archlinux in embedded board imx8. The program just terminate abruptly after starting up. I am trying to find the core dump to examine. However I could not find ...
0
votes
0
answers
53
views
c++ grpc call with SslCredentials makes coredump always
thanks in advance.
I'm trying to make client program for grpc comm in ros(melodic)system.
but when i call any rpc method with sslcredentials, it always makes coredump.
my env is below
ubuntu / c++
...
1
vote
1
answer
72
views
Why does boost split cause double free or corruption issue
I developed a web server with C++ and here is a function, which caused a coredump issue but I don't know why.
bool MyClass::hasFamilyAdminPermission(uint32_t uid) {
ReadMutex mutex(&m_mtx); // ...
0
votes
0
answers
35
views
Cannot generate Core Dump in MacOS
I want to dump file under the /cores folder when Application crashed in MacOS.
I'm trying to create an environment like Windows can analyze dump files using Windgb
I used the kill or killall to ...
0
votes
0
answers
27
views
How exactly dose linux kernel generate coredump
I have some problems about the core dump in linux, i want to write a hook to trace the process of kernel create user's coredump file, but i don't know how linux use in what way to create core dump, is ...
0
votes
0
answers
11
views
What are types 51 and 26 in AUXV of Linux coredump?
I opened a coredump file generated in aarch64 architecture using the command:
eu-readelf -n mycoredump
Observing the AUXV note I saw this:
CORE 336 AUXV
SYSINFO_EHDR: 0xffffa54f2000
...
0
votes
1
answer
165
views
Can't choose core dump location other than /tmp
I'm working with an Azure pipeline running on an Ubuntu 20.04 agent. I want to capture a core dump because the app I'm developing is crashing. I've done this:
ulimit -c unlimited
sudo service apport ...
0
votes
0
answers
21
views
How to debug C++ Application crash without showing coredump or empty stack [duplicate]
I am having a cross compiler application runs on windows and Linux. Application works fine on windows which is developed using Qt but not works on Linux, On some particular scenario it crashes.
I ...
1
vote
1
answer
91
views
How to analyze a core dump file in fedora
I have a app which crashed and core dump file generated in "/var/spool/abrt/ccpp-2022-03-04-08:35:49-11228/coredump"
I ran my application from directory path
/home/MYPC/Development/myPc/src/...
0
votes
0
answers
85
views
Segmentation fault in inline assembly
I want to move an assembly code from .S to the c++ code(inline).
The assembly works correctly when I use .S file.
extern "C" int libucontext_getcontext(libucontext_ucontext_t *);
.
.
.
...
0
votes
0
answers
106
views
What is the relation between "ulimit -c some_value " (not unlimited) and the core dump size?
My objective is to limit the core dump size to 10MB . I tried experimenting with the soft and hard limits for core.
I see the below behavior with different values of ulimit -Sc . The coredump size ...
0
votes
1
answer
46
views
git: BUG: read-cache.c:327: unsupported ce_mode: 40000
When calling git commit -m "XXX" I am getting this error:
BUG: read-cache.c:327: unsupported ce_mode: 40000
Aborted (core dumped)
Is there any way to get out of this situation, e.g. by ...
1
vote
1
answer
48
views
segfault on readdir call
I'm trying to perform a readdir(): here is the code:
DIR *dp;
struct dirent *dirp;
if (dp = opendir("saves") == NULL) {
my_printf("Cannot open saves directory.\n");
return ...
1
vote
1
answer
50
views
Using binary breakpoints in GDB - how exact is the location?
I have some memorydumps from Linux Redhat GCC compiled programs like:
/apps/suns/runtime/bin/mardb82[0x40853b]
When I open mardb82 and put the breakpoint with break *0x40853b it will give me C ...
1
vote
1
answer
82
views
How to read backtrace /memory dump from a GCC fortify crash?
I have an exe crashing from a fortify fail, I get the following backtrace/mamory dump. How can I use it? (GCC, Redhat Linux)
2*** buffer overflow detected ***: /apps/suns/runtime/bin/mardb82 ...
5
votes
1
answer
315
views
Core Dumps aren't written to /cores on Mac OS Monterey
I've been banging my head against this for a while. Obviously read this: Where are core dumps written on Mac?
And this which lead to this.
Just so we're 100% clear:
I did:
touch /cores/x
rm /cores/x
...
0
votes
0
answers
112
views
What is the proper tools and technics to analyze a core dump file in Linux
I'm not asking how to find the cause of the crash. Actually there is no crash at all. I can't exclude the possibility of memory leaking but the executable passed Valgrind analysis in the stress ...
0
votes
1
answer
339
views
Can't run mongodb community 5.0 on arch linux
I can't run use mongodb on my arch linux.
package installed: mongodb-bin
error when use mongo: illegal hardware instruction (core dumped) mongo
My processor: AMD Athlon(tm) II X2 270
2
votes
1
answer
46
views
core dumped because of a char** write in a file
I have a problem with acccessing a char ** in one of my struct.
uint64_t id;
struct timing timing;
//command *command;
uint32_t argc;
char ** argv;
} taskR;
i stock everything in ...
0
votes
1
answer
70
views
Does gdb support loading an extension dll/so like windbg
Windbg has a command "Load Extension DLL" as in https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/-load---loadby--load-extension-dll-
The command will load a dll and extend ...
0
votes
1
answer
186
views
how to debug core dump file generated from execute release file?
I'm trying to figure out how to debug core files sent to me from my released versions of software (c code compiled with gcc).
I have a debug version (compiled with -g) of the executable, can I debug ...
0
votes
0
answers
78
views
Segmentation fault (core dumped) (line: tb.registerForm( &frm, 0, 0, 640, 480 );))
It's an old code. I get this error when I try to run this:
#include "vismhd.h"
#include "mainf.h"
ToolBox tb;
extern void write_cfg();
int main()
{
tb.open();
tb....
0
votes
1
answer
437
views
How can I find which of my code cause the SIGABRT in pthread_crate.c file, but without any my code information in the coredump
There is a coredump caused by my program, which shows below:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./...
5
votes
1
answer
1k
views
Error: `thread_id_key != 0x7777' failed. Aborted (core dumped) when I start my node server
I have problem when start my server on npm run server, I receive this error:
node: ../src/coroutine.cc:134: void* find_thread_id_key(void*): Assertion `thread_id_key != 0x7777' failed.
Aborted (core ...
2
votes
0
answers
99
views
How to collect core dumps from unit tests?
What is the easiest way to collect core dumps from unit tests job in ci? Tests are run with CTest if important. I can set up kernel_pattern and write the corresponding path in the artifacts, but I ...
1
vote
1
answer
488
views
mongodb.service: Failed with result 'core-dump' in Arch Linux
I have a problem starting mongodb. I use Arch Linux and i have installed mongodb-bin from AUR but when i start mongodb and check status it shows core-dump error. Please give me the solution. Error ...