BIND 10 #3113: Hooks unit-tests fail when --enable-static-link is used

BIND 10 Development do-not-reply at isc.org
Thu Aug 22 15:05:29 UTC 2013


#3113: Hooks unit-tests fail when --enable-static-link is used
-------------------------------------+-------------------------------------
                   Reporter:  tomek  |                 Owner:
                       Type:         |                Status:  new
  defect                             |             Milestone:  DHCP
                   Priority:         |  Outstanding Tasks
  medium                             |              Keywords:
                  Component:  dhcp   |             Sensitive:  0
               CVSS Scoring:         |           Sub-Project:  DHCP
            Defect Severity:  N/A    |  Estimated Difficulty:  0
Feature Depending on Ticket:         |           Total Hours:  0
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 There are several build problems when linking statically. Mukund fixed
 some of them (the patch is expected to be merged to master today), but the
 hooks tests fail.

 I tried to debug it, but I do not understand the code well enough to find
 out what is wrong here. Here's what I managed to find out:

 I focused on the first failing test: There are several build problems when
 linking statically. Mukund fixed some of them (the patch is expected to be
 merged to master today), but the hooks tests fail.

 I tried to debug it, but I do not understand the code well enough to find
 out what is wrong here. Here's what I managed to find out:

 I focused on the first failing test haveHooksManagerTest.LoadLibraries. I
 see hook point "hookpt_two" being registered in the HooksCommonTestClass
 ctor (common_test_class.h:47). Yet later when full_callout_library.cc
 tries to register a callout on it (see load() in
 full_callout_library.cc:120), the ServerHooks::getIndex() can't find such
 a hook name and throws exception (server_hooks.cc:128).

 To reproduce the issue:
 {{{
 ./configure --enable-generate-docs --with-
 gtest=/home/thomson/devel/gtest-1.6.0 --enable-logger-checks --enable-
 static-link
 make -j8
 cd src/lib/hooks
 make check
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/3113>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list