Antwort: [Mod_gzip] (no subject)

mod_gzip@lists.over.net mod_gzip@lists.over.net
Thu, 23 Jan 2003 19:21:28 +0200


Hi Giulio,


> I installed mod_gzip

which version (both mod_gzip and Apache)?
On which platform?
Statically compiled in, or some DSO loaded via mod_so?

"Installed" could mean a lot of different things ...

> # [mod_gzip configuration]
> mod_gzip_on Yes
> mod_gzip_minimum_file_size 300
> mod_gzip_maximum_file_size 0
> mod_gzip_maximum_inmem_size 100000

This will be limited to 60000 internally by mod_gzip:

 if ( dconf__maximum_inmem_size > (long) 60000L )
   {
    /* TODO: Some OS'es will have a 'malloc()' problem if the */
    /* in-memory size is greater than 64k so for now just set */
    /* 60k as the fixed upper limit. Expand this later. */

    /* NOTE: Testing has shown that for responses greater than */
    /* 60k or so the 'swap to disk' option SHOULD be used, anyway. */
    /* MOST responses will be far less than 60k. */

    dconf__maximum_inmem_size = (long) 60000L;
   }

It dooesn't hurt to try setting this to a value below
60k, but I don't expect any different result by that.

> mod_gzip_keep_workfiles No
> mod_gzip_temp_dir /tmp
> mod_gzip_dechunk Yes
> mod_gzip_item_include file \.htm$
> mod_gzip_item_include file \.html$
> mod_gzip_item_include file \.php$
> mod_gzip_item_include file \.pl$
> mod_gzip_item_include file \.cgi$
> mod_gzip_item_include file \.phps$
> mod_gzip_item_include mime text/.*

Nothing spectacular here, I think.

> but when I run
>    /usr/local/apache/bin/apachectl configtest
> I get
>    /usr/sbin/apachectl: line 171:  8550 Segmentation fault      $HTTPD -t
> where $HTTPD is my /usr/sbin/apache

Oops. Quite interesting.
I would try first to nail this down in the area of the in-
stallation process (maybe you have a corrupted DSO file or
something like that?).
So please explain what exactly you did there.

> what does this mean ?

Apache crashed, obviously while checking the configuration
directives.
Sounds like some of the configuration parsers has run wild
and points to a memory section it isn't entitled to access.
It might be a bug in mod_gzip (although I cannot reproduce
it with your configuration), or it might be a corrupted file
you loaded as "mod_gzip.so" etc..

> How can I solve this problem?

First we would have to identify whether it is a bug or a
broken installation. Therefore ... see above.

Regards, Michael