468,513 Members | 1,763 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

error cannot find function bounds

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
Mar 23 '08 #1
2 15033
sa*********@gmail.com wrote:
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.

--
Best regards,
Andrey Tarasevich
Mar 23 '08 #2
On Mar 23, 7:15 pm, Andrey Tarasevich <andreytarasev...@hotmail.com>
wrote:
sam.bark...@gmail.com wrote:
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.

--
Best regards,
Andrey Tarasevich
Yep.Thats was the problem.Thanks for your help Andrey.
Cheers
Mar 23 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ian Lazarus | last post: by
67 posts views Thread by Steven T. Hatton | last post: by
14 posts views Thread by tasheeta | last post: by
2 posts views Thread by Praveen | last post: by
6 posts views Thread by Peter Frost | last post: by
2 posts views Thread by dwenwa | last post: by
12 posts views Thread by TristaSD | last post: by
18 posts views Thread by pereges | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.