{"action":"created","issue":{"url":"https://api.github.com/repos/varnish/libvmod-var/issues/10","repository_url":"https://api.github.com/repos/varnish/libvmod-var","labels_url":"https://api.github.com/repos/varnish/libvmod-var/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/varnish/libvmod-var/issues/10/comments","events_url":"https://api.github.com/repos/varnish/libvmod-var/issues/10/events","html_url":"https://github.com/varnish/libvmod-var/issues/10","id":104494663,"number":10,"title":"Crash using global_get() on vcl_init{}","user":{"login":"fgsch","id":241785,"avatar_url":"https://avatars.githubusercontent.com/u/241785?v=3","gravatar_id":"","url":"https://api.github.com/users/fgsch","html_url":"https://github.com/fgsch","followers_url":"https://api.github.com/users/fgsch/followers","following_url":"https://api.github.com/users/fgsch/following{/other_user}","gists_url":"https://api.github.com/users/fgsch/gists{/gist_id}","starred_url":"https://api.github.com/users/fgsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgsch/subscriptions","organizations_url":"https://api.github.com/users/fgsch/orgs","repos_url":"https://api.github.com/users/fgsch/repos","events_url":"https://api.github.com/users/fgsch/events{/privacy}","received_events_url":"https://api.github.com/users/fgsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"daghf","id":1662211,"avatar_url":"https://avatars.githubusercontent.com/u/1662211?v=3","gravatar_id":"","url":"https://api.github.com/users/daghf","html_url":"https://github.com/daghf","followers_url":"https://api.github.com/users/daghf/followers","following_url":"https://api.github.com/users/daghf/following{/other_user}","gists_url":"https://api.github.com/users/daghf/gists{/gist_id}","starred_url":"https://api.github.com/users/daghf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daghf/subscriptions","organizations_url":"https://api.github.com/users/daghf/orgs","repos_url":"https://api.github.com/users/daghf/repos","events_url":"https://api.github.com/users/daghf/events{/privacy}","received_events_url":"https://api.github.com/users/daghf/received_events","type":"User","site_admin":false},"assignees":[{"login":"daghf","id":1662211,"avatar_url":"https://avatars.githubusercontent.com/u/1662211?v=3","gravatar_id":"","url":"https://api.github.com/users/daghf","html_url":"https://github.com/daghf","followers_url":"https://api.github.com/users/daghf/followers","following_url":"https://api.github.com/users/daghf/following{/other_user}","gists_url":"https://api.github.com/users/daghf/gists{/gist_id}","starred_url":"https://api.github.com/users/daghf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daghf/subscriptions","organizations_url":"https://api.github.com/users/daghf/orgs","repos_url":"https://api.github.com/users/daghf/repos","events_url":"https://api.github.com/users/daghf/events{/privacy}","received_events_url":"https://api.github.com/users/daghf/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2015-09-02T14:33:52Z","updated_at":"2016-09-07T08:51:53Z","closed_at":null,"body":"Via @espebra via https://github.com/varnish/libvmod-var/pull/9:\r\n\r\n***  v1    1.9 debug| Child (8109) died signal=6 (core dumped)\\n\r\n***  v1    1.9 debug| Child (8109) Panic message:\\n\r\n***  v1    1.9 debug| Assert error in WS_Assert(), cache/cache_ws.c line 41:\\n\r\n***  v1    1.9 debug|   Condition((ws) != NULL) not true.\\n\r\n***  v1    1.9 debug| thread = (cache-main)\\n\r\n***  v1    1.9 debug| version = varnish-trunk revision 34360fd\\n\r\n***  v1    1.9 debug| ident = Linux,4.1.0-1-amd64,x86_64,-jnone,-smalloc,-smalloc,-hcritbit,epoll\\n\r\n***  v1    1.9 debug| Backtrace:\\n\r\n***  v1    1.9 debug|   0x44dab0: pan_backtrace+0x20\\n\r\n***  v1    1.9 debug|   0x44d8b3: pan_ic+0x363\\n\r\n***  v1    1.9 debug|   0x47766f: WS_Assert+0x4f\\n\r\n***  v1    1.9 debug|   0x4782ec: WS_Copy+0x1c\\n\r\n***  v1    1.9 debug|   0x7fd2a41232fe: libvmod_var.so(vmod_global_get+0x1ce) [0x7fd2a41232fe]\\n\r\n***  v1    1.9 debug|   0x7fd2a43a7ff8: vgc.so(VGC_function_vcl_init+0x48) [0x7fd2a43a7ff8]\\n\r\n***  v1    1.9 debug|   0x7fd2a43a8599: vgc.so(+0x2599) [0x7fd2a43a8599]\\n\r\n***  v1    1.9 debug|   0x465888: VCL_Load+0x308\\n\r\n***  v1    1.9 debug|   0x464819: ccf_config_load+0xd9\\n\r\n***  v1    1.9 debug|   0x7fd2ab78b7e4: libvarnish.so(+0xa7e4) [0x7fd2ab78b7e4]\\n\r\n***  v1    1.9 debug| \\n\r\n***  v1    1.9 debug| \\n\r\n\r\nTestcase:\r\n\r\n```\r\nvarnishtest \"Test global_get in vcl_init\"\r\n \r\nserver s1 {\r\n       rxreq\r\n       txresp\r\n} -start\r\n \r\nvarnish v1 -vcl+backend {\r\n        import var from \"${vmod_topbuild}/src/.libs/libvmod_var.so\";\r\n \r\n        sub vcl_init {\r\n                var.global_set(\"foo\", \"bar\");\r\n                if (var.global_get(\"foo\") == \"bar\") {\r\n                        var.global_set(\"foo\", \"baz\");\r\n                }\r\n        }\r\n \r\n        sub vcl_deliver {\r\n                set resp.http.x-foo = var.global_get(\"foo\");\r\n        }\r\n} -start\r\n \r\nclient c1 {\r\n        txreq -url \"/\"\r\n        rxresp\r\n        expect resp.http.x-foo == \"baz\"\r\n} -start\r\n```"},"comment":{"url":"https://api.github.com/repos/varnish/libvmod-var/issues/comments/245217091","html_url":"https://github.com/varnish/libvmod-var/issues/10#issuecomment-245217091","issue_url":"https://api.github.com/repos/varnish/libvmod-var/issues/10","id":245217091,"user":{"login":"nigoroll","id":1528104,"avatar_url":"https://avatars.githubusercontent.com/u/1528104?v=3","gravatar_id":"","url":"https://api.github.com/users/nigoroll","html_url":"https://github.com/nigoroll","followers_url":"https://api.github.com/users/nigoroll/followers","following_url":"https://api.github.com/users/nigoroll/following{/other_user}","gists_url":"https://api.github.com/users/nigoroll/gists{/gist_id}","starred_url":"https://api.github.com/users/nigoroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigoroll/subscriptions","organizations_url":"https://api.github.com/users/nigoroll/orgs","repos_url":"https://api.github.com/users/nigoroll/repos","events_url":"https://api.github.com/users/nigoroll/events{/privacy}","received_events_url":"https://api.github.com/users/nigoroll/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T08:51:53Z","updated_at":"2016-09-07T08:51:53Z","body":"it's in, please re-test"}}
{"actor":{"display_login":"nigoroll"}}