I can't reproduce this on my machine to debug locally, I only got this on a remote server. I think the DNS server there might be having issues; but if this is caused by some DNS server issue we should probably not panic (and instead just add no backend).
From my understanding of the function, this can happen if getdns_common_more_answers(state) != 0 from the beginning (or if getdns_common_more_answers(state) == 0 and getdns_list_get_dict(state->answers, state->answer++, &rr) gives a NULL rr, not sure if that's relevant).
Stressing Varnish + libvmod-dynamic with many dynamic backends (with probes), I'm sometimes getting the following panic:
This refers to the assert here: https://github.com/nigoroll/libvmod-dynamic/blob/master/src/dyn_resolver_getdns.c#L259
I can't reproduce this on my machine to debug locally, I only got this on a remote server. I think the DNS server there might be having issues; but if this is caused by some DNS server issue we should probably not panic (and instead just add no backend).
From my understanding of the function, this can happen if
getdns_common_more_answers(state) != 0
from the beginning (or ifgetdns_common_more_answers(state) == 0
andgetdns_list_get_dict(state->answers, state->answer++, &rr)
gives a NULLrr
, not sure if that's relevant).