William,

Am 14.06.20 um 16:59 schrieb Tim Düsterhus:
> I can reproduce this with the following config:
> 
> frontend http
>     mode http
>     bind 127.0.0.1:80
> 
>     http-request redirect scheme https if METH_GET
> 
>> $ valgrind ./haproxy -c -f ./crasher.cfg
>> [...]
>> ==6484== Invalid read of size 8
>> ==6484==    at 0x4C4747: release_sample_expr (sample.c:1427)
>> ==6484==    by 0x525A43: deinit_act_rules (haproxy.c:2558)
>> ==6484==    by 0x5271CA: deinit (haproxy.c:2706)
>> ==6484==    by 0x528017: deinit_and_exit (haproxy.c:2871)
>> ==6484==    by 0x528E90: init (haproxy.c:2205)
>> ==6484==    by 0x41F382: main (haproxy.c:3127)
>> ==6484==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
> 
> I would assume that this is related to METH_GET being a default acl.

I spoke too soon. I can even remove the `if METH_GET` and it segfaults
for a simple `http-request redirect scheme https`.

Best regards
Tim Düsterhus

Reply via email to