[odb-users] another test from odb-tests-2.1.1 fails with mariadb-5.5.28a

Hugo.Mildenberger at web.de Hugo.Mildenberger at web.de
Wed Jan 30 16:15:47 EST 2013


Hi Boris,

here is another failed test, this time using mariadb-5.5.28a. 
Maybe this is a reflection of another mariadb bug? 


make  check-TESTS
make[2]: Entering directory `/var/tmp/portage/dev-db/odb-2.1.1/work/odb-tests-2.1.1-mysql/boost/mysql/date-time'
./driver --options-file ../../../db.options
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::gregorian::bad_day_of_month> >'
  what():  Day of month value is out of range 1..31
./../../../tester: line 39: 31551 Aborted                 (core dumped) ./driver --options-file "$top_builddir/db.options" > test.out
FAIL: ../../../tester
============================================
1 of 1 test failed
Please report to odb-users at codesynthesis.com
============================================

# ldd odb-tests-2.1.1-mysql/boost/mysql/date-time/.libs/driver
        linux-vdso.so.1 
        libcommon.so.0 => not found
        libodb-mysql-2.1.so => /usr/lib64/libodb-mysql-2.1.so 
        libodb-boost-2.1.so => /usr/lib64/libodb-boost-2.1.so 
        libodb-2.1.so => /usr/lib64/libodb-2.1.so 
        libpthread.so.0 => /lib64/libpthread.so.0 
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6 
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1 
        libc.so.6 => /lib64/libc.so.6 
        libmysqlclient.so.18 => /usr/lib64/libmysqlclient.so.18 
        /lib64/ld-linux-x86-64.so.2 
        libm.so.6 => /lib64/libm.so.6 
        libz.so.1 => /lib64/libz.so.1 
        libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 
        libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 
        libdl.so.2 => /lib64/libdl.so.2 
        librt.so.1 => /lib64/librt.so.1 


Here is some more info. The code was compiled with -O0 in order to be able to display
any variable contents.

# gdb /var/tmp/portage/dev-db/odb-2.1.1/work/odb-tests-2.1.1-mysql/boost/mysql/date-time/.libs/driver --core=250-250-driver.core 
[...]
Program terminated with signal 6, Aborted.
#0  0x00000324ddb39f75 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
63	  return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb)
(gdb) bt
#0  0x00000324ddb39f75 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#1  0x00000324ddb3b3eb in __GI_abort () at abort.c:90
#2  0x00000324de17d43d in __gnu_cxx::__verbose_terminate_handler ()
    at /usr/src/debug/sys-devel/gcc-4.6.3/gcc-4.6.3/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00000324de17b5f6 in __cxxabiv1::__terminate (handler=<optimized out>)
    at /usr/src/debug/sys-devel/gcc-4.6.3/gcc-4.6.3/libstdc++-v3/libsupc++/eh_terminate.cc:40
#4  0x00000324de17b623 in std::terminate ()
    at /usr/src/debug/sys-devel/gcc-4.6.3/gcc-4.6.3/libstdc++-v3/libsupc++/eh_terminate.cc:50
#5  0x00000324de17b71e in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=<optimized out>, dest=<optimized out>)
    at /usr/src/debug/sys-devel/gcc-4.6.3/gcc-4.6.3/libstdc++-v3/libsupc++/eh_throw.cc:83
#6  0x0000006959f8e981 in boost::throw_exception<boost::gregorian::bad_day_of_month> (e=...)
    at /usr/include/boost/throw_exception.hpp:67
#7  0x0000006959f92d81 in boost::CV::simple_exception_policy<unsigned short, (unsigned short)1, (unsigned short)31, boost::gregorian::bad_day_of_month>::on_error () at /usr/include/boost/date_time/constrained_value.hpp:110
#8  0x0000006959f90013 in boost::CV::constrained_value<boost::CV::simple_exception_policy<unsigned short, (unsigned short)1, (unsigned short)31, boost::gregorian::bad_day_of_month> >::assign (this=0x3f388a974d0, value=0)
    at /usr/include/boost/date_time/constrained_value.hpp:69
#9  0x0000006959f8e14d in boost::CV::constrained_value<boost::CV::simple_exception_policy<unsigned short, 1u, 31u, boost::gregorian::bad_day_of_month> >::constrained_value (this=0x3f388a974d0, value=0)
    at /usr/include/boost/date_time/constrained_value.hpp:48
#10 0x0000006959f8d2cd in boost::gregorian::greg_day::greg_day (this=0x3f388a974d0, day_of_month=0)
    at /usr/include/boost/date_time/gregorian/greg_day.hpp:44
#11 0x0000006959f9cccd in odb::mysql::default_value_traits<boost::posix_time::ptime, (odb::mysql::database_type_id)13>::set_value (v=..., i=..., is_null=false) at /usr/include/odb/boost/date-time/mysql/posix-time-traits.hxx:39
#12 0x0000006959f98fef in odb::access::object_traits<object>::times_traits::init (j=@0x3f388a97600: 0, v=..., i=..., db=
    0x695d2f8c50) at test-odb.cxx:492
#13 0x0000006959f991c6 in odb::access::object_traits<object>::times_traits::load_all (i=@0x3f388a97600: 0, v=..., 
    d=0x695d315200) at test-odb.cxx:526
#14 0x0000006959fa2f19 in odb::ordered_functions<unsigned long, boost::posix_time::ptime>::load_all (this=0x695d315208, 
    next_index=@0x3f388a97600: 0, next_value=...) at /usr/include/odb/container-traits.hxx:57
#15 0x0000006959f9fb62 in odb::access::container_traits<std::vector<boost::posix_time::ptime, std::allocator<boost::posix_time::ptime> > >::load (c=std::vector of length 1, capacity 1 = {...}, more=true, f=...)
    at /usr/include/odb/std-vector-traits.hxx:46
#16 0x0000006959f995a1 in odb::access::object_traits<object>::times_traits::load (
    c=std::vector of length 1, capacity 1 = {...}, id=..., sts=...) at test-odb.cxx:597
#17 0x0000006959f9c555 in odb::access::object_traits<object>::load_ (sts=..., obj=...) at test-odb.cxx:1817
#18 0x0000006959f9beaf in odb::access::object_traits<object>::find (db=..., id=@0x3f388a97810: 1) at test-odb.cxx:1682
#19 0x0000006959f92c66 in odb::database::find<object> (this=0x695d2f8c50, id=@0x3f388a97810: 1)
    at /usr/include/odb/database.ixx:117
#20 0x0000006959f8fd7f in odb::database::load<object> (this=0x695d2f8c50, id=@0x3f388a97810: 1)
    at /usr/include/odb/database.txx:61
#21 0x0000006959f8bed9 in main (argc=3, argv=0x3f388a97d78) at driver.cxx:80



More information about the odb-users mailing list