{"action":"opened","issue":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/3379","repository_url":"https://api.github.com/repos/PowerDNS/pdns","labels_url":"https://api.github.com/repos/PowerDNS/pdns/issues/3379/labels{/name}","comments_url":"https://api.github.com/repos/PowerDNS/pdns/issues/3379/comments","events_url":"https://api.github.com/repos/PowerDNS/pdns/issues/3379/events","html_url":"https://github.com/PowerDNS/pdns/issues/3379","id":133748939,"number":3379,"title":"dnsdist crash w/ \"Got an error in UDP question thread: [string \"chunk\"]:17: attempt to index field 'dh' (a function value)\"","user":{"login":"medea61","id":1316529,"avatar_url":"https://avatars.githubusercontent.com/u/1316529?v=3","gravatar_id":"","url":"https://api.github.com/users/medea61","html_url":"https://github.com/medea61","followers_url":"https://api.github.com/users/medea61/followers","following_url":"https://api.github.com/users/medea61/following{/other_user}","gists_url":"https://api.github.com/users/medea61/gists{/gist_id}","starred_url":"https://api.github.com/users/medea61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medea61/subscriptions","organizations_url":"https://api.github.com/users/medea61/orgs","repos_url":"https://api.github.com/users/medea61/repos","events_url":"https://api.github.com/users/medea61/events{/privacy}","received_events_url":"https://api.github.com/users/medea61/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-15T15:56:29Z","updated_at":"2016-02-15T15:56:29Z","closed_at":null,"body":"as discussed on irc: dnsdist crashing with this message\r\n\r\n```\r\nFeb 15 16:45:59 bart dnsdist[21300]: Got an error in UDP question thread: [string \"chunk\"]:17: attempt to index field 'dh' (a function value)\r\nFeb 15 16:45:59 bart dnsdist[21300]: *** Error in `/usr/bin/dnsdist': double free or corruption (fasttop): 0x00007f7ed4094df0 ***\r\nFeb 15 16:45:59 bart dnsdist[21300]: Got an error in UDP question thread: [string \"chunk\"]:17: attempt to index field 'dh' (a function value)\r\nFeb 15 16:45:59 bart dnsdist[21300]: ======= Backtrace: =========\r\nFeb 15 16:45:59 bart dnsdist[21300]: /lib64/libc.so.6(+0x7cfe1)[0x7f7f012f2fe1]\r\nFeb 15 16:45:59 bart dnsdist[21300]: /lib64/liblua-5.1.so(+0x17c09)[0x7f7f026f5c09]\r\n```\r\nfull stacktrace in attached logfile.\r\n\r\nconfig\r\n```\r\nnewServer({address=\"[::1]:5301\", pool=\"pool1\", useClientSubnet=yes})\r\nnewServer({address=\"[::1]:5302\", pool=\"pool2\", useClientSubnet=yes})\r\nnewServer({address=\"192.0.2.1\", pool=\"pool3\", useClientSubnet=yes})\r\n\r\nsetECSSourcePrefixV4(24)\r\nsetECSSourcePrefixV6(64)\r\n\r\nsetServerPolicy(firstAvailable)\r\n\r\naddDelay( AndRule{ makeRule({\"192.0.2.99\"}), makeRule({\"cpsc.gov\"}) }, 3000)\r\n\r\naddPoolRule( AndRule{ makeRule({\"127.0.0.0/8\", \"::1\", \"192.0.2.0/24\", \"198.51.100.0/24\"}), makeRule({\"local\"}) }, \"pool3\")\r\n\r\naddPoolRule( AndRule{ makeRule({\"127.0.0.0/8\", \"::1\", \"192.0.2.0/24\", \"198.51.100.0/24\"}), makeRule({\"somedomain.tld\", \"anotherdomain.tld\"}) }, \"pool2\")\r\n\r\nfunction authRequestsOnly(dq)\r\n\tdq.dh:setRD(false)\r\n\treturn DNSAction.Pool, \"pool1\"\r\nend\r\n\r\naddLuaAction(NotRule( makeRule({\"192.0.2.0/24\", \"198.51.100.0/24\", \"203.0.113.0/24\"}) ), authRequestsOnly)\r\n\r\naddPoolRule({\"0.0.0.0/0\"}, \"pool1\")\r\n\r\nsetACL({\"0.0.0.0/0\", \"::/0\"})\r\n\r\naddLocal(\"0.0.0.0:53\")\r\naddLocal(\"[::]:53\")\r\n```\r\n\r\nversion is dnsdist 1.0.0-alpha2 rpm package for centos 7\r\n\r\n[stacktrace.txt](https://github.com/PowerDNS/pdns/files/131040/stacktrace.txt)\r\n"}}