bind-9.4.0b2 exits unexpected...

Marco Schumann schumann at strato-rz.de
Fri Oct 13 08:02:06 UTC 2006


Hello,

JINMEI Tatuya / 神明達哉 schrieb:
>>>>>> On Tue, 10 Oct 2006 19:36:51 +0200, 
>>>>>> Marco Schumann <schumann at strato-rz.de> said:
> 
>> I compiled using this patch and without --disable-atomic, unfortunately
>> named refused to start:
> 
>> 10-Oct-2006 19:28:22.894 general: rbtdb.c:1128: INSIST(((unsigned
>> int)((&rbtdb->node_locks[node->locknum].references)->ref
>> s))) failed
>> 10-Oct-2006 19:28:22.894 general: exiting (due to assertion failure)
> 
> Oops, sorry, the patch was not really correct.  Please use this one
> (attached below) instead.

I compiled again after patching:

export ISC_MEM_USE_INTERNAL_MALLOC="1"
export CFLAGS="-g -m32 -march=i586 -mtune=i686"
./configure \
    --enable-debug \
    --enable-shared \
    --disable-static \
    --enable-ipv6 \
    --with-libtool \
    --with-openssl \
    --enable-threads \
    --sysconfdir=/etc/named \
    --prefix=/opt/bind-9.4.0b2.patch02.no-disable-atomic \
    --infodir=/opt/info \
    --mandir=/opt/man
make --silent ISC_MEM_USE_INTERNAL_MALLOC=1
make install

Again named terminated with signal 6 right after starting (~3s), here
the logs and backtraces:

13-Oct-2006 09:45:26.472 general: rbtdb.c:1128: INSIST(((unsigned
int)((&rbtdb->node_locks[node->locknum].references)->refs)) > 0) failed
13-Oct-2006 09:45:26.472 general: exiting (due to assertion failure)


Thread 19 (process 30960):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ac1bf7 in sigsuspend () from /lib/libc.so.6
#2  0xb7c0e7ec in isc_app_run () at app.c:533
#3  0x08067c6b in main (argc=7, argv=0xbfea3f64) at ./main.c:868

Thread 18 (process 30961):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0152f in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_read) at rwlock.c:257
#3  0xb7debfd1 in findnode (db=0xadc63008, name=0xaaad7208,
create=isc_boolean_true, nodep=0xb79e6864) at rbtdb.c:1627
#4  0xb7da97db in dns_db_findnode (db=0xadc63008, name=0xaaad7208,
create=isc_boolean_true, nodep=0xb79e6864) at db.c:449
#5  0xb7e638f8 in ncache_message (fctx=0xaaad7200, addrinfo=0xa9fefc80,
covers=16, now=1160725526) at resolver.c:4134
#6  0xb7e667a7 in resquery_response (task=0xae9d2828, event=0xaa15fe18)
at resolver.c:5760
#7  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#8  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#9  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#10 0xb7b5665e in clone () from /lib/libc.so.6

Thread 17 (process 30962):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c01847 in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_write) at rwlock.c:333
#3  0xb7dec0c3 in findnode (db=0xadc63008, name=0xaa3ea398,
create=isc_boolean_true, nodep=0xb71e57fc) at rbtdb.c:1642
#4  0xb7da97db in dns_db_findnode (db=0xadc63008, name=0xaa3ea398,
create=isc_boolean_true, nodep=0xb71e57fc) at db.c:449
#5  0xb7e62b77 in cache_name (fctx=0xaa3db200, name=0xaa3ea398,
addrinfo=0xadc0c5f8, now=1160725526) at resolver.c:3688
#6  0xb7e633ee in cache_message (fctx=0xaa3db200, addrinfo=0xadc0c5f8,
now=1160725526) at resolver.c:3951
#7  0xb7e66747 in resquery_response (task=0xae9d24e8, event=0xaa1710f8)
at resolver.c:5741
#8  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#9  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#10 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#11 0xb7b5665e in clone () from /lib/libc.so.6

Thread 16 (process 30963):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0152f in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_read) at rwlock.c:257
#3  0xb7debfd1 in findnode (db=0xadc63008, name=0xab71c878,
create=isc_boolean_true, nodep=0xb69e47fc) at rbtdb.c:1627
#4  0xb7da97db in dns_db_findnode (db=0xadc63008, name=0xab71c878,
create=isc_boolean_true, nodep=0xb69e47fc) at db.c:449
#5  0xb7e62b77 in cache_name (fctx=0xab7473f8, name=0xab71c878,
addrinfo=0xa9fb78f0, now=1160725526) at resolver.c:3688
#6  0xb7e633ee in cache_message (fctx=0xab7473f8, addrinfo=0xa9fb78f0,
now=1160725526) at resolver.c:3951
#7  0xb7e66747 in resquery_response (task=0xae9d2140, event=0xaa15fb48)
at resolver.c:5741
#8  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#9  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#10 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#11 0xb7b5665e in clone () from /lib/libc.so.6

