backtrace Questions

2

Is there a way to return the function that invoked the current function? Function.caller will only work for non-strict mode applications. I want to be able to use this functionality for production...
Faille asked 28/8, 2019 at 5:6

1

From: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html -fexceptions: Enable exception handling. Generates extra code needed to propagate exceptions. For some targets, this implies GCC ge...
Essequibo asked 1/11, 2018 at 13:22

3

Solved

I am trying to catch signals such as SIGSEGV in my Android NDK app for debugging purpose. For that, I have set up a sigaction that is called. I am now trying to get the stack of the call. The prob...
Kartis asked 2/8, 2013 at 12:45

4

So I am trying to find out what kernel processes are calling some functions in a block driver. I thought including backtrace() in the C library would make it easy. But I am having trouble to load t...
Boraginaceous asked 2/5, 2011 at 22:21

2

I am looking at the following backtrace of a program I am debugging in GDB: Thread 7 (Thread 3983): #0 0xf7737430 in __kernel_vsyscall () #1 0x41b85412 in __lll_lock_wait () at ../nptl/sysdeps/uni...
Bustard asked 27/5, 2014 at 22:39

0

I'm programming in a mix of C, C++ and assembly and I'd like to get reliable backtraces from any part of the code. This mostly works fine for the C and C++ code since I can generate debugging info...
Towers asked 31/10, 2017 at 0:51

1

Solved

My program is panicking so I followed its advice to run RUST_BACKTRACE=1 and I get this (just a little snippet). 1: 0x800c05b5 - std::sys::imp::backtrace::tracing::imp::write::hf33ae72d0baa11ed ...
Chavannes asked 11/4, 2017 at 2:46

2

Solved

Below is an example of source I want to use on a machine running "Red Hat Enterprise Linux 5.5 (Tikanga) Kernel 2.6.18-194.el5xen x86_64" OS. The general idea is that I want to have backtrace of ...

3

Solved

In Linux, to get a backtrace you can use backtrace() library call, but it only returns backtrace of current thread. Is there any way to get a backtrace of some other thread, assuming I know it's TI...
Rihana asked 19/6, 2011 at 11:45

4

Solved

Fresh Rails 4.2 set up. I want to suppress long error backtraces. In the following backtrace log first line would be enough for me, and next 4 could be removed ActionController::RoutingError (No r...
Propitious asked 20/3, 2015 at 14:35

1

Solved

I'm debugging a driver that cause kernel dump on my mac. It shows long backtrace composed out of series of addresses: panic(cpu 6 caller 0xffffff8004dc9986): trying to interlock destroyed mutex ...
Pullen asked 11/2, 2016 at 8:34

2

When my specs hit an error, I get a message like this: Vendor should reject duplicate names Failure/Error: user_with_duplicate_email.should_not be_valid expected valid? to return false, got true...
Dollie asked 19/2, 2011 at 4:0

4

I have a dedicated server with tens of virtual hosts. I want to determine what file is calling mail() function and log this globally. I need something like that: [Wed Feb 13 10:42:39 2013] mail() ...
Liar asked 13/2, 2013 at 9:56

2

Solved

The magic incantation LD_PRELOAD=/lib/libSegFault.so someapp runs someapp with libSegFault.so providing backtrace information on a SIGSEGV as described in many different places. Other than usin...
Chumash asked 9/9, 2013 at 20:27

2

Is there a way to view the variables set in each stack frame in a backtrace? I can come pretty close with a combination of debug_backtrace(true) to get the objects, get_object_vars on each object t...
Halstead asked 5/8, 2010 at 19:27

3

Solved

I'd like to do backtrace on MIPS. Then, I face one problem: how do I get the current PC register value, since it doesn't belong to 32 normal registers.. Thanks for your suggestion..
Allantois asked 11/3, 2013 at 4:4

2

I'm writing a C++11 software and I'm using lambdas. When I print the backtrace with backtrace_symbols_fd all functions are demangled except of lambda. It's a bit obvious because they are anonymous ...
Plafond asked 10/4, 2015 at 10:6

10

Solved

I am aware of function debug_backtrace, but I am looking for some ready to use implementation of function like GetCallingMethodName()? It would be perfect if it gave method's class too (if it...
Hildegardhildegarde asked 21/1, 2010 at 16:10

1

I make a stack trace at some point in my program. Once with libc's backtrace_symbols() function and once with unw_get_proc_name() from libunwind. backtrace_symbols() output: /home/jj/test/mylib.s...
Lanceolate asked 7/1, 2015 at 9:47

3

Solved

While handling signals in applications I can correctly see the backtrace in the debugger.But the backtrace system call is not showing the stack frames correctly.Is there a difference in how gdb sto...
Aguie asked 10/11, 2014 at 9:54

1

Solved

I really though I'd find an answer online, but I couldn't. Is there any difference at all? People say a 'backtrace' is generated upon something throwing an exception, while a stack trace is a list ...
Delouse asked 20/10, 2014 at 13:41

1

Solved

Glibc provides the very handy backtrace() and backtrace_symbols() functions, which can help getting the stack trace of the current function programmatically (see here). Does the Windows API provi...
Freeway asked 16/10, 2014 at 6:58

1

Solved

Two pieces of example code; first some C++ code calling into assembly: /* test1.cc */ #include <stdio.h> extern "C" void blah(); extern "C" void stuff() { printf( "This is a test\n" ); } ...
Chubby asked 26/9, 2014 at 17:27

3

I am trying to use the ruby debugger in a Rails app. What command do I need to type at the (rdb:1) prompt in order to display a stack trace? I've tried backtrace, but it only lists the topmost fra...
Yaker asked 10/4, 2013 at 17:32

3

Solved

I'm currently looking for a way to get backtrace information under Windows, from C code (no C++). I'm building a cross-platform C library, with reference-counting memory management. It also have a...
Vociferance asked 17/4, 2011 at 11:19

© 2022 - 2024 — McMap. All rights reserved.