error cannot find function bounds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sam.barker0@gmail.com

    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
  • Andrey Tarasevich

    #2
    Re: [OT] error cannot find function bounds

    sam.barker0@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

    Comment

    • sam.barker0@gmail.com

      #3
      Re: error cannot find function bounds

      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

      Comment

      Working...