[Varnish] #409: Segmentation fault with malformed regex ~!
Varnish
varnish-bugs at projects.linpro.no
Wed Dec 17 03:28:56 CET 2008
#409: Segmentation fault with malformed regex ~!
----------------------+-----------------------------------------------------
Reporter: eugaia | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 2.0
Severity: major | Keywords:
----------------------+-----------------------------------------------------
I have experienced a segmentation fault with a VCL entry like
if ( req.url ~ ! "\.(png|jpg|gif|js|css)$" ) { ... } # incorrect regex
check syntax
which could (correctly) read
if (! req.url ~ "\.(png|jpg|gif|js|css)$" ) { ... }
When loading a VCL file with this in it, it caused Varnish to crash,
indicating a segmentation fault. Also, when trying to restart Varnish, it
indicated that there was a segmentation fault rather than simply saying
that the VCL wasn't valid.
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/409>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list