Crash on set.fini() #1

Closed
opened 2019-01-24 16:06:16 +01:00 by geoff · 2 comments
geoff commented 2019-01-24 16:06:16 +01:00 (Migrated from code.uplex.de)

Panic:

Assert error in vmod_set__fini(), vmod_selector.c line 226:
  Condition((entry)->magic == 0x733dbe63) not true.
version = varnish-6.1.1 revision efc2f6c1536cf2272e471f5cff5f145239b19460, vrt api = 8.0
ident = Linux,4.15.0,x86_64,-junix,-smalloc,-sdefault,-hcritbit,epoll
now = 16123.466507 (mono), 1548341446.001477 (real)
Backtrace:
  0x43ac6b: /usr/sbin/varnishd() [0x43ac6b]
  0x49b0e2: /usr/sbin/varnishd(VAS_Fail+0x42) [0x49b0e2]
  0x7f3b5944de90: ./vmod_cache/_vmod_selector.a93b849f67b78d802d023018a91708dbbebf71e6ec589dceab4beb1a8ba2b49e(vmod_set__fini+0x2e0) [0x7f3b5944de90]
  0x7f3b586c3e54: vcl_vk8s_ing_default_cafe_ingress_varnish_49121336_1fd9_11e9_bdba_080027b7a967_2e83d92a407d8222.1548341443.817471743/vgc.so(+0x3e54) [0x7f3b586c3e54]
  0x4492c4: /usr/sbin/varnishd() [0x4492c4]
  0x449d84: /usr/sbin/varnishd() [0x449d84]
  0x44abdf: /usr/sbin/varnishd() [0x44abdf]
  0x49d17a: /usr/sbin/varnishd() [0x49d17a]
  0x49d61d: /usr/sbin/varnishd(VCLS_Poll+0x35d) [0x49d61d]
  0x4207f4: /usr/sbin/varnishd(CLI_Run+0x54) [0x4207f4]
thread = (cache-main)
thr.req = (nil) {
},
thr.busyobj = (nil) {
},	Panic at 172.17.0.16:6081: Panic at: Thu, 24 Jan 2019 14:50:46 GMT
Assert error in vmod_set__fini(), vmod_selector.c line 226:
  Condition((entry)->magic == 0x733dbe63) not true.
version = varnish-6.1.1 revision efc2f6c1536cf2272e471f5cff5f145239b19460, vrt api = 8.0
ident = Linux,4.15.0,x86_64,-junix,-smalloc,-sdefault,-hcritbit,epoll
now = 16123.466507 (mono), 1548341446.001477 (real)
Backtrace:
  0x43ac6b: /usr/sbin/varnishd() [0x43ac6b]
  0x49b0e2: /usr/sbin/varnishd(VAS_Fail+0x42) [0x49b0e2]
  0x7f3b5944de90: ./vmod_cache/_vmod_selector.a93b849f67b78d802d023018a91708dbbebf71e6ec589dceab4beb1a8ba2b49e(vmod_set__fini+0x2e0) [0x7f3b5944de90]
  0x7f3b586c3e54: vcl_vk8s_ing_default_cafe_ingress_varnish_49121336_1fd9_11e9_bdba_080027b7a967_2e83d92a407d8222.1548341443.817471743/vgc.so(+0x3e54) [0x7f3b586c3e54]
  0x4492c4: /usr/sbin/varnishd() [0x4492c4]
  0x449d84: /usr/sbin/varnishd() [0x449d84]
  0x44abdf: /usr/sbin/varnishd() [0x44abdf]
  0x49d17a: /usr/sbin/varnishd() [0x49d17a]
  0x49d61d: /usr/sbin/varnishd(VCLS_Poll+0x35d) [0x49d61d]
  0x4207f4: /usr/sbin/varnishd(CLI_Run+0x54) [0x4207f4]
thread = (cache-main)
thr.req = (nil) {
},
thr.busyobj = (nil) {
},

