httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Problem: buggy regex, WANTHSREGEX no chance
Date Wed, 10 Jun 1998 21:15:02 GMT
This is still a problem if you add -Lregex -lregex when building the
shared library?

Dean

On Wed, 10 Jun 1998, Ralf S. Engelschall wrote:

> 
> Hmmm... there is a subtle problem with the regex stuff:
> 
>   - platform is AIX (or any other with a broken regex lib)
> 
>   - Apache is compiled with all modules as DSO
> 
>   - the regex library of the system is broken,
>     for instance some mod_rewrite rules like
>     RewriteRule    .*/afp:.*       http://www.helios.de/afpengage.html
>     RewriteRule    .*/afp/.*       http://www.helios.de/afpengage.html
>     cause a SIGSEGV inside the regexec() functions.
> 
>   - WANTHSREGEX has no effect.
> 
> Why? Because the DSO's are not linked against the HS regex lib, so even with
> WANTHSREGEX the broken system lib is linked against the DSO. Bang!
> 
> We first have to set WANTHSREGEX for AIX, of course. But what can we do to
> workaround the linking problem? The only thing the guy who has discovered the
> above problem (Jens-Uwe Mager) and I know would be to use ap_regxxx() wrappers
> in the Apache core. Then the HS regex lib is linked with the core
> and modules get the correct symbols.
> 
> Any ideas or suggestions?
>                                        Ralf S. Engelschall
>                                        rse@engelschall.com
>                                        www.engelschall.com
> 


Mime
View raw message