You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/06/12 23:46:39 UTC

DO NOT REPLY [Bug 9820] New: - Segfaults with SetEnv in per-directory configuration files

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9820

Segfaults with SetEnv in per-directory configuration files

           Summary: Segfaults with SetEnv in per-directory configuration
                    files
           Product: Apache httpd-2.0
           Version: 2.0.36
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_env
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: cv@corbach.de


SetEnv works without any problems if set in httpd.conf but setting in 
an .htaccess ('AllowOverride All MultiViews' set for Directory context) causes 
segmentation faults and no content is delivered to user-agent. Same for 
UnsetEnv and PassEnv.
It doesn't depend on type of variable set.
In case of PassEnv a previously undefined variable gives

[Wed Jun 12 23:37:17 2002] [warn] PassEnv variable LD_LIBRARY_PATH was undefined
[Wed Jun 12 23:37:17 2002] [notice] child pid 28855 exit signal Segmentation 
fault (11)

in my error_log. Maybe this can help to find the point where the segfault 
occurs.
mod_setenvif directives work without difficulties and so far there's a less 
elegant workaround, e.g.

SetEnvIf I_AM_NO_REAL_VARIABLE "^$" MY_VARIABLE=bla

which can be used under these circumstances.

Apache 2.0.36 was compiled on Kernel 2.4.18 using the following options:

LDFLAGS="-L/opt/BerkeleyDB.3.3.11/lib"; export LDFLAGS
LIBS="-ldb-3.3"; export LIBS
INCLUDES="-I/opt/BerkeleyDB.3.3.11/include"; export INCLUDES
"./configure" \
"--prefix=/opt/apache2" \
"--exec-prefix=/opt/apache2" \
"--sbindir=/opt/apache2/sbin" \
"--libexecdir=/opt/apache2/lib" \
"--datadir=/opt/apache2/share" \
"--sysconfdir=/opt/apache2/etc" \
"--sharedstatedir=/opt/apache2/com" \
"--localstatedir=/opt/apache2/var" \
"--enable-auth-dbm" \
"--enable-auth-digest" \
"--enable-cache" \
"--enable-ext-filter" \
"--enable-charset-lite" \
"--enable-deflate" \
"--enable-disk-cache" \
"--enable-mem-cache" \
"--enable-mime-magic" \
"--enable-cern-meta" \
"--enable-expires" \
"--enable-headers" \
"--enable-usertrack" \
"--enable-unique-id" \
"--enable-proxy" \
"--enable-proxy-connect" \
"--enable-proxy-ftp" \
"--enable-proxy-http" \
"--enable-ssl" \
"--enable-static-support" \
"--enable-http" \
"--enable-dav" \
"--enable-info" \
"--enable-dav-fs" \
"--enable-suexec" \
"--enable-speling" \
"--disable-userdir" \
"--enable-rewrite" \
"--enable-so" \
"--with-suexec-caller=wwwrun" \
"--with-suexec-docroot=/www" \
"--with-suexec-uidmin=500" \
"--with-suexec-logfile=/opt/apache2/var/log/suexec.log" \
"--with-suexec-safepath=/usr/bin:/usr/local/bin" \
"$@"

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org