{"action":"created","issue":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/2422","labels_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2422/labels{/name}","comments_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2422/comments","events_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2422/events","html_url":"https://github.com/PowerDNS/pdns/issues/2422","id":67628521,"number":2422,"title":"pdns_server --list-modules dumps core on OpenBSD","user":{"login":"paultheweird","id":11889659,"avatar_url":"https://avatars.githubusercontent.com/u/11889659?v=3","gravatar_id":"","url":"https://api.github.com/users/paultheweird","html_url":"https://github.com/paultheweird","followers_url":"https://api.github.com/users/paultheweird/followers","following_url":"https://api.github.com/users/paultheweird/following{/other_user}","gists_url":"https://api.github.com/users/paultheweird/gists{/gist_id}","starred_url":"https://api.github.com/users/paultheweird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paultheweird/subscriptions","organizations_url":"https://api.github.com/users/paultheweird/orgs","repos_url":"https://api.github.com/users/paultheweird/repos","events_url":"https://api.github.com/users/paultheweird/events{/privacy}","received_events_url":"https://api.github.com/users/paultheweird/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/auth","name":"auth","color":"eb6420"},{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/defect","name":"defect","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-04-10T16:12:24Z","updated_at":"2015-05-05T19:20:32Z","closed_at":null,"body":"When running pdns_server --list-modules I get a core dump on OpenBSD. This is PowerDNS 3.4.3 (port not updated in OpenBSD ports tree yet):\r\n\r\n```\r\n[weerd@pom] $ pdns_server --list-modules         \r\nApr 10 18:10:49 Reading random entropy from '/dev/urandom'\r\nApr 10 18:10:49 Loading '/usr/local/lib/powerdns/pdns/libgeobackend.so'\r\nApr 10 18:10:49 Loading '/usr/local/lib/powerdns/pdns/libgsqlite3backend.so'\r\nModules available:\r\ngeo\r\ngsqlite3\r\npdns_server(3822) in free(): error: chunk is already free 0xb065ba27d00\r\nAbort trap (core dumped) \r\n```\r\n\r\nRunning gdb on the core file I get the following backtrace:\r\n```\r\n(gdb) bt\r\n#0  0x00000b061c1b991a in kill () at <stdin>:2\r\n#1  0x00000b061c1f30d9 in abort () at /usr/src/lib/libc/stdlib/abort.c:53\r\n#2  0x00000b061c1ef7f0 in wrterror (msg=0xb061c2fc476 \"chunk is already free\", p=0xb065ba27d00)\r\n    at /usr/src/lib/libc/stdlib/malloc.c:281\r\n#3  0x00000b061c1ef8e6 in find_chunknum (d=Variable \"d\" is not available.\r\n) at /usr/src/lib/libc/stdlib/malloc.c:1005\r\n#4  0x00000b061c1f0aff in ofree (p=0xb065ba27d00) at /usr/src/lib/libc/stdlib/malloc.c:1240\r\n#5  0x00000b061c1f0cee in free (ptr=0xb065ba27d00) at /usr/src/lib/libc/stdlib/malloc.c:1282\r\n#6  0x00000b0374e75bba in GeoBackend::queueNSRecords () from /usr/local/sbin/pdns_server\r\n#7  0x00000b061c1d5d49 in __cxa_finalize (dso=0x0) at /usr/src/lib/libc/stdlib/atexit.c:141\r\n#8  0x00000b061c1c7f1e in exit (status=99) at /usr/src/lib/libc/stdlib/exit.c:57\r\n#9  0x00000b0374f42384 in main () from /usr/local/sbin/pdns_server\r\nCurrent language:  auto; currently asm\r\n```"},"comment":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/comments/99190807","html_url":"https://github.com/PowerDNS/pdns/issues/2422#issuecomment-99190807","issue_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2422","id":99190807,"user":{"login":"ahupowerdns","id":1223657,"avatar_url":"https://avatars.githubusercontent.com/u/1223657?v=3","gravatar_id":"","url":"https://api.github.com/users/ahupowerdns","html_url":"https://github.com/ahupowerdns","followers_url":"https://api.github.com/users/ahupowerdns/followers","following_url":"https://api.github.com/users/ahupowerdns/following{/other_user}","gists_url":"https://api.github.com/users/ahupowerdns/gists{/gist_id}","starred_url":"https://api.github.com/users/ahupowerdns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahupowerdns/subscriptions","organizations_url":"https://api.github.com/users/ahupowerdns/orgs","repos_url":"https://api.github.com/users/ahupowerdns/repos","events_url":"https://api.github.com/users/ahupowerdns/events{/privacy}","received_events_url":"https://api.github.com/users/ahupowerdns/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T19:20:32Z","updated_at":"2015-05-05T19:20:32Z","body":"Thank you!\n"}}