Re: Valgrind - exact leak location.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- Andrew Haley <aph@xxxxxxxxxx> wrote:

> Please don't top-post.
> 
>  > --- Andrew Haley <aph@xxxxxxxxxx> wrote:
>  > 
>  > > Srivatsan Ramanujam writes:
>  > >  > Hi Neil,
>  > >  > 
>  > >  > Thanks for your inputs.
>  > >  > Well by "exact location of error" I meant
> the
>  > > line
>  > >  > number in my program file where the error
>  > > occured.
>  > >  > 
>  > >  > As you can see
>  > >  > 
>  > >  > "ABCParser::parseString()(stl_vector.h:501)"
>  > >  > 
>  > >  > it says the error occured inside the
> function
>  > >  > parseString() but it doesn't indicate which
> line
>  > >  > number inside this function.
>  > > 
>  > > Line 501.
> 
> Srivatsan Ramanujam writes:
>  > sin't line 501 inside stl_vector.h?
>  > That simply indicates the overloading of []
> operator
>  > for a vector.
>  > 
>  > line number 501 inside my program merely sets a
> value
>  > for an INTEGER variable.
> 
> Well, that is the best that is known to the
> compiler.  It might be
> correct; in any case it's all the information we
> have.
> 
> It might be worth rebuilding without optimization to
> get a more
> accurate idea of what's going on.
> 
> Andrew.
> 
> 

oh sorry... I am new here...didn't know the
conventions used...shall not top post.

Oh...so that is the final level of resolution the
compiler can give on the error? 

I have used the db-attach option now, and I believe i
am making some progress through the use of gdb(which i
am new to)....thanks again for all your help.

vatsan.




"MAN'S EGO IS THE FOUNTAINHEAD OF HUMAN PROGRESS"
                                          Ayn Rand.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux