W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Possible bug in HTRequest_delete?

From: Will Sargent <wsargent@best.com>
Date: Sat, 03 Jul 1999 10:07:46 -0700
Message-Id: <3.0.5.32.19990703100746.008443e0@shell3.ba.best.com>
To: www-lib@w3.org
Hi,

I've been fiddling with the HTMLParser, and I came across an access violation
when accessing slashdot.org.  I've included as much information as I can,
including stacktrace and logs, but I'm really not sure what is happening here.

The program broke here, and me->orig_output_stream was 0xdddddddd.

if (me) {
	HTTRACE(CORE_TRACE, "Request..... Delete %p\n" _ me);
	if (me->net) HTNet_setRequest(me->net, NULL);

	/* Should we delete the output stream? */
	if (me->orig_output_stream) {
	    HTTRACE(CORE_TRACE, "Request..... Deleting dangling output stream\n");
->	    (*me->orig_output_stream->isa->_free)(me->orig_output_stream);
	    me->orig_output_stream = NULL;
	    HTNoFreeStream_delete(me->output_stream);
	    me->output_stream = NULL;
	}


I might have done something wrong in terminating the request -- here's the
callback terminator...

int CHTMLParser::terminate_handler (HTRequest * request, HTResponse * response,
					    void * param, int status) 
{
  /* We are done with this request */
	HTRequest_delete(request);
	return 0;
}

Will.

Received on Saturday, 3 July 1999 13:09:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:16 UTC