bind (9.6.1-P2) dies when one tries to retrieve statistics via HTTP from the 
statistcs-channel feature if an underlying call to libxml fails (returns a NULL 
pointer) at statschannel.c:720 - writer = xmlNewTextWriterDoc(&doc, 0);

gdb stack trace attached

Paul
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"...
Reading symbols from /lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/tls/i686/cmov/libc.so.6...Reading symbols from 
/usr/lib/debug/lib/tls/i686/cmov/libc-2.9.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/tls/i686/cmov/librt.so.1...Reading symbols from 
/usr/lib/debug/lib/tls/i686/cmov/librt-2.9.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...Reading symbols from 
/usr/lib/debug/lib/tls/i686/cmov/libdl-2.9.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libelf.so.1...done.
Loaded symbols for /usr/lib/libelf.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...Reading symbols from 
/usr/lib/debug/lib/tls/i686/cmov/libm-2.9.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/ld-linux.so.2...Reading symbols from 
/usr/lib/debug/lib/ld-2.9.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...Reading symbols from 
/usr/lib/debug/lib/tls/i686/cmov/libpthread-2.9.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Core was generated by `/home/paul/testing/bind-9.6.1-P2/bin/named/named -m 
record,size,mctx -c'.
Program terminated with signal 6, Aborted.
[New process 17359]
#0  0xb800e430 in __kernel_vsyscall ()
(gdb) bt full
#0  0xb800e430 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7c046d0 in *__GI_raise (sig=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <value optimized out>
        pid = -1210875916
        selftid = 17359
#2  0xb7c06098 in *__GI_abort () at abort.c:88
        act = {__sigaction_handler = {sa_handler = 0xb802bff4, sa_sigaction = 
0xb802bff4}, sa_mask = {__val = {200, 158227552, 
      3084089632, 0, 3218258208, 3218258196, 3084095808, 3218258136, 
3083128550, 3218258272, 3087189616, 134520972, 
      3218258120, 0, 0, 3084765040, 150, 3084249268, 3084764937, 3085393908, 
83125478, 3085393908, 3084256000, 3085400992, 
      3218258216, 3084255320, 158227560, 3084256000, 0, 4294967295, 3085364480, 
3218258288}}, sa_flags = -1076709096, 
  sa_restorer = 0xbfd2b9b8}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0x0805b5ed in assertion_failed (file=0x81e5954 "statschannel.c", line=721, 
type=isc_assertiontype_insist, 
    cond=0x81e59d0 "xmlrc >= 0") at ./main.c:161
No locals.
#4  0x08075e45 in generatexml (server=0xb7a2b018, buflen=0xbfd2be8c, 
buf=0xbfd2be90) at statschannel.c:721
        boottime = "2009-12-16T19:01:48Z"
        nowstr = "2009-12-16T19:02:00Z"
        now = {seconds = 1260990120, nanoseconds = 623889000}
        writer = (xmlTextWriterPtr) 0x0
        doc = <value optimized out>
        xmlrc = 0
        view = <value optimized out>
        dumparg = {type = 3087190056, arg = 0x30313032, ncounters = 
-1210875916, counterindices = 0xbfd2bef4, 
  countervalues = 0xbfd2bf08}
        cachestats = <value optimized out>
        nsstat_values = {953482756112, 13229877028469080104, 154755098322, 
673625797440831776, 13232763590089375780, 
  13246071614975508696, 679868415230579008, 584259502379892770, 956563732520, 
673625797440831528, 146165163730, 
  673625797440831760, 13232763418290683938, 584273395522386984, 9492013999826, 
13822318495170585830, 585299528710621346, 
  13822319047924267048, 13822318787302077208, 13232577669628191974, 
13822319426018655812, 579440689730993240, 
  13822319391658917444, 966419115570774080, 13259015910889536648, 
966419115570753984, 13259015910889536664, 
  577768293754909726, 13251703746116836712, 13822110218024942864, 
577761572135492968, 13259371310710489700, 20261403844, 
  13259020261691407636, 13259015910889536728, 577768293754909726}
        resstat_values = {13259301299658162176, 13822110218161667296, 
13251704123403581107, 60205065653, 13239934711087615248, 
  13242563351467441680, 13822319181205520160, 2521145802753, 
13822320357889834256, 13245553311341650091, 13245530310446257044, 
  10379872124184739828, 13822319116649941032, 13822319047930380991, 
13019420504, 140526143436, 4294967299, 4294967299, 
  4429484840, 7382155252, 13822319391527847976, 13822318996521926128, 
13246053799585682216, 13245552761451315207, 
  585812029978181661, 0, 2, 13822319178070385894, 1803886264320, 
18446744056529682432}
        zonestat_values = {13233027493140930936, 13822319594735522408, 
577763964432336496, 17, 13822320371988168704, 
  13822319182282227904, 956563763208, 13822319766397780160, 
13240004289693400820, 20265271984, 13259371311920054271, 
  13259378437405316952, 13259105808850009664}
        sockstat_values = {13822316814541141816, 585908065583337760, 
13226474074497724544, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 
  17179869216, 13822315285670181508, 0, 11808193880, 3080848168, 0, 3080848168, 
18446744069414584336, 12884901887, 16790794, 
  0, 0, 0, 0, 0, 0, 0, 0, 3083115636, 0, 0, 0, 13246090633250460608, 
687261292108447743, 686257745956175874, 16400, 0, 0, 0, 
  0, 13246071614975508480, 686187342915146048, 13241891008561847412, 
686187342915146048, 13229853286049633208, 
  13229877028626552872, 13246090633248989368, 687261287973245888, 
679938815250399268}
#5  0x08076238 in render_index (url=0x96ab430 "/", querystring=0x0, 
arg=0xb7a2b018, retcode=0x96ab87c, retmsg=0x96ab880, 
    mimetype=0x96ab878, b=0x96ab884, freecb=0x96ab8a8, freecb_args=0x96ab8ac) 
at statschannel.c:866
        msg = (
    unsigned char *) 0x96ab43b "\nHost: dslabpc16:8053\r\nUser-Agent: 
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.5) Gecko/20091102 
Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729)\r\nAccept: 
text/html,application/xhtml+xml,applicati"...
        msglen = -1076707596
#6  0x081b43c8 in isc_httpd_recvdone (task=0xb7a2d768, ev=0xb7a52818) at 
httpd.c:688
        r = {base = 0x821d280 "Þ\233 \b", length = 60}
        result = <value optimized out>
        httpd = (isc_httpd_t *) 0x96ab418
        url = (isc_httpdurl_t *) 0xb7a43950
        now = {seconds = 1260990120, nanoseconds = 623873000}
        datebuf = "Wed, 16 Dec 2009 19:02:00 GMT\000\000"
#7  0x081cb072 in isc__taskmgr_dispatch () at task.c:862
        manager = (isc_taskmgr_t *) 0xb7a21158
#8  0x081ce2bf in evloop () at app.c:358
        when = {seconds = 1260991308, nanoseconds = 398255000}
        tv = {tv_sec = 1187, tv_usec = 778685}
        n = 1
        now = {seconds = 1260990120, nanoseconds = 619570000}
        tvp = <value optimized out>
        swait = (isc_socketwait_t *) 0x821f70c
        readytasks = <value optimized out>
        result = <value optimized out>
#9  0x081ce838 in isc_app_run () at app.c:550
        event = (isc_event_t *) 0x0
        next_event = (isc_event_t *) 0x0
        task = (isc_task_t *) 0x0
#10 0x0805c1c7 in main (argc=0, argv=0xbfd2c114) at ./main.c:932
        result = <value optimized out>
(gdb) quit
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to