[Cppcms-users] make test: test_locale_boundary and test_locale_formatting fail
Brought to you by:
artyom-beilis
|
From: augustin <aug...@ov...> - 2014-10-09 17:40:25
|
Hello Artyom and all, I cannot submit the following as a bug report in sourceforge because each time I try to log in there, I get the following error message: XSRF Attempt Detected! Made from latest release cppcms-1.0.4. At the make test stage, I get: 98% tests passed, 2 tests failed out of 93 Total Test time (real) = 284.96 sec The following tests FAILED: 85 - test_locale_boundary (SEGFAULT) 86 - test_locale_formatting (Failed) Errors while running CTest make: *** [test] Error 8 Note that Themistokles Kyrgos reported the exact two same errors back in Aug 12 2013. (Re: [Cppcms-users] make error during installation). However, he apparently didn't reply when Artyom asked for further details. It appears that I've stumbled onto the same build conditions and the same errors. As per: http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Provide.a.complete.bug.report here are some details: From the error logs: 85/93 Testing: test_locale_boundary 85/93 Testing: test_locale_boundary 85/93 Test: test_locale_boundary Command: "/cppcms-1.0.4/build/booster/test_locale_boundary" Directory: /cppcms-1.0.4/build/booster "test_locale_boundary" start time: Oct 09 09:56 UTC Output: ---------------------------------------------------------- Testing segment operators Testing word boundary char UTF-8 Error in line:103 p->str()==chunks[i] Error in line:104 p->rule() == unsigned(masks[i]) Error in line:103 p->str()==chunks[i] Error in line:104 p->rule() == unsigned(masks[i]) <end of output> Test time = 0.07 sec ---------------------------------------------------------- Test Failed. "test_locale_boundary" end time: Oct 09 09:56 UTC "test_locale_boundary" time elapsed: 00:00:00 ---------------------------------------------------------- 86/93 Test: test_locale_formatting Command: "/cppcms-1.0.4/build/booster/test_locale_formatting" Directory: /cppcms-1.0.4/build/booster "test_locale_formatting" start time: Oct 09 09:56 UTC Output: ---------------------------------------------------------- Testing char, UTF-8 Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:299 (ss.str())==(to_correct_string<CharType>("2/5/70 3:33 PM",loc)) Error in line:300 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:302 (ss.str())==(to_correct_string<CharType>("February 5, 1970 3:33:13 PM GMT",loc)) Error in line:305 (ss.str())==(to_correct_string<CharType>("Thursday, February 5, 1970 3:33:13 PM GMT",loc)) Error in line:353 (ss.str())==(to_correct_string<CharType>(result[i],loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 ((booster::locale::basic_format<CharType>(fmt) % a_datetime).str(loc))==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Testing char, ISO8859-1 Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:299 (ss.str())==(to_correct_string<CharType>("2/5/70 3:33 PM",loc)) Error in line:300 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:302 (ss.str())==(to_correct_string<CharType>("February 5, 1970 3:33:13 PM GMT",loc)) Error in line:305 (ss.str())==(to_correct_string<CharType>("Thursday, February 5, 1970 3:33:13 PM GMT",loc)) Error in line:353 (ss.str())==(to_correct_string<CharType>(result[i],loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 ((booster::locale::basic_format<CharType>(fmt) % a_datetime).str(loc))==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Testing wchar_t Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Failed Error limits reached, stopping unit test <end of output> Test time = 0.21 sec ---------------------------------------------------------- Test Failed. "test_locale_formatting" end time: Oct 09 09:56 UTC "test_locale_formatting" time elapsed: 00:00:00 ---------------------------------------------------------- $ pcretest pcretest: command not found $ uname -a Linux 2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux // I am not sure it's related to the problem: I'm running an old kernel. I am currently planning to install the newest kernel. $ icuinfo <param name="version">52.1</param> <param name="version.unicode">6.3</param> $ gcc --version gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" A few 'not found' or 'Failed' entries in cmake: $ cmake .. -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:289 (message): CPack.cmake has already been included!! Call Stack (most recent call first): booster/CMakeLists.txt:14 (include) -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test LIBC_ICONV -- Performing Test LIBC_ICONV - Success -- Performing Test GCC_IS_GCC4 -- Performing Test GCC_IS_GCC4 - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Success -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Success -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success -- Looking for atoll -- Looking for atoll - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - not found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Success -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - found -- Configuring done -- Generating done -- Build files have been written to: /cppcms/cppcms-1.0.4/build2 $ python -V Python 2.7.6 $ cmake --help cmake version 2.8.12.2 Thanks, augustin. |