1,151 questions
-1
votes
1
answer
244
views
What's the meaning of a memory address in the call stack window in Visual Studio?
I'm debugging my application, called floor.exe. My application is throwing an exception and I'm trying to understand what's happening.
I've opened the call stack window, and I can see that window ...
0
votes
0
answers
14
views
Watch an expression at a specific call stack entry?
In Visual Studio 2022, C# project, I need to keep an eye on an expression that's valid only in a specific method, but I need to keep an eye on it even when I'm stepping through called methods, and ...
1
vote
2
answers
210
views
Call Stack - What is stored in the call stack between the declaration of a caller function's last variable and a callee function's first variable?
I am using an Ubuntu 16.04 a 32-bit Virtual Machine OS.
I executed
sysctl -w kernel.randomize_va_space=0
to disable ASLR in root prior to gcc.
I have also compiled this using the command:
gcc -g -fno-...
2
votes
0
answers
50
views
Are template arguments accurate in Visual Studio's "Call Stack" window?
I am observing inconsistent template arguments shown in Visual Studio's "Call Stack" window.
Here's one example:
template<class T>
class Class {
public:
Class() { method(); }
...
0
votes
1
answer
158
views
In a release build by GCC, i.e., without -g flag, why function frame is missed in backtrace of GDB?
It's a follow up question of In a release build by GCC, i.e., without -g flag, is register info trustable?, thanks for the answer of it, I now understand that the registers designated for function ...
1
vote
1
answer
90
views
How to add `HasCallStack` to a custom monad in Haskell?
I can use a type alias to add HasCallStack to a monad e.g.:
type XIO' a = HasCallStack => IO a
which saves me some keystrokes and I don't have to remember about putting HasCallStack everywhere.
...
0
votes
1
answer
92
views
Does using undefined as the callstack result in a compiler error?
I was just trying out some stuff with the ImplicitParams language extension when I typed this code:
let ?callStack = undefined in undefined and it caused a compiler panic:
panic! (the 'impossible' ...
0
votes
1
answer
131
views
32 bit application stack trace
I have an old application 32bit that doesn't change. I'm developing a DLL for it.
Here is the code of my function:
void PacketHandler::CMSG_Hook(CDataStore* data)
{
CDataStore** pointerToPacket = &...
0
votes
1
answer
120
views
SAP Odata ABAP standard stack calls
I tried to debug the ABAP stack of an OData service, and I see there is this call which is taking more time which is called as "Load MPC class" same with all the DPC and DPC_EXT classes, ...
1
vote
1
answer
46
views
Is there a way to ensure a function is called for every instance of a subclass inheriting from a base class?
OptionsAndAnswer is the base class.
abstract class OptionsAndAnswer(
...,
open val options: List<Option>
){
fun validate() {
require(options.map { it.id }.distinct().size == ...
1
vote
1
answer
314
views
Get-PSCallStack in Windows PowerShell
I am writing a recursive function and would like to add a debugging mode with some (function) caller information along with the ScriptLineNumber.
In PowerShell 7, I am able to do something like:
...
-4
votes
2
answers
116
views
CallStack of chain of methods [closed]
I'm trying to find out a way to get the complete method chain call stack A() -> B() -> C() -> D(). However, StackWalker or Thread.currentThread().getStackTrace() returns only the originating ...
0
votes
1
answer
111
views
Maximum Call Stack Size Exceeded when using datalist in React
I'm building a React component that fetches drug data from an FDA API and displays it in a <datalist> for searching. However, I'm encountering a `Maximum call stack size exceeded error when ...
1
vote
0
answers
104
views
The caller/callee relationship in a flamegraph generated by golang pprof is wrong. Why?
I use pprof to get the CPU profile of a running golang program (cfs-server of CubeFS). And generate a flamegraph using the CPU profile:
go tool pprof http://localhost:16220/debug/pprof/profile\?...
0
votes
1
answer
62
views
callback queue , call stack and registered event like setTimeout
what happens if any event is register (like setTimeout) but it takes more time (assume 5,6 min ), and currently call stack and callback queue is completed all task and it is empty, so the program is ...