Received: (qmail 9522 invoked by uid 2012); 7 Jan 1999 19:35:49 -0000 Message-Id: <19990107193549.9521.qmail@hyperreal.org> Date: 7 Jan 1999 19:35:49 -0000 From: Eckard Brauer Reply-To: e.brauer@intershop.de To: apbugs@hyperreal.org Subject: regex fails some expressions - ScriptAliasMatch isn't ok. X-Send-Pr-Version: 3.2 >Number: 3632 >Category: os-osf >Synopsis: regex fails some expressions - ScriptAliasMatch isn't ok. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jan 7 11:40:01 PST 1999 >Last-Modified: Fri Jan 8 08:40:01 PST 1999 >Originator: e.brauer@intershop.de >Organization: apache >Release: 1.3.3 >Environment: $ uname -a OSF1 ultrix1 V4.0 878 alpha $ gcc -v Reading specs from /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.8.1/specs gcc version 2.8.1 $ # Remark: tested before with egcs 1.1.1 - same results >Description: Some regular expressions don't work at OSF/1 (Solaris, Reliant, AIX, HP-UX, IRIX are ok). Compiling re in src/regex and doing ./re < tests showed: $ ./re < tests 314: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 318: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 319: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 320: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 344: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 345: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 384: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 419: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 420: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 421: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 468: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' 472: ERE exec error REG_NOMATCH, 26/100 `regexec() failed to match' >How-To-Repeat: Sorry, I'm behind a Firewall... Try "./re < tests" >Fix: Working on it... But hints are welcome >Audit-Trail: From: Eckard Brauer To: "'apbugs@hyperreal.org'" , "'apache-bugdb@apache.org'" Cc: "'apbugs@apache.org'" Subject: RE: os-osf/3632: regex fails some expressions - ScriptAliasMatch isn't ok. Date: Fri, 8 Jan 1999 17:31:52 +0100 Hi there. Further explanation: ScriptAliasMatch ^/cgi-bin/.+\.admin(.*) $1 works for me (means: it matches things like "http:///cgi-bin/ecki.admin...", where ScriptAliasMatch ^/cgi-bin/.+\.storefront(.*) $1 doesn't (means: apache is looking for /cgi-bin/.storefront(...) and correctly logging an error because it isn't found). Cutting the first three characters from the pattern (^/c) made it work, but I don't like the solution. The error with $APACHE_SRC/src/regex/re comes from engine.c, at least I tracked it back to function fast(), but seems to be caused by an incorrect compiled expression. Is there any description of the expression compiler except *.c? I'd like to investigate further if one could send me some useful hints. Eckard -----Original Message----- From: apbugs@hyperreal.org [mailto:apbugs@hyperreal.org] Sent: Thursday, January 07, 1999 8:40 PM To: e.brauer@intershop.de Subject: Re: os-osf/3632: regex fails some expressions - ScriptAliasMatch isn't ok. Thank you very much for your problem report. It has the internal identification `os-osf/3632'. The individual assigned to look at your report is: apache. >Category: os-osf >Responsible: apache >Synopsis: regex fails some expressions - ScriptAliasMatch isn't ok. >Arrival-Date: Thu Jan 7 11:40:01 PST 1999 From: Eckard Brauer To: "'apbugs@hyperreal.org'" , "'apache-bugdb@apache.org'" Cc: "'apbugs@apache.org'" Subject: RE: os-osf/3632: regex fails some expressions - ScriptAliasMatch isn't ok. Date: Fri, 8 Jan 1999 17:31:52 +0100 Hi there. Further explanation: ScriptAliasMatch ^/cgi-bin/.+\.admin(.*) $1 works for me (means: it matches things like "http:///cgi-bin/ecki.admin...", where ScriptAliasMatch ^/cgi-bin/.+\.storefront(.*) $1 doesn't (means: apache is looking for /cgi-bin/.storefront(...) and correctly logging an error because it isn't found). Cutting the first three characters from the pattern (^/c) made it work, but I don't like the solution. The error with $APACHE_SRC/src/regex/re comes from engine.c, at least I tracked it back to function fast(), but seems to be caused by an incorrect compiled expression. Is there any description of the expression compiler except *.c? I'd like to investigate further if one could send me some useful hints. Eckard -----Original Message----- From: apbugs@hyperreal.org [mailto:apbugs@hyperreal.org] Sent: Thursday, January 07, 1999 8:40 PM To: e.brauer@intershop.de Subject: Re: os-osf/3632: regex fails some expressions - ScriptAliasMatch isn't ok. Thank you very much for your problem report. It has the internal identification `os-osf/3632'. The individual assigned to look at your report is: apache. >Category: os-osf >Responsible: apache >Synopsis: regex fails some expressions - ScriptAliasMatch isn't ok. >Arrival-Date: Thu Jan 7 11:40:01 PST 1999 >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]