On mié, 2008-09-24 at 23:53 +0800, Paul Wise wrote: > > This is the back trace of running bind9 built with debugging info and > > using my current config: > ... > > Hmm, that doesn't look like you had debugging information available. > What does 'file /usr/lib/libdns.so.43' print when the version with debug > info is installed?
mx1:/home/moya/bind9# file /usr/lib/libdns.so.43.0.1 /usr/lib/libdns.so.43.0.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped First lines after debuild: dpkg-buildpackage: set CFLAGS to default value: -g -O0 dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set LDFLAGS to default value: dpkg-buildpackage: set FFLAGS to default value: -g -O0 dpkg-buildpackage: set CXXFLAGS to default value: -g -O0 I commented out the dh_strip line and rebuilt the package, this is the backtrace now -- mx1:/home/moya/bind9# gdb --args named -u bind -f GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /usr/sbin/named -u bind -f [Thread debugging using libthread_db enabled] [New Thread 0xb75386d0 (LWP 4047)] [New Thread 0xb748cb90 (LWP 4062)] [New Thread 0xb6c8cb90 (LWP 4063)] [New Thread 0xb648cb90 (LWP 4064)] [New Thread 0xb5c8cb90 (LWP 4065)] [New Thread 0xb548cb90 (LWP 4066)] [New Thread 0xb4c8cb90 (LWP 4067)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb748cb90 (LWP 4062)] 0xb7d74fc5 in dns_acl_match (reqaddr=0xb748c274, reqsigner=0x0, acl=0xb748e1e8, env=0xb74990a8, match=0xb748b8ac, matchelt=0x0) at acl.c:226 226 acl.c: No such file or directory. in acl.c (gdb) bt #0 0xb7d74fc5 in dns_acl_match (reqaddr=0xb748c274, reqsigner=0x0, acl=0xb748e1e8, env=0xb74990a8, match=0xb748b8ac, matchelt=0x0) at acl.c:226 #1 0x0805a80f in allowed (addr=0xb748c274, signer=0x0, acl=0xb748e1e8) at client.c:1265 #2 0x0805b840 in client_request (task=0xb74a4890, event=0xb42860f8) at client.c:1699 #3 0xb7b9062e in dispatch (manager=0xb7491008) at task.c:862 #4 0xb7b908c8 in run (uap=0xb7491008) at task.c:1005 #5 0xb7a07f3b in start_thread () from /lib/libpthread.so.0 #6 0xb7854c9e in clone () from /lib/libc.so.6 -- Find attached the full backtrace. Cheers, maykel
(gdb) bt full #0 0xb7d74fc5 in dns_acl_match (reqaddr=0xb748c274, reqsigner=0x0, acl=0xb748e1e8, env=0xb74990a8, match=0xb748b8ac, matchelt=0x0) at acl.c:226 bitlen = 32 family = 2 pfx = {family = 2, bitlen = 32, refcount = {refs = 0}, add = {sin = {s_addr = 3200310473}, sin6 = {in6_u = { u6_addr8 = "����", '\0' <repeats 11 times>, u6_addr16 = {56521, 48832, 0, 0, 0, 0, 0, 0}, u6_addr32 = {3200310473, 0, 0, 0}}}}} node = (isc_radix_node_t *) 0xb419be68 addr = (const isc_netaddr_t *) 0xb748c274 v4addr = {family = 3085746960, type = {in = {s_addr = 3022545568}, in6 = {in6_u = {u6_addr8 = "�b(�\b�(��b(����\t", u6_addr16 = {25248, 46120, 49160, 46120, 25276, 46120, 47293, 2537}, u6_addr32 = {3022545568, 3022569480, 3022545596, 166312125}}}, un = "�b(�\b�(��b(����\t\034\000\000\000\000\000\000\000\034\000\000\0008\220(�\030�(�\027\000\000\000\000\000!\000\000\000\001\000��([EMAIL PROTECTED](�", '\0' <repeats 24 times>, "�Ͷ�", '\0' <repeats 16 times>, "\020���"}, zone = 2} result = 0 match_num = 29 i = 3074996376 #1 0x0805a80f in allowed (addr=0xb748c274, signer=0x0, acl=0xb748e1e8) at client.c:1265 match = 0 result = 2 #2 0x0805b840 in client_request (task=0xb74a4890, event=0xb42860f8) at client.c:1699 tsig = (dns_name_t *) 0x0 client = (ns_client_t *) 0xb4282008 sevent = (isc_socketevent_t *) 0xb42860f8 result = 0 sigresult = 0 buffer = (isc_buffer_t *) 0xb748c2ec tbuffer = {magic = 1114990113, base = 0x9e9b888, length = 91, used = 91, current = 91, active = 91, link = {prev = 0xffffffff, next = 0xffffffff}, mctx = 0x0} view = (dns_view_t *) 0xb4472008 opt = (dns_rdataset_t *) 0x0 signame = (dns_name_t *) 0xb748c328 ra = 134581014 netaddr = {family = 2, type = {in = {s_addr = 3200310473}, in6 = {in6_u = {u6_addr8 = "�����.���6J���H�", u6_addr16 = {56521, 48832, 12000, 47034, 14056, 46922, 49876, 46920}, u6_addr32 = {3200310473, 3082432224, 3075094248, 3074998996}}}, un = "�����.���6J���H�\025\000\000\000T!��\220�H�\000\000\000\000��H�\216\222��\000\000\000\000\000\000\000\000��H�{�\005\b", '\0' <repeats 20 times>, "DS\v\b��H��4���6J�\000\000\000\000\220HJ�\000\000\000\000\220�H�"}, zone = 0} destaddr = {family = 2, type = {in = {s_addr = 2212420809}, in6 = {in6_u = {u6_addr8 = "���\203\020\000\000\000T!���6J�", u6_addr16 = {56521, 33758, 16, 0, 8532, 47035, 14056, 46922}, u6_addr32 = {2212420809, 16, 3082494292, 3075094248}}}, un = "���\203\020\000\000\000T!���6J�\000\000\000\000H�H�8���\230HJ���H�\000\020\000\000\216\222��4��\t�\000\000\000�EJ�\222���\000\000\000\000T!��x�H�O\000��\220HJ���H�\230�H�\000\000\000\000\001\000\000\000[\000\000\000[\000\000\000\000\000\000"}, zone = 0} match = 0 id = 2265 ---Type <return> to continue, or q <return> to quit--- flags = 2048 notimp = isc_boolean_false rdata = {data = 0xb7a0928e "\201�f�", length = 3074998936, rdclass = 0, type = 0, flags = 8, link = {prev = 0xb7b8f2c1, next = 0xb7a0a90c}} optcode = 0 #3 0xb7b9062e in dispatch (manager=0xb7491008) at task.c:862 dispatch_count = 1 done = isc_boolean_false finished = isc_boolean_false requeue = isc_boolean_false event = (isc_event_t *) 0xb42860f8 task = (isc_task_t *) 0xb74a4890 #4 0xb7b908c8 in run (uap=0xb7491008) at task.c:1005 manager = (isc_taskmgr_t *) 0xb7491008 #5 0xb7a07f3b in start_thread () from /lib/libpthread.so.0 No symbol table info available. #6 0xb7854c9e in clone () from /lib/libc.so.6 No symbol table info available.