After patched, -vv shows:

HA-Proxy version 1.5-dev18 2013/04/03
Copyright 2000-2013 Willy Tarreau <[email protected]>

Build options :
  TARGET  = linux2628
  CPU     = native
  CC      = gcc
  CFLAGS  = -O2 -march=native -g -fno-strict-aliasing
  OPTIONS = USE_LINUX_SPLICE=1 USE_REGPARM=1 USE_STATIC_PCRE=1
USE_PCRE_JIT=1

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200

Encrypted password support via crypt(3): yes
Built without zlib support (USE_ZLIB not set)
Compression algorithms supported : identity
Built without OpenSSL support (USE_OPENSSL not set)
Built with PCRE version : 8.21 2011-12-12
PCRE library supports JIT : yes

Available polling systems :
      epoll : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result OK
Total: 3 (3 usable), will use epoll.


my ACL like:

acl side2 hdr_reg(host) -i -f /etc/haproxy/ip_reg.txt

ip_reg.txt:

\b(?:\d{1,3}\.){3}\d{1,3}\b


\.us

Error like:

error detected while parsing ACL 'side2' : regex
'\b(?:\d{1,3}\.){3}\d{1,3}\b' is invalid.

The config works fine without JIT enable.


Bests,
-Igor


On Thu, Apr 4, 2013 at 8:31 PM, Lukas Tribus <[email protected]> wrote:

> Hi Igor,
>
>
> > error detected while parsing ACL 'adb' : regex '&ad_keyword=' is invalid.
>
>
> Can you apply the attached patch and provide the output from haproxy -vv?
> It does not fix anything, but it shows what PCRE version you are using and
> and if JIT is actually enabled.
>
> Also, can you give us some details about your configuration? Can you post
> the regexp part and your actual request?
>
>
>
> Cheers,
> Lukas

Reply via email to