BIND 9.5.0-P1 exiting due to assertion failure in rbtdb.c

Kai Lanz lanz at stanford.edu
Thu Aug 7 21:37:42 UTC 2008


On Aug 7, 2008, at 11:24 AM, JINMEI Tatuya / 神明達哉 wrote:

> Did named dump a core?  If so, can we see its
> backtrace?

It did dump a corefile; here's a stack trace. Look at thread 0xb to
see the assertion failure at rbtdb.c line 1439. (Threads 0x9 and
0x11 also seem to have aborted, but for a different reason.)

# dbx /local/sbin/named /scr1/core.named
dbx version 3.11.10
Type 'help' for help.
Core file created by program "named"

thread 0x9 signal IOT/Abort trap at >*[__nxm_thread_kill,  
0x3ff805b0c48]       ret      r31, (r26), 1

(dbx) tstack

Thread 0x9:
 >  0 __nxm_thread_kill(0x140183eb8, 0x0, 0x3ff805b3650, 0x140180da8,  
0x1401817a8) [0x3ff805b0c48]
    1 pthread_kill(0x0, 0x1, 0x140183eb8, 0x3ff80587ac8, 0x0)  
[0x3ff805a0784]
    2 (unknown)() [0x3ff805b3d7c]
    3 (unknown)() [0x3ff807e3774]
    4 exc_unwind(0x140180fa8, 0xabadabad00beed00, 0x140181240, 0x0,  
0x3ff807e3b3c) [0x3ff807e386c]
    5 exc_raise_signal_exception(0x86, 0x0, 0x3ff805b0c48, 0x1, 0x0)  
[0x3ff807e3b38]
    6 (unknown)() [0x3ff805a2120]
    7 __nxm_thread_kill(0x0, 0x0, 0x0, 0x10, 0x3ff80594bc0)  
[0x3ff805b0c48]
    8 pthread_kill(0x142e36ba0, 0x0, 0x0, 0x0, 0x3ff00000000)  
