Gabriele Bartolini writes:
 > Ciao Loic,
 > 
 >      excuse me, but ... can you give me a little explaination? And, how can I
 > run purify by myself? What do I need? I am curious and I want to learn
 > using it.
 
 Unfortunately purify is a commercial product and you can't use it. That's
very sad because it's an incredibly usefull product. Maybe someone will
want to introduce dmalloc or/and electric fence to htdig.

 > >****  Purify instrumented ../htdig/htdig (pid 24516)  ****
 > >FMR: Free memory read:

 This code reads from memory that was freed (free()). Following is the
stack frame at the moment of the error:

 > >  * This is occurring while in:
 > >    String::allocate_space(int) [String.cc:570]
 > >    String::operator =(const String&) [String.cc:98]
 > >    Document::Retrieve(HtDateTime) [HtHTTP.h:146]
 > >    Retriever::parse_url(URLRef&) [Retriever.cc:431]
 > >    Retriever::Start() [Retriever.cc:305]
 > >    main           [htdig.cc:290]
 > >    _start         [crt1.o]

 The memory location in which the error occured was malloc'ed before being
free. The malloc occured at the following point in the code (stack frame):

 > >  * Reading 4 bytes from 0x3714c8 in the heap.
 > >  * Address 0x3714c8 is 8336 bytes into a freed  block at 0x36f438 of 8696
 > bytes.
 > >  * This block was allocated from:
 > >    malloc         [rtlib.o]
 > >    __bUiLtIn_nEw  [new1.cc]
 > >    __builtin_new  [rtlib.o]
 > >    Document::Retrieve(HtDateTime) [Document.cc:211]
 > >    Server::Server(char*,int) [Server.cc:83]
 > >    Retriever::Initial(const String&,int) [Retriever.cc:157]
 > >    main           [htdig.cc:285]
 > >    _start         [crt1.o]

 The code that was responsible for the apparently incorrect free 
was called at this point (stack frame):

 > >  * There have been 75 frees since this block was freed from:
 > >    free           [rtlib.o]
 > >    __bUiLtIn_dElEtE [new2.cc]
 > >    __builtin_delete [rtlib.o]
 > >    Transport::~Transport() [Object.h:31]
 > >    HtHTTP::~HtHTTP() [HtHTTP.cc:124]
 > >    Document::~Document() [Document.cc:99]
 > >    Server::Server(char*,int) [Server.cc:82]
 > >    Retriever::Initial(const String&,int) [Retriever.cc:157]
 > >    main           [htdig.cc:285]
 > >    _start         [crt1.o]
 > 

 Claro ?-)

-- 
                Loic Dachary

                ECILA
                100 av. du Gal Leclerc
                93500 Pantin - France
                Tel: 33 1 56 96 10 85
                e-mail: [EMAIL PROTECTED]
                URL: http://www.senga.org/


------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to