NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41042: native httpd redirection fails



>Number:         41042
>Category:       bin
>Synopsis:       native httpd redirection fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 19 13:55:00 +0000 2009
>Originator:     Reinoud Zandijk
>Release:        NetBSD 5.99.7
>Organization:
NetBSD.org
        
>Environment:
        
        
System: NetBSD aardappel.13thmonkey.org 5.99.7 NetBSD 5.99.7 (GENERIC) #13: Fri 
Feb 27 13:14:16 CET 2009 
root%heethoofdje.13thmonkey.org@localhost:/usr/sources/cvs.netbsd.org/src/sys/arch/i386/compile/GENERIC
 i386
Architecture: i386
Machine: i386

httpd version:
-r-xr-xr-x  1 root  wheel  49739 Feb 26 12:51 /usr/libexec/httpd*

>Description:
When requesting a directory without index.html in the following form:
        http://website.org/directory/
it succeeds but
        http://website.org/directory
fails with httpd segfaulting with signal 11!

its incarnation in inetd.conf is:
www             stream  tcp     nowait:600      www:www /usr/libexec/httpd
httpd -H -X -u -M jad text/vnd.sun.j2me.app-descriptor - - -M jnlp
application/x-java-jnlp-file - - -M jar application/java-archive - -
/home/httpd/

Note that it also fails when issued from the command line.

        
>How-To-Repeat:
Configure the native httpd daemon on inetd.conf or start it from the command
line and see it segfaulting in the above example.

        
>Fix:
Looking in a dumped core it turns out to be in the redirect code.
For a workaround, make sure your website allways uses the trailing slash when
refering to directories.

        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index