[Varnish] #1327: Crash if http_max_hdr is not multiple of 4

Varnish varnish-bugs at varnish-cache.org
Thu Jul 11 00:04:24 CEST 2013

#1327: Crash if http_max_hdr is not multiple of 4
 Reporter:  Dan42  |       Type:  defect
   Status:  new    |   Priority:  normal
Milestone:         |  Component:  varnishd
  Version:  3.0.2  |   Severity:  normal
 Keywords:         |
 Using the ubuntu package of varnishd, I get a full-blown crash if
 `http_max_hdr` is not a multiple of 4.

 launching with:
 $ echo 'backend fortytwo { .host = ""; .port = "4242"; }' >
 $ sudo /usr/sbin/varnishd -F -f 42.vcl -s malloc,500M -a -n
 ANN -T -p http_max_hdr=255
 and getting:
 child (10143) Started
 Pushing vcls failed:
 CLI communication error (hdr)
 Stopping Child
 Child (10143) died signal=6
 Child (10143) Panic message: Assert error in WS_Init(), cache_ws.c line
   Condition(PAOK(space)) not true.
 thread = (cache-timeout)
 ident =
   0x42f965: /usr/sbin/varnishd() [0x42f965]
   0x43ed13: /usr/sbin/varnishd(WS_Init+0x143) [0x43ed13]
   0x433739: /usr/sbin/varnishd() [0x433739]
   0x433b33: /usr/sbin/varnishd(SES_Alloc+0x23) [0x433b33]
   0x4312d8: /usr/sbin/varnishd() [0x4312d8]
   0x7f05c5fd1e9a: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)
   0x7f05c5cfeccd: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)

 Child (-1) said Child starts
 Child cleanup complete

 If it really has to be multiples of 4, then at least exit with a saner
 error message and mention the limitation in the docs.

Ticket URL: <https://www.varnish-cache.org/trac/ticket/1327>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list