Re: I just updated to bind-9.7.2b1and suddenly my DLZ is no longer working! It segfaults with the following error:
Rob Butler <[email protected]> Tue, 3 Aug 2010 07:38:25 -0700 (PDT)
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Message-ID | <[email protected]> |
Some versions of DLZ used '%' to demarcate tokens, but they can cause problems for the LDAP driver. Subsequent patches have changed the token demarcation to '$'. It looks like your updated version (that's failing) is using the '$' symbols. If your config file is a few years old and still using the '%', it will suddenly fail at startup. Simple solution is to check what your file is using around the tokens, and if it's '%', change them to '$' after the upgrade. Rob > >From: 黄志宾 <[email protected]> >To: [email protected] >Sent: Tue, August 3, 2010 5:36:59 AM >Subject: [Bind-dlz-testers] I just updated to bind-9.7.2b1and suddenly my DLZ is >no longer working! It segfaults with the following error: > >03-Aug-2010 17:31:50.452 clientmgr @0x2b1e49541850: create >03-Aug-2010 17:31:50.452 clientmgr @0x2b1e49541850: createclients >03-Aug-2010 17:31:50.452 clientmgr @0x2b1e49541850: create new >03-Aug-2010 17:31:50.452 client @0x1713c930: create >03-Aug-2010 17:31:50.452 clientmgr @0x2b1e49541850: createclients >03-Aug-2010 17:31:50.452 clientmgr @0x2b1e49541850: create new >03-Aug-2010 17:31:50.452 client @0x1713dea0: create >03-Aug-2010 17:31:50.453 generating session key for dynamic DNS >03-Aug-2010 17:31:50.454 Loading 'Mysql zone' using driver mysql >03-Aug-2010 17:31:50.454 Loading SDLZ driver. >03-Aug-2010 17:31:50.454 Required token $zone$ not found. >03-Aug-2010 17:31:50.454 Could not build all nodes query list >03-Aug-2010 17:31:50.454 mysql driver could not create database instance object. >段错误 (core dumped) > >I have not changed the named.conf file, and it's been working for years! I'm >wondering if anyone else has run into this, or if there's been some kind of >change to 9.7.0? > > >Downgrading to 9.4.3-P5, the problem goes away, and everything is good again. > >gdb: >[root@bogon etc]# gdb ../sbin/named ./core.29780 >GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5) >Copyright (C) 2009 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 "x86_64-redhat-linux-gnu". >For bug reporting instructions, please see: ><http://www.gnu.org/software/gdb/bugs/>... >Reading symbols from /usr/local/bind/sbin/named...done. >Reading symbols from /lib64/libcrypto.so.6...(no debugging symbols >found)...done. >Loaded symbols for /lib64/libcrypto.so.6 >Reading symbols from /usr/local/mysql/lib/mysql/libmysqlclient.so.16...done. >Loaded symbols for /usr/local/mysql/lib/mysql/libmysqlclient.so.16 >Reading symbols from /usr/lib64/libz.so.1...(no debugging symbols found)...done. >Loaded symbols for /usr/lib64/libz.so.1 >Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done. >Loaded symbols for /lib64/libcrypt.so.1 >Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done. >Loaded symbols for /lib64/libm.so.6 >Reading symbols from /lib64/libcap.so.1...(no debugging symbols found)...done. >Loaded symbols for /lib64/libcap.so.1 >Reading symbols from /usr/lib64/libxml2.so.2...(no debugging symbols >found)...done. >Loaded symbols for /usr/lib64/libxml2.so.2 >Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done. >Loaded symbols for /lib64/libc.so.6 >Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done. >Loaded symbols for /lib64/libdl.so.2 >Reading symbols from /lib64/libpthread.so.0...(no debugging symbols >found)...done. >Loaded symbols for /lib64/libpthread.so.0 >Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done. >Loaded symbols for /lib64/libnsl.so.1 >Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols >found)...done. >Loaded symbols for /lib64/ld-linux-x86-64.so.2 >Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols >found)...done. >Loaded symbols for /lib64/libnss_files.so.2 >Core was generated by `/usr/local/bind/sbin/named -uroot -g -d 9'. >Program terminated with signal 11, Segmentation fault. >#0 sdlzh_destroy_sqldbinstance (dbi=0x0) at >../../contrib/dlz/drivers/sdlz_helper.c:479 >479 mctx = dbi->mctx; > > >dlz "Mysql zone" { >database "mysql >{host=localhost dbname=xxxxx ssl=false port=3306 user=xxxxx pass=xxxxxx} >{select zone from dns_records where zone = '%zone%' limit 1} >{select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', >data, '\"') > >else data end from dns_records where zone = '%zone%' and host = '%record%' >and not (type = 'SOA' or type = 'NS')} >{select ttl, type, mx_priority, data, resp_person, serial, refresh, retry, >expire, minimum > >from dns_records where zone = '%zone%' and (type = 'SOA' or type='NS')} >{select ttl, type, host, mx_priority, data, resp_person, serial, refresh, >retry, expire, > >minimum from dns_records where zone = '%zone%' and not (type = 'SOA' or type = >'NS')} > >{select zone from xfr_table where zone = '%zone%' and client = '%client%'} >{update data_count set count = count + 1 where zone ='%zone%'}"; >}; > > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Bind-dlz-testers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers