stack-trace

How can I get PHP to produce a backtrace upon errors?

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

Find the source of (eval:...) code

I've got code which produces a stack trace at some point: fileA.rb:1670:in `flow_completed_for' (eval):58:in `on_success_res_for_register' fileB:312:in `send' fileC:312:in `request_specific_response_dispatch' ... How can I find the source where on_success_res_for_register was defined? The code is called from some timer and I have prob...

What are the numbers on the end of lines in a stacktrace

What do the the numbers after the "+" at the end of the lines in a stack trace represent? Function Source ntdll!KiFastSystemCallRet ntdll!ZwRemoveIoCompletion+c kernel32!GetQueuedCompletionStatus+29 w3tp!THREAD_POOL_DATA::ThreadPoolThread+33 w3tp!THREAD_POOL_DATA::ThreadPoolThread+24 w3tp!THREAD_MANAGER::ThreadMan...

Java StackTrace Editor or GUI

Hello! My java app is dumping stacktrace to a log file. However, the solution center wants an "easier" way to understand the generated stacktrace. Other than training them in java, is there a stacktrace editor or gui that could make their life easier? Thanks so much in advance! ...

Can somebody give me a hand about this stacktrace in iPhone app?

Program received signal: “EXC_BAD_ACCESS”. (gdb) bt #0 0x30011940 in objc_msgSend () #1 0x30235f24 in CFRelease () #2 0x308f497c in -[UIImage dealloc] () #3 0x30236b78 in -[NSObject release] () #4 0x30a002a0 in FlushNamedImage () #5 0x30250a26 in CFDictionaryApplyFunction () #6 0x30a001a4 in _UISharedImageFlushAll () #7 0x30a007...

Why would traceback.extract_stack() return [] when there is definitely a call stack?

I have a class that calls traceback.extract_stack() in its __init__(), but whenever I do that, the value of traceback.extract_stack() is []. What are some reasons that this could be the case? Is there another way to get a traceback that will be more reliable? I think the problem is that the code is running in Pylons. Here is some co...

Generating C++ BackTraces in OS/X (10.5.7)

I've been utilizing backtrace and backtrace_symbols to generate programmatic stack traces for the purposes of logging/diagnosis. It seems to roughly work, however, I'm getting a little bit of mangling and there are no accompanying file/line numbers associated with each function invocation (as I'd expect within a gdb bt call or something...

How to get the stacktrace in a mobile device?

I'm getting a NullPointerException in a Nokia S40. I want to know what is causing this exception. The device shows: NullPointerException java/lang/NullPointerException This error only occurs in the device, running in the emulator the application works fine. I use microlog to debug my application. But the application works fine i...

Python When I catch an exception, how do I get the type, file, and line number?

Catching an exception that would print like this: Traceback (most recent call last): File "c:/tmp.py", line 1, in <module> 4 / 0 ZeroDivisionError: integer division or modulo by zero I want to format it into: ZeroDivisonError, tmp.py, 1 ...

Getting full string stack trace including inner exception

Java's e.printStackTrace() doesn't print all the details of the inner exception's stack trace. Is there a ready way to generate the complete stack trace in string form? (besides formatting it myself) Edit I just found out what printStackTrace() does - apparently the stack frames it filters out are exactly the ones common to the inner ...

enable line numbers of stack trace in xcode console

I read this post http://stackoverflow.com/questions/1093999/stack-trace-or-more-info-on-unhandled-exception-in-xcode-iphone It seems like the chosen answer is the correct way, however the answerer doesn't tell you how to create the global breakpoints. Does anyone know how I can create these break points and see the line number of my ex...

XCode Global Breakpoints don't show stack trace

I set up global break points from locations libobjc.A.dylib and CoreFoundation. I run my iphone app and it hits the exception. XCode stops at the breakpoint but does not show any error in the log besides: Pending breakpoint 1 - "objc_exception_throw" resolved Pending breakpoint 2 - "-[NSException raise]" resolved I click the "Continu...

Showing stack trace of exception that is re-thrown, rather than stack trace from throw point

I've confirmed this same behavior in VS2005, so I was wrong to call it a .NET (1.1) bug. I'm leaving the original question below, but my revised question is this: how do I get Visual Studio to give me the stack trace of the exception I've caught and re-thrown in the Call Stack window, rather than only displaying the call stack from the ...

Why are the names of generic types mangled in a .NET stack trace?

I have an exception being thrown from a C# method, that takes a generic list as a paremeter. private static void DoWork(List<ClassName> a) { } When it throws an exception, the stack trace shows an `1 instead of the class name for the list. Why is this? This is what the stack trace has. ... at DoWork(List`1 a). ... ...

How to read a crash report from iPhone

Got a crash report from a beta tester and I'm having trouble identifying the root of the problem. Clearly something went wrong when trying to set a UIButton (screenOverlay). Here's its creation in ViewDidLoad: UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(0, 0, self.view.frame.size.width, sel...

StackTrace from Exception on different thread?

There is a constructor on StackTrace that takes an exeption as an argument. All fine and well, but I noticed that all the other constructors say that it will get the StackTrace from the current thread, but the constructor taking the exception does not say anything about that other than The resulting stack trace describes the stack...

Print PHP Call Stack

I'm looking for a way to print the call stack in PHP. Bonus points if the function flushes the IO buffer. ...

How to get a full stacktrace from a crashed mixed mode exe/dll ?

Hi ! I wrote an application in C++/CLR. It uses a native lib/dll. On rare occasions, it crashes insider this native dll. I then get a stacktrace, but only up to the managed part, the inside native part is left out. Is there a way to let it display the whole stacktrace? I made the following test: I added a line of code inside the native...

Getting a longer stacktrace from FastMM?

When FastMM logs a memory leak it includes a stacktrace going back 9 calls. Problem is that the stacktrace is too general to locate the problem easily. The last function call in the trace is called at least 50 times and the object leaked is a very common one. What can I do to make the stacktrace longer? Tips to locate leaks more easily...

What does __forwarding__ in the stack trace mean?

(gdb) bt #0 0x302ac924 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ () #1 0x92077e3b in objc_exception_throw () #2 0x302d6ffb in -[NSObject doesNotRecognizeSelector:] () #3 0x3026e056 in ___forwarding___ () #4 0x3024a0a2 in __forwarding_prep_0___ () #5 0x00004ae9 in -[GameObject doesTouch:] (self=0xe893a0, _cmd=0x643ee, obj=0xe82...