stack-trace

An I/O error occured while sending to the backend - Postgres

We are having a random problem inserting data into our Postgres database. I can't seem to reproduce the below error but its happening to our customers quite often. An I/O error occured while sending to the backend Yes occurred is misspelled in this error. I can't seem to find anything on it. I was hoping to find more in logs but ...

How to Trace JAR file execution is hosted on IIS6.0 Server.

We are using few JAR files in our web-application hosted on IIS6.0 Server and those files are used in somepages, we want to trace the execution of those files (both in client and server side) however tools like httpwatch/Fiddler...are not helping us in this. Do we have any specific tool to trace the execution of the JAR files in IIS Envi...

Prevent method from showing up in Stack Traces

Using the .NET CLR, is there a way to prevent a certain method to show up in the stack trace? Especially I just want to remove the last call from the stack trace before throwing an exception. I'm just curious, unsafe calls and reflection hacks are valid solutions. ...

Listing variables in current and higher frames

Hi, I'm trying to debug a script with perl -d .... After I break where I want, I'd like to print out the current environment and the environment from higher frames. I see the stack via T. Now, if I try V, I get a list of everything, which is pretty much useless, since it includes stuff like SO_BROADCAST constants, etc. How can I filter ...

Is Powershell's stack trace broken?

I am writing a simple unit test harness in powershell I designed the harness such that its assert functions takes a script-block as a parameter to allow the harness to run the code from within the assert function and treat any exceptions are thrown as a test failure. If the tests fail I want to return line in the unit test in which the...

How do you understand the cause of exception having stacktrace?

We have written an Android application which sends stack traces to our server, if any occur. Sometimes we get weird stack traces that seem not to be an exception from our application. For example: java.lang.NullPointerException at android.widget.FastScroller.scrollTo1(FastScroller.java:306) at android.widget.FastScroller.onTouchEvent(F...

tool for getting the stack trace of on a file

Do you know if there is a tool in Windows that is able to start a C++ application and, when there is an exception, is able to automatically save to file the stack trace information? I now that there is the dbghelp.dll and StackWalk64 function but I would like rather to use some tool instead of coding myself. Right now I am also looki...

Why I do not get line numbers in exception stack trace if I have PDB and symbols loaded?

Hello, I have a solution with several projects. The solution is in Release mode with no optimization and with pdb files generated. While running Unit Tests i get exceptions but the stack trace does not contains the line numbers. At the modules window I can see that the current assembly is not optimized and that it has symbols loaded. J...

Why stacktrace is not displayed when an exception occurs?

Hi all. I have a problem. My program crashes on start up without any stack trace. The only thing I can see is "Send Report To Microsoft". This happens only on one PC. Can you explain me Why some exceptions are with stack trace and some are without? Thanks. ...

How to print exception stack trace of Objective-C exceptions with GNU runtime and without GNUStep?

I have an Objective-C app build on Linux with GCC 4.3 using no specific framework (only GNU-runtime). I am using Objective-C exceptions (via the '-fobjc-exceptions' compiler flag). Now I want to print the stack trace of such an exception when I caught some. Or what would make me even happier: put the trace in a string or some kind of st...

Symbian: how to get stack trace on panic when running on device?

Hello there, Could somebody please give me a hint about how to get stack trace in Symbian. I'm experiencing KERN-EXEC 0 panic, but cannot locate it's origin. I've seen other SO questions about this, like this, but there's only a description of how to solve this problem on emulator. But my program deals with Wi-Fi and have to be run on de...

Help reading ANR stack traces in Android.

I have been battling an ANR happening in one of my services for a while now. It is very hard to reproduce and the UI seems to have full functionality right before it happens 100% of the time there is never any noticeable lag or freezing. My service has a TimerTask and a few AsyncTask's that it runs and that is it. The stack traces ...

Logcat standalone client

I have developed android application. Now it is time to give it to the beta testers. Is there the standalone application witch will collect LogCat output? I do not want to force testers to install whole android development environment. I was thinking about application witch will collect logs through usb port and display them to the PC c...

How do you write a full stack trace to the log?

I was catching an exception and trying to write the stack trace to the logs like this: log.warn(e.getMessage()); But all it said was null So I changed it to log.warn(e.toString()); And now it says only java.lang.NullPointerException How do I write the full stack trace to the log so I can see where this Exception is being gen...

Why does backtrace not contain Objective-C symbols regardless of -rdynamic?

Update: I'm working with the GNU-runtime on Linux. The problem does not occur on MacOS with the Apple-runtime. Update 2: I compiled the GNU-runtime on MacOS and build the example with it. The error does not occur on MacOS with the GNU-runtime. I would say the problem is the glibc (since backtrace and backtrace_symbols are glibc extensio...

How can I rethrow an exception in Javascript, but preserve the stack?

In Javascript, suppose I want to perform some cleanup when an exception happens, but let the exception continue to propagate up the stack, eg: try { enterAwesomeMode(); doRiskyStuff(); // might throw an exception } catch (e) { leaveAwesomeMode(); throw e; } doMoreStuff(); leaveAwesomeMode(); The problem with this code is that ...

How to get stack trace of a thread

I have a multithreaded application. Several messages are coming to the application and are processed in separated threads. For this I am using classes ThreadPoolExecutor and FutureTask from package java.util.concurrent. Occasionally I have some deadlocks in the application. When a deadlock occurs I want to interrupt the blocking thread ...

ADO.Net Data Services Not Running in Medium Trust

I am trying to build a proof-of-concept on ADO.Net data services for my team, but I seem to be running into issues with my web server's medium trust settings. The data service is simple, just exposing a few tables as an example, and I am not using any service operations. Also, the service is the only endpoint in my project; I am not ru...

What are the numbers in a .NET stack trace on an ASPX error page?

What are the numbers in a .NET stack trace on an ASPX error page (see picture)? They don't seem to be line numbers as they are too large? How can those numbers help me in determining the line of code that threw the exception? ...

How to get line number(s) in the StackTrace of an exception thrown in .NET to show up

MSDN says this about the StackTrace property of the Exception class: The StackTrace property holds a stack trace, which you can use to determine where in the code the error occurred. StackTrace lists all the called methods that preceded the exception and the line numbers in the source where the calls were made. So I kno...