473,394 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 15824
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ian Lazarus | last post by:
Greetings, Is there a consensus as to the best way to report a programming error, for example an out of bounds index value passed to a function? There are three approaches that I can think of: ...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
14
by: tasheeta | last post by:
In my simple program I am getting this error..please help I am trying to find integers where 65537i + 3551j = 1 error: cannot convert `__complex__ int' to `long int' in assignment ...
2
by: Praveen | last post by:
In the ISPF editor I am using, for a particullar PO Dataset I am getting the result of FIND statement narrowed down to the colums 48-56. i.e. if I give "FIND 'TO' ALL", the result I am getting as...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: dwenwa | last post by:
Hi, I have a datagrid in my application that has a Template Column with a radiobutton. After selecting the item in the datagrid and the submit button, the program executes getSelectedItem(). ...
2
by: Piedro | last post by:
Can someone reproduce the following error? I'm using the module at the bottom of my post to owner draw a menu items, I call the module from a form like this: Private Sub mnuOpen_DrawItem(ByVal...
12
by: TristaSD | last post by:
Hi, Here's a nice footer I get inside every php page I write in wwwroot on my server. The code gets parsed just fine. I installed php5.2-win32 under W2K Server, IIS 5.0. I've installed php on...
18
by: pereges | last post by:
Hi, I'm thinking of having a seperate module in my project that deals with the exceptions and errors as they occur in a C program. Is this a good idea ? I thought of doing this because it is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.