Thread 15 (process 30964):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 14 (process 30965):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 13 (process 30966):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 12 (process 30967):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 11 (process 30968):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0152f in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_read) at rwlock.c:257
#3  0xb7def786 in cache_find (db=0xadc63008, name=0xa8d5ac6c,
version=0x0, type=28, options=1, now=1160725526, nodep=0xb41df400,
    foundname=0xb41df464, rdataset=0xb41df634, sigrdataset=0x0) at
rbtdb.c:3373
#4  0xb7da99e4 in dns_db_find (db=0xadc63008, name=0xa8d5ac6c,
version=0x0, type=28, options=1, now=1160725526, nodep=0xb41df400,
    foundname=0xb41df464, rdataset=0xb41df634, sigrdataset=0x0) at db.c:475
#5  0xb7e88b75 in dns_view_find (view=0xae9cc008, name=0xa8d5ac6c,
type=28, now=1160725526, options=1, use_hints=isc_boolean_true, dbp=0x0,
    nodep=0x0, foundname=0xb41df464, rdataset=0xb41df634,
sigrdataset=0x0) at view.c:739
#6  0xb7da1ad4 in dbfind_name (adbname=0xa8d5ac68, now=1160725526,
rdtype=28) at adb.c:2989
#7  0xb7d9ff8e in dns_adb_createfind (adb=0x8318890, task=0xae9d2480,
action=0xb7e5d0f9 <fctx_finddone>, arg=0xad4d8200, name=0xb41df7d4,
    qname=0xad4d8208, qtype=1, options=255, now=1160725526, target=0x0,
port=53, findp=0xb41df738) at adb.c:2446
#8  0xb7e5e026 in findname (fctx=0xad4d8200, name=0xb41df7d4, port=0,
options=255, flags=0, now=1160725526, need_alternate=0xb41df7c0)
    at resolver.c:1990
#9  0xb7e5e82a in fctx_getaddresses (fctx=0xad4d8200) at resolver.c:2193
#10 0xb7e5f34d in fctx_try (fctx=0xad4d8200) at resolver.c:2503
#11 0xb7e66b17 in resquery_response (task=0xae9d2480, event=0xaa157b48)
at resolver.c:5842
#12 0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#13 0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#14 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#15 0xb7b5665e in clone () from /lib/libc.so.6

Thread 10 (process 30970):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 9 (process 30971):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 8 (process 30972):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0152f in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_read) at rwlock.c:257
#3  0xb7def786 in cache_find (db=0xadc63008, name=0xa9edbb18,
version=0x0, type=1, options=0, now=1160725526, nodep=0xb21dbd20,
    foundname=0xaa2f55a8, rdataset=0xaa2fc708, sigrdataset=0x0) at
rbtdb.c:3373
#4  0xb7da99e4 in dns_db_find (db=0xadc63008, name=0xa9edbb18,
version=0x0, type=1, options=0, now=1160725526, nodep=0xb21dbd20,
    foundname=0xaa2f55a8, rdataset=0xaa2fc708, sigrdataset=0x0) at db.c:475
#5  0x0806f92c in query_find (client=0xaa2d1008, event=0x0, qtype=1) at
query.c:3544
#6  0x08071af3 in ns_query_start (client=0xaa2d1008) at query.c:4573
#7  0x08059f28 in client_request (task=0xabc1a890, event=0xaa2d05a8) at
client.c:1741
#8  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#9  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#10 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#11 0xb7b5665e in clone () from /lib/libc.so.6

Thread 7 (process 30973):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0ac13 in dispatch (manager=0xb79eb0b0) at task.c:815
#3  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 6 (process 30974):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0152f in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_read) at rwlock.c:257
#3  0xb7debfd1 in findnode (db=0xadc63008, name=0xab9243f8,
create=isc_boolean_true, nodep=0xb11d97fc) at rbtdb.c:1627
#4  0xb7da97db in dns_db_findnode (db=0xadc63008, name=0xab9243f8,
create=isc_boolean_true, nodep=0xb11d97fc) at db.c:449
#5  0xb7e62b77 in cache_name (fctx=0xab93f200, name=0xab9243f8,
addrinfo=0xa9783858, now=1160725526) at resolver.c:3688
#6  0xb7e633ee in cache_message (fctx=0xab93f200, addrinfo=0xa9783858,
now=1160725526) at resolver.c:3951
#7  0xb7e66747 in resquery_response (task=0xae9d27c0, event=0xae9c8d28)
at resolver.c:5741
#8  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#9  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#10 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#11 0xb7b5665e in clone () from /lib/libc.so.6

