Paul Slootman <[EMAIL PROTECTED]> wrote:
> > *NOTE* The use of zlib to enable compression should be considered a beta quality
> > feature in this version. It requires the zlib library to compile it.
>
> I've run into a small problem. While running convert-cache while
> upgrading a 2.6 cache, it segfaulted. (It shouldn't be necessary to run
> convert-cache in this case, should it? However, it shouldn't segfault
> either then.)
You should only need to run convert-cache when changing from version
2.5{x} to version 2.6{y}.
> I've traced it down to an U* file which is zero bytes; the D* file
> contains the WWWOFFLE 503 Remote Host Error html file.
The empty U* file is not the cause of the crash, it is one side-effect
of it.
> The segfault is at io.c, in function write_string(). It's the
> if(fdzlib[fd])
> line; fdzlib has not been allocated (yet?), so it's a NULL pointer
> and using it as an array when it's NULL is the problem. Probably
> this code normally can't be reached without first allocating memory for
> the array, but I'm guessing that the empty U* file is causing this.
You are correct, the code can not normally be reached without the
memory having been allocated. The init_buffer() function initialises
the array, for versions of WWWOFFLE before 2.6b this function only
needed to be called before reading from a file. In version 2.6b I
added a dependency that required init_buffer() to be called before
writing to a file. I did not notice this since the main wwwoffled
program calls init_buffer() before reading from the first file which
is also before writing to the first file. It is only in the
convert-cache program that writing is done before reading.
I think that the outcome of this is that WWWOFFLE version 2.6c needs
to be released earlier than I had planned. I have added a whole bunch
of new options in the ModifyHTML section of the config file, but I
planned other changes as well. I think that I will delay the other
changes to version 2.6d. In any case I think that it will be at least
10 days before I am ready for a release.
> On another track: I've made some translations into dutch of the html
> files. Where do I send them? They're also available as
> http://www.murphy.nl/~paul/lang-nl.tar.gz
Send them direct to me (or don't bother now since you have provided a
URL).
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.6/user.html