Skip to content

Instantly share code, notes, and snippets.

@rezan
Created April 3, 2019 15:31
Show Gist options
  • Save rezan/f50bc17c391459dbf66dc65089acac3c to your computer and use it in GitHub Desktop.
Save rezan/f50bc17c391459dbf66dc65089acac3c to your computer and use it in GitHub Desktop.
Object init() and fini()
varnishtest "Object init() and fini()"
server s1 {
} -start
varnish v1 -vcl+backend {
import debug;
sub vcl_init {
if (true) {
return (fail);
}
new test = debug.obj();
}
} -start
#*** v1 0.5 debug|Debug: Stopping Child
#*** v1 0.5 debug|Error: Child (14837) died signal=6 (core dumped)
#*** v1 0.5 debug|Error: Child (14837) Panic at: Wed, 03 Apr 2019 15:28:52 GMT
#*** v1 0.5 debug|Assert error in xyzzy_obj__fini(), vmod_debug_obj.c line 69:
#*** v1 0.5 debug| Condition((*op) != 0) not true.
#*** v1 0.5 debug|version = varnish-trunk revision d8ae26b5a0b4a1102360a61a145e4730e52d68bc, vrt api = 9.0
#*** v1 0.5 debug|ident = Linux,4.15.0-47-generic,x86_64,-jnone,-sdefault,-sdefault,-hcritbit,epoll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment