Re: dlz-bdbhpt-dynamic - a dlopen bdbhpt DLZ driver -- works!
Jan-Piet Mens <[email protected]> Mon, 16 Jul 2012 11:59:27 +0200
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Message-ID | <[email protected]> |
> If you pull down another copy does it correctly link for you now?
It certainly does, yes, and your driver works, too! :-)
A few notes:
1. I configured it incorrectly first, thinking arg3 was path to
database name, whereupon BIND faults with below stack trace. My
fault, obviously, but you might want to look into that.
2. I had to modify bdbhpt-populate.pl to change flags = DB_CREATE
only. Running BDB 4.7. Don't know why that is, and don't really
have time to investigate. (Sorry.)
Thanks for your help -- nice job!
Regards,
-JP
-- stack trace when incorrectly configuring named with 3 i/o 4 args:
BIND faults, though as soon as it opens the driver: this is about as
much of a stack trace as I can get at the moment:
Reading symbols for shared libraries .. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00007fff8225dc00 in strlen ()
(gdb) bt
#0 0x00007fff8225dc00 in strlen ()
#1 0x00007fff822695fc in __vfprintf ()
#2 0x00007fff8229c5b7 in vsnprintf ()
#3 0x00000001001a12e0 in isc_log_doit (lctx=0x101034200, category=0x100267210, module=0x100267480, level=-4, write_once=isc_boolean_false, msgcat=<value temporarily unavailable, due to optimizations>, msgset=0, msg=0, format=0x100b74a60 "bdbhpt_dynamic: please supply 3 command line args. You supplied: %s", args=0x7fff5fbfd8e0) at log.c:1540
#4 0x00000001001a1c9c in isc_log_vwrite (lctx=<value temporarily unavailable, due to optimizations>, category=<value temporarily unavailable, due to optimizations>, module=<value temporarily unavailable, due to optimizations>, level=<value temporarily unavailable, due to optimizations>, format=<value temporarily unavailable, due to optimizations>, args=<value temporarily unavailable, due to optimizations>) at log.c:853
#5 0x000000010004ffb3 in dlopen_log (level=<value temporarily unavailable, due to optimizations>, fmt=<value temporarily unavailable, due to optimizations>) at dlz_dlopen_driver.c:93
#6 0x0000000100b738fb in dlz_create (dlzname=0x100923580 "bdbhpt_dynamic", argc=3, argv=0x100af5a68, dbdata=0x100b32020) at dlz_bdbhpt_dynamic.c:362
#7 0x000000010005114b in dlopen_dlz_create (dlzname=0x100923580 "bdbhpt_dynamic", argc=4, argv=0x100af5a60, driverarg=<value temporarily unavailable, due to optimizations>, dbdata=0x100af8f18) at dlz_dlopen_driver.c:340
#8 0x0000000100122c33 in dns_sdlzcreate (mctx=<value temporarily unavailable, due to optimizations>, dlzname=0x100923580 "bdbhpt_dynamic", argc=4, argv=0x100af5a60, driverarg=0x100905fd8, dbdata=0x100af8f18) at sdlz.c:1595
#9 0x00000001000781fb in dns_dlzcreate (mctx=0x100808e40, dlzname=0x100923580 "bdbhpt_dynamic", drivername=0x1009e6288 "dlopen", argc=4, argv=0x100af5a60, dbp=0x10105b028) at dlz.c:195
#10 0x0000000100029f28 in configure_view (view=0x10105b000, config=0x10092db40, vconfig=0x1009370a0, cachelist=0x7fff5fbff2c0, bindkeys=0x1009cd8c0, mctx=0x100808e40, actx=0x100903080, need_hints=isc_boolean_true) at server.c:1786
#11 0x0000000100032de4 in load_configuration (filename=<value temporarily unavailable, due to optimizations>, server=0x10090b000, first_time=isc_boolean_true) at server.c:4841
#12 0x0000000100034e5a in run_server (task=<value temporarily unavailable, due to optimizations>, event=0x0) at server.c:5392
#13 0x00000001001b293b in dispatch [inlined] () at /Users/jpm/Downloads/build/bind-9.9.1-P1/lib/isc/task.c:1109
#14 0x00000001001b293b in isc__taskmgr_dispatch (manager0=<value temporarily unavailable, due to optimizations>) at task.c:1602
#15 0x00000001001b6219 in isc__app_ctxrun (ctx0=0x100273220) at app.c:694
#16 0x0000000100011ef6 in main (argc=0, argv=0x7fff5fbff960) at ./main.c:1099
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/