kdig error: *** Error in `kdig': free(): invalid pointer: 0x0000562a7afdc5f0 ***
Hello! When I run the kdig utility with some specific options I catch backtrace:
kdig @xxx.xxx.xxx.xxx -b yyy.yyy.yyy.yyy -q . -t soa +noall +nsid +retry=0 +timeout=1 -E tapfile 2> errorfile
*** Error in `kdig': free(): invalid pointer: 0x00005561c25d85f0 ***
======= Backtrace: =========
/usr/lib64/libc.so.6(+0x81299)[0x7fe70a657299]
kdig(+0xfab4)[0x5561c142bab4]
kdig(+0x7597)[0x5561c1423597]
kdig(+0x84e2)[0x5561c14244e2]
kdig(+0x8c68)[0x5561c1424c68]
kdig(+0x98f8)[0x5561c14258f8]
kdig(+0x7376)[0x5561c1423376]
/usr/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fe70a5f8555]
kdig(+0x73b1)[0x5561c14233b1]
======= Memory map: ========
5561c141c000-5561c143b000 r-xp 00000000 fd:00 1848375 /usr/bin/kdig
5561c163a000-5561c163d000 r--p 0001e000 fd:00 1848375 /usr/bin/kdig
5561c163d000-5561c163e000 rw-p 00021000 fd:00 1848375 /usr/bin/kdig
5561c25b9000-5561c25da000 rw-p 00000000 00:00 0 [heap]
7fe6fc000000-7fe6fc021000 rw-p 00000000 00:00 0
7fe6fc021000-7fe700000000 ---p 00000000 00:00 0
7fe702933000-7fe708e75000 r--p 00000000 fd:00 1845381 /usr/lib/locale/locale-archive
7fe708e75000-7fe708e77000 r-xp 00000000 fd:00 1838252 /usr/lib64/libdl-2.17.so
7fe708e77000-7fe709077000 ---p 00002000 fd:00 1838252 /usr/lib64/libdl-2.17.so
7fe709077000-7fe709078000 r--p 00002000 fd:00 1838252 /usr/lib64/libdl-2.17.so
7fe709078000-7fe709079000 rw-p 00003000 fd:00 1838252 /usr/lib64/libdl-2.17.so
7fe709079000-7fe709080000 r-xp 00000000 fd:00 1838388 /usr/lib64/libffi.so.6.0.1
7fe709080000-7fe70927f000 ---p 00007000 fd:00 1838388 /usr/lib64/libffi.so.6.0.1
7fe70927f000-7fe709280000 r--p 00006000 fd:00 1838388 /usr/lib64/libffi.so.6.0.1
7fe709280000-7fe709281000 rw-p 00007000 fd:00 1838388 /usr/lib64/libffi.so.6.0.1
7fe709281000-7fe7092f7000 r-xp 00000000 fd:00 1838518 /usr/lib64/libgmp.so.10.2.0
7fe7092f7000-7fe7094f6000 ---p 00076000 fd:00 1838518 /usr/lib64/libgmp.so.10.2.0
7fe7094f6000-7fe7094f8000 r--p 00075000 fd:00 1838518 /usr/lib64/libgmp.so.10.2.0
7fe7094f8000-7fe7094f9000 rw-p 00077000 fd:00 1838518 /usr/lib64/libgmp.so.10.2.0
7fe7094f9000-7fe70951f000 r-xp 00000000 fd:00 1848341 /usr/lib64/libhogweed.so.2.5
7fe70951f000-7fe70971e000 ---p 00026000 fd:00 1848341 /usr/lib64/libhogweed.so.2.5
7fe70971e000-7fe70971f000 r--p 00025000 fd:00 1848341 /usr/lib64/libhogweed.so.2.5
7fe70971f000-7fe709720000 rw-p 00026000 fd:00 1848341 /usr/lib64/libhogweed.so.2.5
7fe709720000-7fe70974f000 r-xp 00000000 fd:00 1848343 /usr/lib64/libnettle.so.4.7
7fe70974f000-7fe70994f000 ---p 0002f000 fd:00 1848343 /usr/lib64/libnettle.so.4.7
7fe70994f000-7fe709950000 r--p 0002f000 fd:00 1848343 /usr/lib64/libnettle.so.4.7
7fe709950000-7fe709951000 rw-p 00030000 fd:00 1848343 /usr/lib64/libnettle.so.4.7
7fe709951000-7fe709962000 r-xp 00000000 fd:00 1838524 /usr/lib64/libtasn1.so.6.5.3
7fe709962000-7fe709b62000 ---p 00011000 fd:00 1838524 /usr/lib64/libtasn1.so.6.5.3
7fe709b62000-7fe709b63000 r--p 00011000 fd:00 1838524 /usr/lib64/libtasn1.so.6.5.3
7fe709b63000-7fe709b64000 rw-p 00012000 fd:00 1838524 /usr/lib64/libtasn1.so.6.5.3
7fe709b64000-7fe709c7e000 r-xp 00000000 fd:00 1838508 /usr/lib64/libp11-kit.so.0.3.0
7fe709c7e000-7fe709e7e000 ---p 0011a000 fd:00 1838508 /usr/lib64/libp11-kit.so.0.3.0
7fe709e7e000-7fe709e88000 r--p 0011a000 fd:00 1838508 /usr/lib64/libp11-kit.so.0.3.0
7fe709e88000-7fe709e92000 rw-p 00124000 fd:00 1838508 /usr/lib64/libp11-kit.so.0.3.0
7fe709e92000-7fe709e93000 rw-p 00000000 00:00 0
7fe709e93000-7fe709ea8000 r-xp 00000000 fd:00 1838294 /usr/lib64/libz.so.1.2.7
7fe709ea8000-7fe70a0a7000 ---p 00015000 fd:00 1838294 /usr/lib64/libz.so.1.2.7
7fe70a0a7000-7fe70a0a8000 r--p 00014000 fd:00 1838294 /usr/lib64/libz.so.1.2.7
7fe70a0a8000-7fe70a0a9000 rw-p 00015000 fd:00 1838294 /usr/lib64/libz.so.1.2.7
7fe70a0a9000-7fe70a1bc000 r-xp 00000000 fd:00 1839518 /usr/lib64/libunistring.so.0.1.2
7fe70a1bc000-7fe70a3bb000 ---p 00113000 fd:00 1839518 /usr/lib64/libunistring.so.0.1.2
7fe70a3bb000-7fe70a3be000 r--p 00112000 fd:00 1839518 /usr/lib64/libunistring.so.0.1.2
7fe70a3be000-7fe70a3bf000 rw-p 00115000 fd:00 1839518 /usr/lib64/libunistring.so.0.1.2
7fe70a3bf000-7fe70a3c0000 rw-p 00000000 00:00 0
7fe70a3c0000-7fe70a3d5000 r-xp 00000000 fd:00 1838799 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fe70a3d5000-7fe70a5d4000 ---p 00015000 fd:00 1838799 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fe70a5d4000-7fe70a5d5000 r--p 00014000 fd:00 1838799 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fe70a5d5000-7fe70a5d6000 rw-p 00015000 fd:00 1838799 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fe70a5d6000-7fe70a79a000 r-xp 00000000 fd:00 1838246 /usr/lib64/libc-2.17.so
7fe70a79a000-7fe70a999000 ---p 001c4000 fd:00 1838246 /usr/lib64/libc-2.17.so
7fe70a999000-7fe70a99d000 r--p 001c3000 fd:00 1838246 /usr/lib64/libc-2.17.so
7fe70a99d000-7fe70a99f000 rw-p 001c7000 fd:00 1838246 /usr/lib64/libc-2.17.so
7fe70a99f000-7fe70a9a4000 rw-p 00000000 00:00 0
7fe70a9a4000-7fe70a9ac000 r-xp 00000000 fd:00 1845409 /usr/lib64/libprotobuf-c.so.1.0.0
7fe70a9ac000-7fe70abab000 ---p 00008000 fd:00 1845409 /usr/lib64/libprotobuf-c.so.1.0.0
7fe70abab000-7fe70abac000 r--p 00007000 fd:00 1845409 /usr/lib64/libprotobuf-c.so.1.0.0
7fe70abac000-7fe70abad000 rw-p 00008000 fd:00 1845409 /usr/lib64/libprotobuf-c.so.1.0.0
7fe70abad000-7fe70abb6000 r-xp 00000000 fd:00 1845987 /usr/lib64/libfstrm.so.0.0.0
7fe70abb6000-7fe70adb5000 ---p 00009000 fd:00 1845987 /usr/lib64/libfstrm.so.0.0.0
7fe70adb5000-7fe70adb6000 r--p 00008000 fd:00 1845987 /usr/lib64/libfstrm.so.0.0.0
7fe70adb6000-7fe70adb7000 rw-p 00009000 fd:00 1845987 /usr/lib64/libfstrm.so.0.0.0
7fe70adb7000-7fe70aee5000 r-xp 00000000 fd:00 1848353 /usr/lib64/libgnutls.so.28.43.3Aborted
This issue has come when i run kdig with two options together: -b and -E. Whet i run only with -b or only E all work fun. My OS reliase: Centos7, Linux ndns.cms.board 3.10.0-957.el7.x86_64 #1 (closed) SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Have you some idea?