Questions tagged [stack-frame]

Use stackframe for questions related to debugging unterminated function calls.

A stackframe is a list of functions that have been invoked but have not yet returned a value

References

291 questions
0
votes
1 answer

Copying an array to the Stack Frame in Assembly Language

Let's say I have to copy and array, call it X, to the Stack frame. and then display that stack frame on the screen before exiting from the procedure. How would I copy that array to a stack frame. I came up with this but it isn't working. .data …
0
votes
2 answers

Understanding Recursion and the Traversal of Stack Frames

This is not a homework question. I'm merely trying to understand the process for my own edification. As a computer science student, I have attended several lectures where the concept of recursion was discussed. However, the lecturer was slightly…
CaitlinG
  • 1,955
  • 3
  • 25
  • 35
0
votes
0 answers

How to specify stackframe size with gcc?

Using valgrind with a program, it shows ==940== to suppress, use: --max-stackframe=48000588 or greater ==940== Invalid write of size 4 ==940== at 0x80499EC: sequencer_run (stdio2.h:105) ==940== by 0x804DEF6:…
ceedee
  • 227
  • 1
  • 4
  • 13
0
votes
2 answers

Can we access Stack Frame Pointer from Function Name

Is there any way to access the Stack Frame Pointer from Function Name/Address in a C Program? I have tried to analyze the contents at memory addresses starting from the Function's Address in GDB, but could not get any meaningful information. Can…
Sandeep Singh
  • 4,941
  • 8
  • 36
  • 56
0
votes
1 answer

What determines whether gcc does something for alignment?

There are two simple C source files. The first is mainswap.c: void swap(int *x, int *y); int main() { int a, b; a = 5; b = 44; swap(&a, &b); return 0; } void swap(int *x, int *y) { int temp; temp = *x; *x = *y; …
junwanghe
  • 187
  • 1
  • 7
0
votes
1 answer

MIPS Assembly subroutines & stacks, Exception 5 bad data address, Exception 7 address error in store

I'm trying to figure out some stack frame business with assembly, and i admittingly have little idea what i'm doing... but i think i'm close? My program calls a subroutine that counts down from 10 and then quits. This actually seems to work fine,…
SomeRandomDeveloper
  • 489
  • 2
  • 13
  • 33
-1
votes
1 answer

What it means that Ebp register points to the old Ebp

i've been learning x86 assembly for reverse engineering recently and in my tutorial there is sentence that says Ebp points to the old Ebp, however i don't understand this, its confusing. I looked up on other posts about it but no one did answer my…
fre
  • 11
  • 5
-1
votes
1 answer

Calling a method when a previous call to the same method is still executing

In Java what happens when a method is called when a previous call to the same method is still executing? Does it execute typically,i.e create a different stack frame,with the local variables also local to each method call(not share it's local…
lanezalbryt
  • 41
  • 1
  • 5
-1
votes
1 answer

Understanding how the stack in assembly works

Having never before seen assembly in my life I'm having trouble understand the concept of Stack and how it works regarding the movement of registers. Here's a code I've been given for adding 2 numbers (using intel syntax): .intel_syntax…
PerkeBME
  • 1
  • 1
-1
votes
3 answers

stack pointer changes through function call

I'm trying to understand more about stack pointer's behavior through function calls, and I'm not sure I understand what happens when we call and return from a function. Assuming I have this main program: int main() { demo(); return 0; } And…
IntToThe
  • 59
  • 6
-1
votes
3 answers

why my variable's value changes (i noticed when using debugger that the value changed)?

I am prompting the user for a card number and then applying some formula on this number but I noticed an expected change in the output as the variable's value changes during the running of the code without reassigning it the variable 'long card'…
-1
votes
1 answer

PhpStorm debug stack frame colours explanation

This picture shows an example of the 'Frames' pane in PhpStorm while in debug mode: I have not found any explanation of the colours in the PhpStorm documentation and I wanted to know their meaning. Why some are green, other yellow and most of them…
Adrian
  • 1,558
  • 1
  • 13
  • 31
-1
votes
1 answer

How to reshape array of shape (2, *(x, y)) to (1, *(x,y), 2) while preserving the values of (x, y)?

I want to reshape array of shape (2, *(x, y)) to (1, *(x,y), 2) while preserving the values of (x, y)? (2, *(x,y)) where 2 represents the frames of game screen with (x, y) being an array with pixel values. I wish to convert it into an array of shape…
-1
votes
1 answer

How can I get the frame data for a call to list.sort()?

I'm trying to access the frame information for a particular call to the list.sort method, but i am having trouble. import inspect def calm_pear(x): # compare cur_frame = inspect.currentframe() out_frames =…
Toothpick Anemone
  • 4,290
  • 2
  • 20
  • 42
-1
votes
1 answer

How do the stack, heap and stack frame conceptually map to c# constructs?

How do the stack, heap and stack frame conceptually map to c# constructs? How are the they all related?
Janie
  • 1,855
  • 2
  • 13
  • 9
1 2 3
19
20