Questions tagged [stack-trace]

A report of the active stack frames at a certain point in time during the execution of a program.

A stack trace is a report of the active stack frames at a certain point in time during the execution of a program and is often referred to as a stack backtrace.

A stack trace is commonly used during interactive and post-mortem debugging. It typically lists all the functions awaiting return values on the stack at the time of the error. By examining what is on the stack and comparing it to what you expect, you can often determine how the error occurred. By inspecting the function containing the error, you may be able to edit and correct the problem.

A stack trace allows to track the sequence of nested functions called up to the point where the stack trace is generated. In a post-mortem scenario this is up to function where the failure occurred (but not necessarily is caused there). Sibling function calls are not visible in a stack trace.

Before you start

Please browse the list of frequently asked questions to see if your question is similar to one that has already been answered.

The tag should be used to mark questions related to generating, interpreting, debugging, or otherwise understanding stack traces.

2320 questions
1
vote
1 answer

Calculating saved ebp, eip and current ebp

I'm a bit confused about the presence of a "current ebp" versus a "saved ebp." When looking at a given stackframe with parameter x, is it not conceptually something like this: 0x8(%ebp) - parameter 1 0x4(%ebp) - eip here %ebp - saved ebp So you…
user1697083
1
vote
1 answer

Try block starts printing while printStackTrace method is Printing

public class Argon { public static void main(String[] args) { Basil basil = new Basil(); Scanner in = new Scanner(System.in); do { try { System.out.println("Please enter a number!"); …
Rhendz
  • 101
  • 1
  • 1
  • 9
1
vote
1 answer

how to log threadwise stack of multithreaded process in linux

I want to record stack information of each thread of processes to a txt file in linux. I want to use 'C/C++' programming language. If anyone can give me possible commands or any help please reply this question.
1
vote
0 answers

How to pull out an exception context record when the exception processing caused a crash

I have an issue tracking down a crash within my application using windbg. Usually I get a dump file for this application in a specified location and can debug the issue easily. It seems that this time the application crashed while it was writing…
Andrew Stern
  • 688
  • 9
  • 18
1
vote
1 answer

How do I get JBoss to print out exception stack traces in my server.log file?

I’m using JBoss 7.1.3. How do I get JBoss to print out stack traces of exceptions that occur in the application in the $JBOSS_HOME/standalone/log/server.log file? Right now, all my application displays…
Dave
  • 15,639
  • 133
  • 442
  • 830
1
vote
1 answer

IntelliJ Debugger Gets Completely Lost on Android NullPointerException?

Android debugging in IntelliJ is generally pretty decent. But the stack trace is worthless for a cause as simple as a NullPointerException within a UI handler lands you in Choreographer. For example, The Cause (null pointer dereference) @Override…
Brent Faust
  • 9,103
  • 6
  • 53
  • 57
1
vote
1 answer

Stack Trace in error in Webpage in ASP not in my code?

I'm new to web-development in ASP, and I'm experiencing a problem where I try to access a certain page through a link and I get an error, the first part says it's an exception, then tips on debugging and then the stacktrace. What happens is that…
Marcelo
  • 3,371
  • 10
  • 45
  • 76
1
vote
1 answer

Locate modules by stack address

I have a Winodws Mobile 6.1 application running on an ARMV4I processor. Given a stack address (from unwinding an exception), I like to determine what module owns that address. Using the ToolHelpAPI, I'm able to determine most modules using the…
PaulH
  • 7,759
  • 8
  • 66
  • 143
1
vote
0 answers

Stack trace debugging from crash count report - Microsoft.Phone.Controls.NativeMethods.ValidateHResult

Hopefully you can help me with analysing of a specific exception present in the crash count report from Windows Phone store. The following exception does not cause app crash, however since it happens a lot (the report says +1200 for the last month)…
1
vote
1 answer

Getting the StackTrace for a TestCaseResult that Failed in TFS via API

ITestCaseResult has a property "ErrorMessage" The ErrorMessage property has a max size of 527bytes, which is not enough to store weighty Exception structures and unfortunately does not seem to have an appropriate Exception property to store one…
jwrightmail
  • 907
  • 1
  • 13
  • 24
1
vote
4 answers

A calls B where B calls A, huge stack trace

I have a class that has two methods like this: int counter = 0; private void A () { Debug.Log (System.Environment.StackTrace); counter++; B (); } private void B () { counter++; if (counter < 100) A (); } This compiles…
Marconius
  • 683
  • 1
  • 5
  • 13
1
vote
0 answers

Lline numbers missing in google play crash stack trace

I recently moved some code to a library project. Since then, when a crash happens in that library, the stack trace of the crash report doesn't show the line number in the library's code - Unknown Source is shown instead. The problem is quite obvious…
AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
1
vote
2 answers

The conversion of the varchar value '9000437060' overflowed an int column. Maximum integer value exceeded

I'm having trouble figuring out this stack trace, everything is moving away from .NET but because its all tied to a 2000 MSSQL sever that the IT admin isn't willing to upgrade, I still have to deal with some low priority apps that connect with it if…
Alex Howell
  • 89
  • 2
  • 14
1
vote
1 answer

Append stacktrace of caller thread into the new thread being created, for easier debugging

I have frequently faced a problem while debugging. Sometimes a thread ends throwing an exception. And the reason of that issue is the caller/starter of the thread. The caller send incorrect parameter or called the thread without initializing…
1
vote
0 answers

What information can I get from this report that might help me track down a crash?

Users are reporting crashes at startup, but I have not been able to recreate the crash. I have received several stack traces as below. What can I learn from the stack trace? Build fingerprint:…
Hap
  • 556
  • 1
  • 6
  • 20
1 2 3
99
100