I have the following problem with my C program: Somewhere is a stack overflow. Despite compiling without optimization and with debugger symbols, the program exits with this output (within or outside of gdb on Linux):
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
The only way I could detect ...
I'm looking at refactoring a lot of large (1000+ lines) methods into nice chunks that can then be unit tested as appropriate.
This started me thinking about the call stack, as many of my rafactored blocks have other refactored blocks within them, and my large methods may well have been called by other large methods.
I'd like to open th...
Hello,
I've a curious behavior in a C program. I pass a few arguments to a function with the following signature in a file called foo.c:
foo (char *first, size_t a, size_t b, size_t c, char *last);
Now, when I call this function from another C file that includes foo.h, e.g. with:
foo("first value", 1, 2, 3, "last value");
in foo f...
I have a nightly build DOS batch script that invokes devenv.exe to build a solution file. Intermittently I observe a devenv.com crash. I get a DW20.exe "share your pain" dialog.
1) If Debug button is pressed, I am not presented with a usual "Choose your debugger" window. Rather, it does nothing.
2) If I launch a Visual Studio and ...
I wanted to ask something that I think is not clearly specified in the tinyos2 programming manual. When a command or task signals an interface event are the wired functions called immediately, i.e. in the same callstack, or are these signaled events "posted" for later execution?
I tend to believe it's the former one, but just to clarify...
Is there a plugin available for Visual Studio .Net that gives a visual representation of the CallStack while debugging (instead of the stacked representation of method calls that is in-built in it)? (I am imagining something similar to an execution path we have in SQL server) This, imho, would help in visualizing the logic flow of the pr...
I have the following JavaScript:
function b() {
alert(arguments.caller[0]);
}
function X(x) {
this.x = x;
}
X.prototype.a = function(i) {
b();
}
new X(10).a(5);
This will show the message "5". However, I want to show "10", i.e. in the function b I want to access the "this" property of the caller. Is this possible, and h...
I am not too familiar with the specifics of every javascript implementation on each browser. I do know however that using setTimeout, the method passed in gets called on a separate thread. So would using a setTimeout recursively inside of a method cause its stack to grow indefinitely until it causes a Stack Overflow? Or would it create a...
I have an application that consists of managed and unmanaged
DLLs. My managed DLL is a C++/CLR DLL that is used to access
a native C++ DLL. When code crosses from managed to native
the logic is wrapped in a try/catch statement. The purpose
is to log any exceptions before we rethrow them.
C++/CLR code calling into native code.
try
...
We have a native C++ application running via COM+ on a windows 2003 server. I've recently noticed from the event viewer that its throwing exceptions, specifically the C0000005 exception, which, according to http://blogs.msdn.com/calvin_hsia/archive/2004/06/30/170344.aspx means that the process is trying to write to memory not within its ...
I'm trying to tune the performance of my application. And I'm curious what methods are taking the longest to process, and thus should be looked over for any optimization opportunities.
Are there any existing free tools that will help me visualize the call stack and how long each method is taking to complete? I'm thinking something that ...
I read call stack in Magento, but they are unreadable due to string shortage, eg:
include('/var/www/oneste...')
How can I see full string, in this case full path?
...
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...
We have a very complex set of stored procedures that have been migrated over from Oracle in to SQL 2005. At one time, I heard there was a solution where sequence diagrams could be created from either watching a stack trace in VS or by the SQL profiler. I've searched long and hard and have found may tools that will create sequence diagr...
My understanding is that when you kill a C++ application through Task Manager in Windows XP, the application is still "cleanly" destructed - i.e. the call stack will unwind and all the relevant object destructors will be invoked. Not sure if my understanding is wrong here.
Is it possible to kill such an application immediately, without...
How can I find out in a javascript function which was the calling (the former in the call stack) function?
I would like to determine if the former called function is a __doPostback in the onbeforeunload event.
...
I'm debugging a program (VS2008), and I was stepping through lines of code. I came across one line where a delegate function was being called, and I tried to step into it. However, rather than stepping into the method as I expected, the method was bypassed, with the debugger instead stepping into what I assume is a function called by the...
For debugging, it is often useful to tell if a particular function is higher up on the call stack. For example, we often only want to run debugging code when a certain function called us.
One solution is to examine all of the stack entries higher up, but it this is in a function that is deep in the stack and repeatedly called, this lead...
What is the order in which exception handling stack frames are pushed onto the call stack in say C#. If i have a method:
private void MyMethod() {
try {
DoSomething();
}
catch (Exception ex)
{
//Handle
}
}
Is a separate stack frame created for each exception handler as follows?
DoSomething stackframe<br/>
Exceptio...
Hello!
There are two stacks in the program: one is created by OS and the second is created by program itself to run some code with it.
When the program crashes in the second stack, I want to switch to the main stack in gdb and see the backtrace. Is it possible?
I tried to save the rsp to a variable and change it after the crash, but th...