Help with async request problem in libwww

Well,  really I have two questions:

1)  Is HTSaveAndCallback supposed to work?  I seem to be missing some
point in how to use it,  and a code example would be very, very handy.
It looks like you need more information before calling it than is really
possible.

2)  Are there any patches for libwww 3.0?  I have a code dumper when
the HTTP daemon returns a redirect to the client.  This could be
my own error,  but Purify doesn't indicate anything in my code touching
the broken structure.

Here is some output,  the CVmalloc messages is from a debugging version
of malloc,  the compaints
 Loading http://www-admin.corp.sgi.com/back3.map?154,152
CVmalloc error (Process 15735): memory area @0x105ce488 has already been freed
set 4 to http://www-admin.corp.sgi.com/online_docs/index.html
CVmalloc error (Process 15735): memory area @0x103ab950 has already been freed
Segmentation fault (core dumped)

This is one piece of code being complained about in HTFWriter_free:
   565      if (me->callback) {
   566          (*me->callback)(me->request, me->filename);
   567      }
   568      if (me->filename) free(me->filename);
 * 569      free(me);

Here is a complete library stacktrace:
   2 free() ["/vobs/4Speed/usr/src/VIEW/4Speed/cvmalloc/cvmalloc.c":657,
0x4428b4]
   3 HTFWriter_free()
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTFWrite.c":569,
0x5ff8cc38]
   4 HTMIME_free(me = 0x105d6438)
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTMIME.c":346,
0x5ffb522c]
   5 HTTPStatus_free(me = 0x105d6358)
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTTP.c":581,
0x5ffa9420]
   6 HTLoadHTTP(request = 0x105cf4e8)
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTTP.c":730,
0x5ffa9b84]
   7 HTLoad(request = 0x105cf4e8, keep_error_stack = '\001')
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTAccess.c":697,
0x5ff879b0]   8 HTLoadDocument(request = 0x105cf4e8, keep_error_stack = '\001')
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTAccess.c":858,
0x5ff882b0]
   9 HTLoadAnchorRecursive(anchor = 0x105d32a8, request = 0x105cf4e8)
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTAccess.c":1008,
0x5ff88720]
   10 HTLoadHTTP(request = 0x105cf4e8)
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTTP.c":754,
0x5ffa9d68]
   11 HTLoad(request = 0x105cf4e8, keep_error_stack = '')
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTAccess.c":697,
0x5ff879b0]
   12 HTLoadDocument(request = 0x105cf4e8, keep_error_stack = '')
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTAccess.c":858,
0x5ff882b0]
   13 HTLoadAbsolute(addr = 0x105cfb88 =
"http://www-admin.corp.sgi.com/back3.map\?115,143", request = 0x105cf4e8)
["/usr/people/drand/HTML/WWW/Library/sgi/../../Library/Implementation/HTAccess.c":885,
0x5ff883b8]

Thanks in advance for any help.

Doug

-- 
Doug Rand <drand@sgi.com>		(508) 567 - 0217	
Silicon Graphics			http://reality.sgi.com/employees/drand
Digital Media Systems			User Interface Technology
Disclaimer:  You think *I'm* opinionated?

Received on Friday, 21 July 1995 10:15:36 UTC