error cannot find function bounds

S

sam.barker0

Hi ,
I am having 3 functions.When I step through when func b returns to
funca.it throws an error "cannot find function bounds"

funca()
{
....
...
funcb();
}

funcb()
{
funcc();
....
....
....
//it works fine till here then the throws error
}
funcc()
{
}

sample of the error

(gdb)
114 }(gdb)
(gdb)
114 }0x08040054 in ?? ()
(gdb)
Cannot find bounds of current function
(gdb)


what am I doing wrong.How can i correct this?

Cheers
sam
 
A

Andrey Tarasevich

I am having 3 functions.When I step through when func b returns to
funca.it throws an error "cannot find function bounds"
...

Most likely you have a buffer overrun problem somewhere in the inner function
(or something like that). It overwrites the current stack frame of your function
with irrelevant data, and destroys the return address in the process, which is
normally stored there among other things. The result is that the code "returns"
to some unpredictable location and can't figure out where it is it returned to.
This is what causes the error message.
 
S

sam.barker0

Most likely you have a buffer overrun problem somewhere in the inner function
(or something like that). It overwrites the current stack frame of your function
with irrelevant data, and destroys the return address in the process, which is
normally stored there among other things. The result is that the code "returns"
to some unpredictable location and can't figure out where it is it returned to.
This is what causes the error message.

Yep.Thats was the problem.Thanks for your help Andrey.
Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,498
Latest member
log5Sshell/alfa5

Latest Threads

Top