backtrace Questions
1
The backtrace from core-file cut the useful information due to this:
Backtrace stopped: Not enough registers or memory available to unwind
further.
Why this message occurs and can I do someth...
Mclyman asked 17/8, 2012 at 9:11
2
I'm trying to work out how to store and then print the current stack in my C++ apps on Mac OS X. The main problem seems to be getting dladdr to return the right symbol when given an address inside ...
3
Solved
I want a traceback from every query executed during a request, so I can find where they're coming from and reduce the count/complexity.
I'm using this excellent snippet of middleware to list and t...
Merrygoround asked 21/7, 2014 at 23:9
3
My application needs to send logs to fluentd as JSON format through stdout.
While I'm trying to handle panics and arrange a &std::panic::PanicInfo as a JSON with std::panic::set_hook, I could n...
4
Solved
I would like to use ld's --build-id option in order to add build information to my binary. However, I'm not sure how to make this information available inside the program. Assume I want to write a ...
4
I am trying to run my project https://github.com/comit-network/create-comit-app/ (master branch) on windows (I usually code on unix systems).
It panics but I am not able to get a backtrace despite...
3
Solved
Is there a way to find which line of code generated a MySQL statement in a Rails development log?
In order to do some performance optimization, I would like to find which part of my app is creatin...
Fredkin asked 27/9, 2012 at 23:4
2
Solved
I'm getting lots of crashes with the following backtrace and I can't find the cause for it.
According to Apple -[NSObject(NSObject) doesNotRecognizeSelector:] occurs when a new object is allocated...
3
Solved
To catch fatal errors like Segmentation Fault during runtime I write a custom SignalHandler that will print a stack trace to console and into a log file.
To achieve this I use (as hundreds before ...
2
This bellow code will generate Aborted (core dumped) at last line.
code:
#include <stdio.h>
#include <malloc.h>
int main()
{
char *ptr;
ptr=malloc(sizeof(char)*10);
free(ptr);...
Adriell asked 27/11, 2013 at 12:36
2
Solved
When I run a binary using cargo, I have the option to run it as follows -
bash -c "RUST_BACKTRACE=1 cargo run --bin my_binary"
This gives me a stack trace when the binary hits an error.
But whe...
Saxhorn asked 5/1, 2019 at 18:46
4
Is there an equivalent command in GDB to that of WinDbg's !process 0 7?
I want to extract all the threads in a dump file along with their backtraces in GDB. info threads doesn't output the stack tr...
Araby asked 22/8, 2013 at 22:27
12
Solved
Trying to debug PHP using its default current-line-only error messages is horrible.
How can I get PHP to produce a backtrace (stack trace) when errors are produced?
Cohby asked 21/7, 2009 at 13:34
2
Solved
Is it possible to print a backtrace (assuming RUST_BACKTRACE is enabled) without panicking? It seems that the only way of doing that is calling via panic!. If not, is there a reason for it?
6
Solved
Alright, second question on SO in one day. Looks like Windows programming makes me happy... : S
I'm currently trying to get the function call stack on a Win32 executable.
This morning, I've also ...
1
Solved
I am writing a cross-platform (Linux/iOS/Android) library in Rust. In case my library panics I want the application to continue working as normal and not crash. In order to do that, I am using catc...
Dekow asked 28/7, 2021 at 8:20
1
In backtraces produced by perf record --call-graph dwarf and printed by perf script, I am consistently getting wrong addresses for maybe 5% of call stacks, i.e. unwinding fails. One example is
my_b...
3
I'm writing this for Android (ARM only), but I believe the principle is the same for generic Linux as well.
I'm trying to capture the stack trace from within the signal handler, so that I can log ...
Pomace asked 10/4, 2015 at 10:39
5
I have a requirement of dumping stack traces when my c++ Linux application crashes. I was successfully able to do this using backtrace() and backtrace_symbols(). Now, additionally I would like to g...
3
6
Solved
I'm using this right now:
error_log(serialize(debug_backtrace()));
But I have to unserialize it every time. Is there a better way to store backtraces?
Monomial asked 3/12, 2011 at 16:56
3
How to I get a backtrace in Javascript?
Ideal features:
entry function name, or some meaningful identifier for anonymous functions,
argument list at each level,
line numbers.
Can this be done in ...
Stribling asked 22/7, 2011 at 8:54
2
I'm using 'backtrce()' and 'backtrace_symbols_fd()' functions in a signal handler to generate a backtrace for debugging (GDB not available).
They work fine on x86 desktop (Ubuntu), but on the tar...
2
Solved
I am trying to figure out how to grab the return address of a caller in MSVC. I can use _ReturnAddress() to get the return address of my function, but I can't seem to find a way to get the caller's...
Ineptitude asked 23/8, 2019 at 7:48
5
The Linux specific backtrace() and backtrace_symbols() allows you to produce a call trace of the program. However, it only prints function addresses, not their names for my program. How can I make ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.