*** glibc detected *** ./pdns_server: munmap_chunk(): invalid pointer: 0x0000000001e53b40 *** #408

Closed
Habbie opened this Issue Apr 26, 2013 · 3 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

i need to find out how many ips can powerdns listen to, we are a big provider and want to move all our dns servers into one.
i have routed locally on the loopback interface ips 10.1.1.0 -> 10.1.16.255, and loaded them into the config of powerdns. If i try to start powerdns, i get this error:

Nov 29 02:02:28 UDP server bound to 10.1.1.1:53
Nov 29 02:02:28 UDP server bound to 10.1.1.2:53
...
Nov 29 02:02:28 UDP server bound to 10.1.14.244:53
Nov 29 02:02:28 UDP server bound to 10.1.14.245:53
Nov 29 02:02:28 UDP server bound to 10.1.14.246:53

*** glibc detected *** ./pdns_server: munmap_chunk(): invalid pointer: 0x0000000001e53b40 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76156)[0x7f7eeba09156]
./pdns_server(_ZN13UDPNameserver8bindIPv4Ev+0xaed)[0x46765d]
./pdns_server(_ZN13UDPNameserverC2Ev+0x8f)[0x468dbf]
./pdns_server(main+0x1f0c)[0x4be8dc]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f7eeb9b509d]
./pdns_server[0x453cf9]
======= Memory map: ========
00400000-005e2000 r-xp 00000000 08:03 792830 /root/pdn/pdns/pdns/pdns_server
007e1000-007e2000 r--p 001e1000 08:03 792830 /root/pdn/pdns/pdns/pdns_server
007e2000-007e4000 rw-p 001e2000 08:03 792830 /root/pdn/pdns/pdns/pdns_server
007e4000-007e6000 rw-p 00000000 00:00 0
01e23000-01e99000 rw-p 00000000 00:00 0 [heap]
7f7eeaf51000-7f7eeaf5d000 r-xp 00000000 08:03 7864707 /lib64/libnss_files-2.13.so
7f7eeaf5d000-7f7eeb15c000 ---p 0000c000 08:03 7864707 /lib64/libnss_files-2.13.so
7f7eeb15c000-7f7eeb15d000 r--p 0000b000 08:03 7864707 /lib64/libnss_files-2.13.so
7f7eeb15d000-7f7eeb15e000 rw-p 0000c000 08:03 7864707 /lib64/libnss_files-2.13.so
7f7eeb15e000-7f7eeb168000 r-xp 00000000 08:03 7864505 /lib64/libnss_nis-2.13.so
7f7eeb168000-7f7eeb368000 ---p 0000a000 08:03 7864505 /lib64/libnss_nis-2.13.so
7f7eeb368000-7f7eeb369000 r--p 0000a000 08:03 7864505 /lib64/libnss_nis-2.13.so
7f7eeb369000-7f7eeb36a000 rw-p 0000b000 08:03 7864505 /lib64/libnss_nis-2.13.so
7f7eeb36a000-7f7eeb37f000 r-xp 00000000 08:03 7864449 /lib64/libnsl-2.13.so
7f7eeb37f000-7f7eeb57e000 ---p 00015000 08:03 7864449 /lib64/libnsl-2.13.so
7f7eeb57e000-7f7eeb57f000 r--p 00014000 08:03 7864449 /lib64/libnsl-2.13.so
7f7eeb57f000-7f7eeb580000 rw-p 00015000 08:03 7864449 /lib64/libnsl-2.13.so
7f7eeb580000-7f7eeb582000 rw-p 00000000 00:00 0
7f7eeb582000-7f7eeb589000 r-xp 00000000 08:03 7864509 /lib64/libnss_compat-2.13.soNov 29 02:02:28 Got a signal 6, attempting to print trace:
Nov 29 02:02:28 ./pdns_server() [0x4b8f00]
Nov 29 02:02:28 /lib64/libc.so.6(+0x35b80) [0x7f7eeb9c8b80]
Nov 29 02:02:28 /lib64/libc.so.6(gsignal+0x35) [0x7f7eeb9c8b05]
Nov 29 02:02:28 /lib64/libc.so.6(abort+0x186) [0x7f7eeb9c9f86]
Nov 29 02:02:28 /lib64/libc.so.6(+0x70cc3) [0x7f7eeba03cc3]
Nov 29 02:02:28 /lib64/libc.so.6(+0x76156) [0x7f7eeba09156]
Nov 29 02:02:28 ./pdns_server(_ZN13UDPNameserver8bindIPv4Ev+0xaed) [0x46765d]
Nov 29 02:02:28 ./pdns_server(_ZN13UDPNameserverC2Ev+0x8f) [0x468dbf]
Nov 29 02:02:28 ./pdns_server(main+0x1f0c) [0x4be8dc]
Nov 29 02:02:28 /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f7eeb9b509d]
Nov 29 02:02:28 ./pdns_server() [0x453cf9]

Is the number of interfaces to bind on hardcoded somewhere? I've also raised ulimit -n 1000000. I suspect a memory leak, since lowering the number of ips to listen on, while still making powerdns start correctly causes instability and crashes. Named doesn't have this problem, but it is very slow. Thank you. Tested on 2.9, 3.0, 3.1pre(svn)

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
Confirmed. Will investigate.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
As powerdns-auth uses select(2) the FD limit is 1024. I would recommend to set ulimit -n to 1024 as well.

Leaving bug open to either get rid of the limit, or make sure it does not cause crashes.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
removed select in commit 2739 and 2740.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment