[html-formfu] Segmentation fault from filter regex

Carl Franks fireartist at gmail.com
Wed Jan 7 19:34:21 GMT 2009


2008/12/31 Ashley Pond V <ashley.pond.v at gmail.com>:
> Just putting this out there. Don't know if it's a known issue or not.
> I expected filters to take real regexes since contraints will (which I
> wish were documented, I couldn't find it and read the source to figure
> out I could do it without the ::Common stuff).
>
> This is causing a seg fault for me:
>    filters:
>      - type: Regex
>        match: !!perl/regexp (?-xism:\A\s+|\s+\z)
>
> While this works fine:
>    filters:
>      - type: Regex
>        match: \A\s+|\s+\z
>
>
> [1]    Segmentation fault            perl script/*_server.pl -d -r -p 8888

I've added tests for this at
t-aggregated/filters/regex.t
t-aggregated/filters/regex.yml

They pass ok under perl 5.8.9.

If they pass under your version of perl, then you'll need to further
narrow down where the segfault happens.

Carl



More information about the HTML-FormFu mailing list