[0x3ff805a0784]
    9 (unknown)() [0x3ff805a859c]
   10 __tis_raise(0x3ff00000000, 0x2, 0x3ff80112d94, 0x100000006,  
0x3ff801630e4) [0x3ff80112d90]
   11 raise(0x3ff80112d94, 0x100000006, 0x3ff801630e4, 0x0,  
0x3ff8017a26c) [0x3ff801630e0]
   12 abort(0x120233918, 0x142e36ba0, 0x120233908, 0x2,  
0x3ffc00895d0) [0x3ff8017a268]
   13 default_callback(file = 0x1400c39d8 = "rbtdb.c", line = 1411,  
type = isc_assertiontype_insist, cond = 0x14007a1a8 = "noderefs !=  
0") ["assertions.c":94, 0x120233914]
   14 new_reference(rbtdb = 0x140423000, node = 0x1425dc730)  
["rbtdb.c":1411, 0x1201b49cc]
   15 cache_find(db = 0x140423000, name = 0x1427273f8, version =  
(nil), type = 1, options = 1, now = 1218134592, nodep = 0x140182818,  
foundname = 0x1401829e0, rdataset = 0x140182978, sigrdataset = (nil))  
["rbtdb.c":3976, 0x1201ba2f4]
   16 dns_db_find(db = 0x140423000, name = 0x1427273f8, version =  
(nil), type = 1, options = 1, now = 1218134592, nodep = 0x140182818,  
foundname = 0x1401829e0, rdataset = 0x140182978, sigrdataset = (nil))  
["db.c":475, 0x120155840]
   17 dns_view_find(view = 0x1403a4900, name = 0x1427273f8, type = 1,  
now = 1218134592, options = 1, use_hints = isc_boolean_true, dbp =  
(nil), nodep = (nil), foundname = 0x1401829e0, rdataset =  
0x140182978, sigrdataset = (nil)) ["view.c":754, 0x12012e8e0]
   18 dbfind_name(adbname = 0x1427273f0, now = 1218134592, rdtype =  
1) ["adb.c":2983, 0x1201702f8]
   19 dns_adb_createfind(adb = 0x14066d000, task = 0x140158300,  
action = 0x120114428, arg = 0x14141d000, name = 0x140182e18, qname =  
0x14141d010, qtype = 1, options = 253, now = 1218134592, target =  
(nil), port = 53, findp = 0x140182ce8) ["adb.c":2400, 0x12016e48c]
   20 findname(fctx = 0x14141d000, name = 0x140182e18, port = 0,  
options = 253, flags = 0, now = 1218134592, need_alternate =  
0x140182d50) ["resolver.c":2151, 0x120115320]
   21 fctx_getaddresses(fctx = 0x14141d000) ["resolver.c":2361,  
0x120115b04]
   22 fctx_try(fctx = 0x14141d000, retrying = isc_boolean_false)  
["resolver.c":2671, 0x120116428]
   23 resquery_response(task = 0x140158300, event = 0x140a9b138)  
["resolver.c":6193, 0x12011e6b4]
   24 dispatch(manager = 0x14012b800) ["task.c":862, 0x12023e19c]
   25 run(uap = 0x14012b800) ["task.c":1005, 0x12023e4ac]
   26 __thdBase(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff805a5c2c]

Thread 0x5:
 >  0 __hstQueueUnblockAndTerminate(0x140115d40, 0x140115e80,  
0x3ff80598f30, 0x140175880, 0x140115d40) [0x3ff805b0890]
    1 __hstSaveUnblockContext(0x80, 0x0, 0x3ffc01b70c0, 0x1,  
0x140173eb8) [0x3ff80590444]

Thread 0x7:
 >  0 __nxm_thread_block(0x3ff80598c50, 0x1400e7880, 0x1400e7d40,  
0x1400e7880, 0x3ff8059d574) [0x3ff805b0c28]
    1 (unknown)() [0x3ff8059d59c]
    2 (unknown)() [0x3ff8059cfac]
    3 __thdBase(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff805a5c2c]

Thread 0xb:
 >  0 __nxm_thread_kill(0x140173eb8, 0x0, 0x3ff805b3650, 0x140171228,  
0x140171c28) [0x3ff805b0c48]
    1 pthread_kill(0x0, 0x1, 0x140173eb8, 0x3ff80587ac8, 0x0)  
[0x3ff805a0784]
    2 (unknown)() [0x3ff805b3d7c]
    3 (unknown)() [0x3ff807e3774]
    4 exc_unwind(0x140171428, 0xabadabad00beed00, 0x1401716c0, 0x0,  
0x3ff807e3b3c) [0x3ff807e386c]
    5 exc_raise_signal_exception(0x86, 0x0, 0x3ff805b0c48, 0x1, 0x0)  
[0x3ff807e3b38]
    6 (unknown)() [0x3ff805a2120]
    7 __nxm_thread_kill(0x1201b35d8, 0x142756621, 0x140171f68, 0xff,  
0x0) [0x3ff805b0c48]
    8 pthread_kill(0x1406fb0a8, 0x1401720d8, 0x1, 0x140423000,  
0x3ff00000000) [0x3ff805a0784]
    9 (unknown)() [0x3ff805a859c]
   10 __tis_raise(0x3ff00000000, 0x0, 0x3ff80112d94, 0x100000006,  
0x3ff801630e4) [0x3ff80112d90]
   11 raise(0x3ff80112d94, 0x100000006, 0x3ff801630e4, 0x1401720d8,  
0x3ff8017a26c) [0x3ff801630e0]
   12 abort(0x1200560cc, 0x1400a7770, 0x3ff805a1e70, 0x0,  
0x600000000) [0x3ff8017a268]
   13 assertion_failed(file = 0x1400c39e0 = "rbtdb.c", line = 1439,  
type = isc_assertiontype_require, cond = 0x14007a1b8 = "prev > 0")  
["./main.c":159, 0x1200560c8]
   14 decrement_reference(rbtdb = 0x140423000, node = 0x1425dc730,  
least_serial = 0, nlock = isc_rwlocktype_read, tlock =  
isc_rwlocktype_none) ["rbtdb.c":1439, 0x1201b4ab8]
   15 detachnode(db = 0x140423000, targetp = 0x140172a00) ["rbtdb.c": 
4261, 0x1201bb184]
   16 dns_db_detachnode(db = 0x140423000, nodep = 0x140172a00)  
["db.c":525, 0x120155c88]
   17 cache_name(fctx = 0x14120d398, name = 0x1412143c0, addrinfo =  
0x1406fb0a8, now = 1218134592) ["resolver.c":4164, 0x12011a718]
   18 cache_message(fctx = 0x14120d398, addrinfo = 0x1406fb0a8, now =  
1218134592) ["resolver.c":4191, 0x12011a8b0]
   19 resquery_response(task = 0x140157a10, event = 0x140a923a8)  
["resolver.c":6092, 0x12011e358]
   20 dispatch(manager = 0x14012b800) ["task.c":862, 0x12023e19c]
   21 run(uap = 0x14012b800) ["task.c":1005, 0x12023e4ac]
   22 __thdBase(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff805a5c2c]

Thread 0xd:
 >  0 __sigwaitprim(0x11a60, 0x11b50, 0x12023ce48, 0x14013b750,  
0x12025731c) [0x3ff8010ee18]
    1 _Psigwait(0x1202573ec, 0x0, 0x0, 0x11ffffd80, 0x11ffffd78)  
[0x3ff805a04ac]
    2 isc_app_run() ["app.c":503, 0x1202573e8]
    3 main(argc = 1, argv = 0x11ffffe68) ["./main.c":879, 0x120057770]

Thread 0xf:
 >  0 __select(0x1, 0x5, 0x0, 0x140196020, 0x0) [0x3ff800d5f78]
    1 watcher(uap = 0x140196020) ["socket.c":2527, 0x12024bee4]
    2 __thdBase(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff805a5c2c]

Thread 0x11:
 >  0 __hstQueueUnblockAndTerminate(0x1400f7d40, 0x1400f7e80,  
0x3ff80598f30, 0x140185880, 0x1400f7d40) [0x3ff805b0890]
    1 __hstSaveUnblockContext(0x80, 0x0, 0x3ffc01b70c0, 0x1,  
0x140183eb8) [0x3ff80590444]
    2 __dspReadyAny(0x0, 0x1, 0x140183eb8, 0x3ff80587ac8, 0x0)  
[0x3ff8058e290]
    3 (unknown)() [0x3ff805b3d7c]
    4 (unknown)() [0x3ff807e3774]
    5 exc_unwind(0x140180fa8, 0xabadabad00beed00, 0x140181240, 0x0,  
0x3ff807e3b3c) [0x3ff807e386c]
    6 exc_raise_signal_exception(0x86, 0x0, 0x3ff805b0c48, 0x1, 0x0)  
[0x3ff807e3b38]
    7 (unknown)() [0x3ff805a2120]
    8 __nxm_thread_kill(0x0, 0x0, 0x0, 0x10, 0x3ff80594bc0)  
[0x3ff805b0c48]
    9 pthread_kill(0x142e36ba0, 0x0, 0x0, 0x0, 0x3ff00000000)  
[0x3ff805a0784]
   10 (unknown)() [0x3ff805a859c]
   11 __tis_raise(0x3ff00000000, 0x2, 0x3ff80112d94, 0x100000006,  
0x3ff801630e4) [0x3ff80112d90]
   12 raise(0x3ff80112d94, 0x100000006, 0x3ff801630e4, 0x0,  
0x3ff8017a26c) [0x3ff801630e0]
   13 abort(0x120233918, 0x142e36ba0, 0x120233908, 0x2,  
0x3ffc00895d0) [0x3ff8017a268]
   14 default_callback(file = 0x1400c39d8 = "rbtdb.c", line = 1411,  
type = isc_assertiontype_insist, cond = 0x14007a1a8 = "noderefs !=  
0") ["assertions.c":94, 0x120233914]
   15 new_reference(rbtdb = 0x140423000, node = 0x1425dc730)  
["rbtdb.c":1411, 0x1201b49cc]
   16 cache_find(db = 0x140423000, name = 0x1427273f8, version =  
(nil), type = 1, options = 1, now = 1218134592, nodep = 0x140182818,  
foundname = 0x1401829e0, rdataset = 0x140182978, sigrdataset = (nil))  
["rbtdb.c":3976, 0x1201ba2f4]
   17 dns_db_find(db = 0x140423000, name = 0x1427273f8, version =  
(nil), type = 1, options = 1, now = 1218134592, nodep = 0x140182818,  
foundname = 0x1401829e0, rdataset = 0x140182978, sigrdataset = (nil))  
["db.c":475, 0x120155840]
   18 dns_view_find(view = 0x1403a4900, name = 0x1427273f8, type = 1,  
now = 1218134592, options = 1, use_hints = isc_boolean_true, dbp =  
(nil), nodep = (nil), foundname = 0x1401829e0, rdataset =  
0x140182978, sigrdataset = (nil)) ["view.c":754, 0x12012e8e0]
   19 dbfind_name(adbname = 0x1427273f0, now = 1218134592, rdtype =  
1) ["adb.c":2983, 0x1201702f8]
   20 dns_adb_createfind(adb = 0x14066d000, task = 0x140158300,  
action = 0x120114428, arg = 0x14141d000, name = 0x140182e18, qname =  
0x14141d010, qtype = 1, options = 253, now = 1218134592, target =  
(nil), port = 53, findp = 0x140182ce8) ["adb.c":2400, 0x12016e48c]
   21 findname(fctx = 0x14141d000, name = 0x140182e18, port = 0,  
options = 253, flags = 0, now = 1218134592, need_alternate =  
0x140182d50) ["resolver.c":2151, 0x120115320]
   22 fctx_getaddresses(fctx = 0x14141d000) ["resolver.c":2361,  
0x120115b04]
   23 fctx_try(fctx = 0x14141d000, retrying = isc_boolean_false)  
["resolver.c":2671, 0x120116428]
   24 resquery_response(task = 0x140158300, event = 0x140a9b138)  
["resolver.c":6193, 0x12011e6b4]
   25 dispatch(manager = 0x14012b800) ["task.c":862, 0x12023e19c]
   26 run(uap = 0x14012b800) ["task.c":1005, 0x12023e4ac]
   27 __thdBase(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff805a5c2c]
(dbx)

-- 
Kai Lanz



More information about the bind-users mailing list