Thread 5 (process 30975):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc17e6 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c0152f in isc_rwlock_lock (rwl=0xadc630e8,
type=isc_rwlocktype_read) at rwlock.c:257
#3  0xb7def786 in cache_find (db=0xadc63008, name=0xa9f6c188,
version=0x0, type=12, options=0, now=1160725526, nodep=0xb09d8d20,
    foundname=0xa9f6c1b8, rdataset=0xa9f5af88, sigrdataset=0x0) at
rbtdb.c:3373
#4  0xb7da99e4 in dns_db_find (db=0xadc63008, name=0xa9f6c188,
version=0x0, type=12, options=0, now=1160725526, nodep=0xb09d8d20,
    foundname=0xa9f6c1b8, rdataset=0xa9f5af88, sigrdataset=0x0) at db.c:475
#5  0x0806f92c in query_find (client=0xa9f5f008, event=0x0, qtype=12) at
query.c:3544
#6  0x08071af3 in ns_query_start (client=0xa9f5f008) at query.c:4573
#7  0x08059f28 in client_request (task=0xaa14fd08, event=0xa9f58e18) at
client.c:1741
#8  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#9  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#10 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#11 0xb7b5665e in clone () from /lib/libc.so.6

Thread 4 (process 30976):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc4828 in sendmsg () from /lib/libpthread.so.0
#2  0xb7c17f7c in doio_send (sock=0xae9c9648, dev=0xaa17b3c8) at
socket.c:1118
#3  0xb7c1c77e in socket_send (sock=0xae9c9648, dev=0xaa17b3c8,
task=0xadbbc3b0, address=0xadb25b54, pktinfo=0x0, flags=0) at socket.c:2768
#4  0xb7c1cbee in isc_socket_sendto (sock=0xae9c9648, region=0xb01d76e4,
task=0xadbbc3b0, action=0xb7e5b3ef <resquery_senddone>,
    arg=0xa924b008, address=0xadb25b54, pktinfo=0x0) at socket.c:2862
#5  0xb7e5cc7c in resquery_send (query=0xa924b008) at resolver.c:1543
#6  0xb7e5bea9 in fctx_query (fctx=0xa9242008, addrinfo=0xadb25b50,
options=40) at resolver.c:1177
#7  0xb7e66b96 in resquery_response (task=0xadbbc3b0, event=0xaa171c38)
at resolver.c:5848
#8  0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#9  0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#10 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#11 0xb7b5665e in clone () from /lib/libc.so.6

Thread 3 (process 30977):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7bc1a5c in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0xb7c20d5c in isc_condition_waituntil (c=0xb79ed040, m=0xb79ed010,
t=0xb79ed038) at condition.c:59
#3  0xb7c0d73a in run (uap=0xb79ed008) at timer.c:708
#4  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#5  0xb7b5665e in clone () from /lib/libc.so.6

Thread 2 (process 30978):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7b4fd11 in ___newselect_nocancel () from /lib/libc.so.6
#2  0xb7c1b2c4 in watcher (uap=0x80ad998) at socket.c:2285
#3  0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#4  0xb7b5665e in clone () from /lib/libc.so.6

Thread 1 (process 30969):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ac17d0 in raise () from /lib/libc.so.6
#2  0xb7ac2ea3 in abort () from /lib/libc.so.6
#3  0x0806692c in assertion_failed (file=0xb7ec5e79 "rbtdb.c",
line=1128, type=isc_assertiontype_insist,
    cond=0xb7ec637c "((unsigned
int)((&rbtdb->node_locks[node->locknum].references)->refs)) > 0") at
./main.c:159
#4  0xb7dea7bd in new_reference (rbtdb=0xadc63008, node=0xa8a83f68) at
rbtdb.c:1128
#5  0xb7dec24f in findnode (db=0xadc63008, name=0xab818428,
create=isc_boolean_true, nodep=0xb39de7fc) at rbtdb.c:1668
#6  0xb7da97db in dns_db_findnode (db=0xadc63008, name=0xab818428,
create=isc_boolean_true, nodep=0xb39de7fc) at db.c:449
#7  0xb7e62b77 in cache_name (fctx=0xab817200, name=0xab818428,
addrinfo=0xaa28a728, now=1160725526) at resolver.c:3688
#8  0xb7e633ee in cache_message (fctx=0xab817200, addrinfo=0xaa28a728,
now=1160725526) at resolver.c:3951
#9  0xb7e66747 in resquery_response (task=0xae9d2758, event=0xae9c8b48)
at resolver.c:5741
#10 0xb7c0afa8 in dispatch (manager=0xb79eb0b0) at task.c:867
#11 0xb7c0b242 in run (uap=0xb79eb0b0) at task.c:1010
#12 0xb7bbe34b in start_thread () from /lib/libpthread.so.0
#13 0xb7b5665e in clone () from /lib/libc.so.6

Kind regards
-- 
_____________________________
[Marco Schumann



More information about the bind-users mailing list