473,770 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 15859
sa*********@gma il.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...@gma il.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
1705
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: (traditional) error return value error value in object exception
67
4283
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. Unfortunately these ad hominem rhetorts are frequently introduced into purely technical discussions on the feasibility of supporting such functionality in C++. That usually serves to divert the discussion from the technical subject to a discussion of the...
14
2178
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 #include <iostream> #include <complex>
2
2217
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 "CHARS 'TO' - found 239 times within columns 48 to 56". Please guide me as to how to make this PDS back to normal so that the FIND command processes the whole 1 TO 80. Thank you for the valuable time.
6
4753
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 appreciated. Thanks in advance
2
1664
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(). See below. This works fine except when there is only one row in the datagrid. Then I get the Index out of bounds error. Has anyone seen this before?
2
2647
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 sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles mnuOpen.DrawItem Dim Ic As New Icon(Application.StartupPath & "\101_72.ico") DrawItems(e, mnuOpen, Ic) End Sub
12
3014
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 XP machines before, no problems there. Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
18
1802
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 getting really repetitive to have the same thing in my code over and voer again eg. if malloc fails then: int *p; p = malloc(sizeof(int) * 5);
0
10231
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.