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 ...
Urn asked 14/11, 2008 at 11:20

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...
Strainer asked 28/2, 2019 at 2:14

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 ...
Epeirogeny asked 14/7, 2013 at 8:25

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...
Arietta asked 2/12, 2019 at 0:27

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...

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...
Cantonment asked 16/10, 2019 at 8:14

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 ...
Anett asked 1/4, 2019 at 8:33

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?
Scruple asked 12/6, 2019 at 8:59

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 ...
Phenica asked 18/4, 2011 at 16:1

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...
Donofrio asked 18/6, 2021 at 14:15

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...
Flyman asked 28/2, 2013 at 6:39

3

I try to find the exact line of a call in the backtrace in C++ program. Right now I am using these lines (from the man page of backtrace) to get the trace: void *bt_buffer[1000]; char **bt_strin...
Educate asked 20/7, 2012 at 12:35

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...
Euripus asked 21/7, 2015 at 1:17

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 ...
Shrum asked 3/8, 2011 at 23:49

© 2022 - 2024 — McMap. All rights reserved.