[Varnish] #1249: Undeterministic results in regsub/regsuball

Varnish varnish-bugs at varnish-cache.org
Fri Jan 11 05:44:31 CET 2013


#1249: Undeterministic results in regsub/regsuball
---------------------+--------------------
 Reporter:  arthens  |       Owner:
     Type:  defect   |      Status:  new
 Priority:  normal   |   Milestone:
Component:  build    |     Version:  3.0.3
 Severity:  normal   |  Resolution:
 Keywords:           |
---------------------+--------------------

Comment (by arthens):

 I have attached default.vcl to illustrate the problem.

 What I am seeing is that the following string (which has a cookie format)
 {{{
 this-will-disappear=true; and-so-will-this=true; yet-another-cookie-
 disappearing=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
 wcsid=44444444444444444444444444444444;
 hblid=55555555555555555555555555555555; this-will-not-disappear=true
 }}}

 becomes

 {{{
 hblid=55555555555555555555555555555555; this-will-not-disappear=true
 }}}

 After applying the regexp
 {{{
 regsuball(">>> put the string here <<<", "(^|; ) *wcsid=[^;]+;? *", "\1");
 }}}

 Note: at least in one case I've seen the bug temporarily disappear after a
 varnish restart. Take this into account if you can't reproduce the problem
 with the provided file :/

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1249#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list