BIND 10 #1442: build issue(s) on Ubuntu Oneiric (gcc-4.6 and gtest specifically)

BIND 10 Development do-not-reply at isc.org
Mon Dec 5 13:25:40 UTC 2011


#1442: build issue(s) on Ubuntu Oneiric (gcc-4.6 and gtest specifically)
-------------------------------------+-------------------------------------
                   Reporter:  jelte  |                 Owner:  kevin_tes
                       Type:         |                Status:  reviewing
  defect                             |             Milestone:
                   Priority:         |  Sprint-20111206
  critical                           |            Resolution:
                  Component:  build  |             Sensitive:  0
  system                             |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  0
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:  none   |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by kevin_tes):

 The codes seems ok to me.
 But in my master branch, the make check works well,
 in the trac1442 branch it throws some errors:
 make  check-TESTS
 make[7]: Entering directory `/home/xiejiagui/bind10/src/lib/datasrc/tests'
 [==========] Running 111 tests from 9 test cases.
 [----------] Global test environment set-up.
 [----------] 3 tests from FactoryTest
 [ RUN      ] FactoryTest.sqlite3ClientBadConfig
 /bin/bash: line 5: 11034 Segmentation fault      (core dumped) ${dir}$tst
 FAIL: run_unittests

 when i debug the core file:
 gdb -c core:
 [Thread debugging using libthread_db enabled]
 [==========] Running 111 tests from 9 test cases.
 [----------] Global test environment set-up.
 [----------] 3 tests from FactoryTest
 [ RUN      ] FactoryTest.sqlite3ClientBadConfig
 [New Thread 0x7ffff3f7f700 (LWP 12347)]
 [Thread 0x7ffff3f7f700 (LWP 12347) exited]

 Program received signal SIGSEGV, Segmentation fault.
 0x00007ffff76e5625 in atomic_increment (this=0x7375e0, accessor=...,
 zone_name=..., rrclass=..., separate_rrs=false)
     at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:66
 66          );
 (gdb) bt
 #0  0x00007ffff76e5625 in atomic_increment (this=0x7375e0, accessor=...,
 zone_name=..., rrclass=..., separate_rrs=false)
     at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:66
 #1  boost::detail::sp_counted_base::add_ref_copy (this=0x7375e0,
 accessor=..., zone_name=..., rrclass=..., separate_rrs=false)
     at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:133
 #2  shared_count (this=0x7375e0, accessor=..., zone_name=..., rrclass=...,
 separate_rrs=false) at
 /usr/include/boost/smart_ptr/detail/shared_count.hpp:228
 #3  shared_ptr (this=0x7375e0, accessor=..., zone_name=..., rrclass=...,
 separate_rrs=false) at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
 #4  DatabaseIterator (this=0x7375e0, accessor=..., zone_name=...,
 rrclass=..., separate_rrs=false) at database.cc:715
 #5  0x00007ffff76e62b4 in isc::datasrc::DatabaseClient::getIterator
 (this=0x738ad0, name=..., separate_rrs=false) at database.cc:828
 #6  0x00000000004afd39 in TestBody (this=<value optimized out>) at
 factory_unittest.cc:90
 #7  0x00007ffff7bc092a in testing::Test::Run() () from
 /usr/lib/libgtest.so.0
 #8  0x00007ffff7bc0a28 in testing::internal::TestInfoImpl::Run() () from
 /usr/lib/libgtest.so.0
 #9  0x00007ffff7bc0adb in testing::TestCase::Run() () from
 /usr/lib/libgtest.so.0
 #10 0x00007ffff7bc4cfd in testing::internal::UnitTestImpl::RunAllTests()
 () from /usr/lib/libgtest.so.0
 #11 0x00000000004b5b38 in isc::util::unittests::run_all () at
 run_all.cc:87
 #12 0x000000000040d3a2 in main (argc=1, argv=<value optimized out>) at
 run_unittests.cc:28

-- 
Ticket URL: <http://bind10.isc.org/ticket/1442#comment:8>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list