[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 = "127.0.0.1"; .port = "4242"; }' >
42.vcl
$ sudo /usr/sbin/varnishd -F -f 42.vcl -s malloc,500M -a 127.0.0.1:4200 -n
ANN -T 127.0.0.1:42001 -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
80:
Condition(PAOK(space)) not true.
thread = (cache-timeout)
ident =
Linux,3.3.6-030306-generic,x86_64,-smalloc,-smalloc,-hcritbit,no_waiter
Backtrace:
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)
[0x7f05c5fd1e9a]
0x7f05c5cfeccd: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)
[0x7f05c5cfeccd]
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