BIND 10 #1385: Sqlite3ClientBadConfig unit test fail
BIND 10 Development
do-not-reply at isc.org
Sat Nov 12 08:04:40 UTC 2011
#1385: Sqlite3ClientBadConfig unit test fail
-------------------------------------+-------------------------------------
Reporter: | Owner:
kevin_tes | Status: new
Type: | Milestone:
defect | Sprint-20111122
Priority: major | Resolution:
Component: data | Sensitive: 0
source | Sub-Project: DNS
Keywords: | Estimated Difficulty: 0
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by kevin_tes):
Replying to [comment:2 jinmei]:
> Replying to [comment:1 kevin_tes]:
> > May be it was caused by int and size_t having different
> > sizes on 64 bit platforms.
>
> Ah, such a thing can happen. In any case I suspect it's difficult
> to tell further unless we have a more detailed context (such as
> a full stack trace).
~/bind10$ gdb src/lib/datasrc/tests/.libs/run_unittests
Reading symbols from
/home/xiejiagui/bind10/src/lib/datasrc/tests/.libs/run_unittests...done.
(gdb) r
Starting program: src/lib/datasrc/tests/.libs/run_unittests
[Thread debugging using libthread_db enabled]
[==========] Running 313 tests from 19 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from FactoryTest
[ RUN ] FactoryTest.sqlite3ClientBadConfig
[New Thread 0x7ffff4086700 (LWP 3079)]
[Thread 0x7ffff4086700 (LWP 3079) exited]
factory_unittest.cc:84: Failure
Value of: result1.code
Actual: 2
Expected: result::SUCCESS
Which is: 0
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff795254d in sqlite3_finalize () from /usr/lib/libsqlite3.so.0
(gdb) bt
#0 0x00007ffff795254d in sqlite3_finalize () from
/usr/lib/libsqlite3.so.0
#1 0x00000000005916a7 in
isc::datasrc::SQLite3Parameters::finalizeStatements (
this=0x89bd10) at ../../../../src/lib/datasrc/sqlite3_accessor.cc:128
#2 isc::datasrc::SQLite3Accessor::close (this=0x89bd10)
at ../../../../src/lib/datasrc/sqlite3_accessor.cc:386
#3 0x0000000000594e49 in ~SQLite3Accessor (this=0x89bd10,
__in_chrg=<value optimized out>)
at ../../../../src/lib/datasrc/sqlite3_accessor.cc:374
#4 0x0000000000581c13 in checked_delete<isc::datasrc::SQLite3Accessor> (
this=<value optimized out>) at
/usr/include/boost/checked_delete.hpp:34
#5
boost::detail::sp_counted_impl_p<isc::datasrc::SQLite3Accessor>::dispose (
this=<value optimized out>)
at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78
#6 0x000000000045fd81 in boost::detail::sp_counted_base::release (
this=<value optimized out>, __in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#7 ~shared_count (this=<value optimized out>, __in_chrg=<value optimized
out>)
at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217
#8 0x00007ffff7703bcb in ~shared_ptr (this=0x8b0250,
__in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
#9 ~DatabaseClient (this=0x8b0250, __in_chrg=<value optimized out>)
at ../../../src/lib/datasrc/database.h:521
---Type <return> to continue, or q <return> to quit---retrun
#10 0x00007ffff7705d6e in ~DataSourceClientContainer (this=0x7fffffffdea0,
__in_chrg=<value optimized out>) at factory.cc:90
#11 0x0000000000587137 in TestBody (this=<value optimized out>)
at factory_unittest.cc:94
#12 0x00007ffff7bc092a in testing::Test::Run() () from
/usr/lib/libgtest.so.0
#13 0x00007ffff7bc0a28 in testing::internal::TestInfoImpl::Run() ()
from /usr/lib/libgtest.so.0
#14 0x00007ffff7bc0adb in testing::TestCase::Run() ()
from /usr/lib/libgtest.so.0
#15 0x00007ffff7bc4cfd in testing::internal::UnitTestImpl::RunAllTests()
()
from /usr/lib/libgtest.so.0
#16 0x000000000059c738 in isc::util::unittests::run_all () at
run_all.cc:87
#17 0x0000000000414fb2 in main (argc=1, argv=<value optimized out>)
at run_unittests.cc:28
--
Ticket URL: <http://bind10.isc.org/ticket/1385#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list