I am trying to learn Common Lisp with the book Common Lisp: A gentle introduction to Symbolic Computation. In addition, I am using SBCL, Emacs, and Slime.
By the end of chapter 10, the author discuss the useful break function. In order to provide a…
Currently, I pass the StackFrame to grab the current file/line number:
Log.Message(new StackFrame(0, true), "FAILED to start cooling.");
Where in the Log class is:
public void Message(StackFrame Callstack, string message)
{
string logMessage =…
I want to see the stack frame of a method from a heapdump using mat. But I can't see any primitive type in the callstack, but types like String can be displayed from the threadDetail.
public int fun(int x, int y) {
int d = this.hashCode();
…
I'm creating Java byte code instrumentation tool with the help of ASM framework, and need to determine and possibly change the type of local variables of a method. Very quickly I encountered a simple case where variables and stack map nodes look…
I have recently upgraded my project to Java 1.8 from 1.7.
I get an exception for inconsistent stackmap for a method in one of my Classes.
Initializing some unassigned local variables in the method resolved it, but can somebody please explain why…
I am debugging a new thread library, in which I set the stack register rsp manually (to switch to a user-managed stack), and then invoke a function which never returns.
When I try to get a backtrace in gdb, I get the following output.
(gdb) bt
#0 …
In Python 2 (not sure about 3), the locals dictionary only gets updated when you actually call locals(). So e.g.
l=locals()
x=2
l['x']
fails because l doesn't have the key "x" in it, but
l=locals()
x=2
locals()
l['x']
returns 2.
I'm looking for a…
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…
In my program I am trying to modify the EIP to point to buffer base address which contains shell code
example:
0xbffff5f3 is an address on stack which points to
code[80] = "\x90\x90\x90\x90\x90\x31\xc0\x31\xdb\x31\xc9\"
I create a pointer ret and…
Way to get the Frame Pointer
On a Demo App running on iPhone 5s Device / Xcode 7, I tried to get the frame pointer of an arbitrary thread using thread_get_state , but always result in an incorrect one :
- (BOOL)fillThreadState:(thread_t)thread…
I am running a web crawler and parsing the page content with HtmlAgilityPack and randomly get a StackOverflowException in that C# library, but when I try to see the Call Stack list up to my code, I get:
"The maximum number of stack frames supported…
What is the best way to determine theoretically (i.e., without actually executing it) the circumstances in which a certain tree traversal recursive algorithm will produce a stack overflow in Java?
In order to clarify my question, consider the…
Write a portable function in C (with no assembly) that returns the size of its stack frame
int stackframe_size()
{
}
Attempted solving it as below - This function returns 228 bytes when compiled with VS 2010. Is there a way to verify its…
Consider the x86 instruction ENTER. From Intel's instruction set reference.
Creates a stack frame for a procedure. The first operand (size operand) specifies the size of the stack frame (that is, the number of bytes of dynamic storage allocated on…
I'm learning gdb debugger and one question I cannot answer is:
new function calls result in additional stack frames allocated for them and call stack grows downward; stack frame is deallocated and returned to unused memory. is it possible that a…