This happens in vmod_set__fini() where strings and regexen that may have been saved for a set entry are freed. Evidently an entry is encountered where the magic number is not set to ``VMOD_SELECTOR_ENTRY_MAGIC```.

Panic: ``` Assert error in vmod_set__fini(), vmod_selector.c line 226: Condition((entry)->magic == 0x733dbe63) not true. version = varnish-6.1.1 revision efc2f6c1536cf2272e471f5cff5f145239b19460, vrt api = 8.0 ident = Linux,4.15.0,x86_64,-junix,-smalloc,-sdefault,-hcritbit,epoll now = 16123.466507 (mono), 1548341446.001477 (real) Backtrace: 0x43ac6b: /usr/sbin/varnishd() [0x43ac6b] 0x49b0e2: /usr/sbin/varnishd(VAS_Fail+0x42) [0x49b0e2] 0x7f3b5944de90: ./vmod_cache/_vmod_selector.a93b849f67b78d802d023018a91708dbbebf71e6ec589dceab4beb1a8ba2b49e(vmod_set__fini+0x2e0) [0x7f3b5944de90] 0x7f3b586c3e54: vcl_vk8s_ing_default_cafe_ingress_varnish_49121336_1fd9_11e9_bdba_080027b7a967_2e83d92a407d8222.1548341443.817471743/vgc.so(+0x3e54) [0x7f3b586c3e54] 0x4492c4: /usr/sbin/varnishd() [0x4492c4] 0x449d84: /usr/sbin/varnishd() [0x449d84] 0x44abdf: /usr/sbin/varnishd() [0x44abdf] 0x49d17a: /usr/sbin/varnishd() [0x49d17a] 0x49d61d: /usr/sbin/varnishd(VCLS_Poll+0x35d) [0x49d61d] 0x4207f4: /usr/sbin/varnishd(CLI_Run+0x54) [0x4207f4] thread = (cache-main) thr.req = (nil) { }, thr.busyobj = (nil) { }, Panic at 172.17.0.16:6081: Panic at: Thu, 24 Jan 2019 14:50:46 GMT Assert error in vmod_set__fini(), vmod_selector.c line 226: Condition((entry)->magic == 0x733dbe63) not true. version = varnish-6.1.1 revision efc2f6c1536cf2272e471f5cff5f145239b19460, vrt api = 8.0 ident = Linux,4.15.0,x86_64,-junix,-smalloc,-sdefault,-hcritbit,epoll now = 16123.466507 (mono), 1548341446.001477 (real) Backtrace: 0x43ac6b: /usr/sbin/varnishd() [0x43ac6b] 0x49b0e2: /usr/sbin/varnishd(VAS_Fail+0x42) [0x49b0e2] 0x7f3b5944de90: ./vmod_cache/_vmod_selector.a93b849f67b78d802d023018a91708dbbebf71e6ec589dceab4beb1a8ba2b49e(vmod_set__fini+0x2e0) [0x7f3b5944de90] 0x7f3b586c3e54: vcl_vk8s_ing_default_cafe_ingress_varnish_49121336_1fd9_11e9_bdba_080027b7a967_2e83d92a407d8222.1548341443.817471743/vgc.so(+0x3e54) [0x7f3b586c3e54] 0x4492c4: /usr/sbin/varnishd() [0x4492c4] 0x449d84: /usr/sbin/varnishd() [0x449d84] 0x44abdf: /usr/sbin/varnishd() [0x44abdf] 0x49d17a: /usr/sbin/varnishd() [0x49d17a] 0x49d61d: /usr/sbin/varnishd(VCLS_Poll+0x35d) [0x49d61d] 0x4207f4: /usr/sbin/varnishd(CLI_Run+0x54) [0x4207f4] thread = (cache-main) thr.req = (nil) { }, thr.busyobj = (nil) { }, ``` This happens in ``vmod_set__fini()`` where strings and regexen that may have been saved for a set entry are freed. Evidently an entry is encountered where the magic number is not set to ``VMOD_SELECTOR_ENTRY_MAGIC```.
geoff commented 2019-12-09 19:37:49 +01:00 (Migrated from code.uplex.de)

closed via commit 24e3572561

closed via commit 24e3572561681402a8b6e6c5332f6f678bc6bb72
geoff commented 2019-12-09 19:57:02 +01:00 (Migrated from code.uplex.de)

mentioned in commit c5a0965ad9

mentioned in commit c5a0965ad995c2d3273d028d0c29b1eb784f3257
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
uplex-varnish/libvmod-selector#1
No description provided.