Quering DS with do=1 on TLD causes core dump when a root zone is present #614

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

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

'''Scenario:'''

Ubuntu Server 12.04 running pdns-static_3.2-pre.20121107.2860-1_amd64.deb in 'monitor' mode.

domains table contains:

|  5 |            | NULL   |       NULL | NATIVE |            NULL | NULL    |

records table contains:

| 20 |         4 | int        | SOA  | localhost luuk@test.nl 2 86400 28800 2419200 86400 | 86400 | NULL |        NULL |           |    1 |
| 21 |         5 |            | SOA  | localhost luuk@test.nl 2 86400 28800 2419200 86400 | 86400 | NULL |        NULL |           |    1 |
| 22 |         4 | int        | NS   | localhost                                             | 86400 | NULL |        NULL |           |    1 |
| 23 |         5 |            | NS   | localhost                                             | 86400 | NULL |        NULL |           |    1 |

When querying the DS record from TLD 'int' with DO=1 (dig DS int @localhost +dnssec), pdns will crash. After removal of the root zone, the crash does not occur.

The resulting core dump:

Nov  7 12:08:47 nssec pdns[24106]: Got a signal 11, attempting to print trace:
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server() [0x699f40]
Nov  7 12:08:47 nssec pdns[24106]: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fbf4c8fb4a0]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN10DNSBackend22getBeforeAndAfterNamesEjRKSsS1_RSsS2_+0x12c) [0x68374c]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN13PacketHandler7addNSECEP9DNSPacketS1_RKSsS3_S3_i+0xd3) [0x662183]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN13PacketHandler8addNSECXEP9DNSPacketS1_RKSsS3_S3_i+0x133) [0x663733]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN13PacketHandler12makeNXDomainEP9DNSPacketS1_RKSsS3_R7SOAData+0x241) [0x664371]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN13PacketHandler17questionOrRecurseEP9DNSPacketPb+0x24e8) [0x666b68]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN13PacketHandler8questionEP9DNSPacket+0x65) [0x667095]
Nov  7 12:08:47 nssec pdns[24106]: /usr/sbin/pdns_server(_ZN11DistributorI9DNSPacketS0_13PacketHandlerE10makeThreadEPv+0x184) [0x6dfeb4]
Nov  7 12:08:47 nssec pdns[24106]: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7fbf4ce8fe9a]
Nov  7 12:08:47 nssec pdns[24106]: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fbf4c9b8cbd]
@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Attachment 'mysqldump from a database with reproducible core dump' (pdns_debug.sql) https://gist.github.com/5466808

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
Failing to reproduce here, can you send me the database in a format I can insert?

@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
While reproducing I noticed that securing the root zone seems to be the cause.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
fixed in 2868 and 2867.

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