W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Re: HTAnchor_delete ?

From: Michel Philip <philipm@altern.org>
Date: Sun, 22 Apr 2001 22:35:21 +0200
Message-ID: <3AE34089.EBD4D569@altern.org>
To: www-lib@w3.org
Hi Anton, hi all.

> Is this a bug, or am i missing something ?

Thank for your clear bug report.

I don't know if you missed something.

But I agree with: 

> HTAnchor * anch = HTAnchor_findAddress("http://something/something");
> HTAnchor_detele(HTAnchor_parent(anch));
> anch = HTAnchor_findAddress("http://something/something"); <-- SIGSEGV here !!!!

My opinion is that the good behaviour must be no SIGSEGV 
but a newly allocated HTParentAnchor for the requested address.
Indeed, if the address is not in the adult table a new entry is created,
so we will never get a NULL pointer for such a call.

I expect I could soon propose a big path for HTAnchor.c

Michel.

> HTAnchor_delete ?
> 
> From: Anton Belov -- Customer Engineering (antonb@scot.canada.sun.com)
> Date: Fri, Mar 02 2001
> 
> *Next message: Markus Bäurle: "Treatment of event loop"
> 
>    * Previous message: Karel Buk: "Http basic Authentification"
>    * Next in thread: Serge Adda: "Re: HTAnchor_delete ?"
>    * Reply: Serge Adda: "Re: HTAnchor_delete ?"
>    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>    * Other mail archives: [this mailing list] [other W3C mailing lists]
>    * Mail actions: [ respond to this message ] [ mail a new topic ]
> 
>   ------------------------------------------------------------------------------
> 
> Message-Id: <200103021740.MAA22418@rayo.canada.sun.com>
> Date: Fri, 2 Mar 2001 12:40:44 -0500 (EST)
> From: Anton Belov -- Customer Engineering <antonb@scot.canada.sun.com>
> To: www-lib@w3.org
> Subject: HTAnchor_delete ?
> 
> Hi !
> 
> For some reason HTAnchor_delete doesn't remove the reference to the deleted
> anchor from the adult_table[] hash table, so if i happen to request another
> anchor for the same URL, the hash table contains a pointer to the anchor that
> already has been deleted, which in term causes exception:
> 
> HTAnchor * anch = HTAnchor_findAddress("http://something/something");
> HTAnchor_detele(HTAnchor_parent(anch));
> anch = HTAnchor_findAddress("http://something/something"); <-- SIGSEGV here !!!!
> 
> Is this a bug, or am i missing something ?
> 
> Thank you for your help !!!!
> 
> Best Regards,
> Anton
> 
> ~v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^vv^v^v^v^v^v^v^v^v^v^v^~
> 
> Anton Belov
> Sun Microsystems Americas Customer Engineering
> anton.belov@canada.sun.com
> Ph. (905)415-2841  Fax. (905)477-0217
> 
>   ------------------------------------------------------------------------------
> 
>    * Next message: Markus Bäurle: "Treatment of event loop"
>    * Previous message: Karel Buk: "Http basic Authentification"
>    * Next in thread: Serge Adda: "Re: HTAnchor_delete ?"
>    * Reply: Serge Adda: "Re: HTAnchor_delete ?"
>    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>    * Other mail archives: [this mailing list] [other W3C mailing lists]
>    * Mail actions: [ respond to this message ] [ mail a new topic ]
Received on Sunday, 22 April 2001 16:35:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT