You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by "Thorsten Schöning (JIRA)" <lo...@logging.apache.org> on 2014/02/16 20:47:19 UTC

[jira] [Commented] (LOGCXX-425) exceptions in CachedDateFormatTestCase after LOGCXX-420

    [ https://issues.apache.org/jira/browse/LOGCXX-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13902798#comment-13902798 ] 

Thorsten Schöning commented on LOGCXX-425:
------------------------------------------

> I'm guessing the problem is in the test cases themselves-- I'll try to
> hook up a debugger to verify soon.

Finally got that debugger attached.  The unexpected exceptions are
std::out_of_range, I think, from bad invocations of
std::string::compare.  The backtraces all resemble

__cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
std::__throw_out_of_range(char const*) () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
std::string::compare(unsigned long, unsigned long, std::string const&,
unsigned long, unsigned long) const () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
log4cxx::pattern::CachedDateFormat::regionMatches at
log4cxx/src/main/cpp/cacheddateformat.cpp:311
log4cxx::pattern::CachedDateFormat::findMillisecondStart at
log4cxx/src/main/cpp/cacheddateformat.cpp:144
log4cxx::pattern::CachedDateFormat::format at
log4cxx/src/main/cpp/cacheddateformat.cpp:225
CachedDateFormatTestCase::test10 at
log4cxx/src/test/cpp/helpers/cacheddateformattestcase.cpp:384
LogUnit::runTest<CachedDateFormatTestCase> at
log4cxx/src/test/cpp/helpers/logunit.h:111
CachedDateFormatTestCase::RegisterSuite::test10Registration::run at
log4cxx/src/test/cpp/helpers/cacheddateformattestcase.cpp:68
abts_run_test at log4cxx/src/test/cpp/abts.cpp:174
LogUnit::TestSuite::run at log4cxx/src/test/cpp/logunit.cpp:232
abts_run_suites at log4cxx/src/test/cpp/logunit.cpp:59
main at log4cxx/src/test/cpp/abts.cpp:433

- Rhys

> exceptions in CachedDateFormatTestCase after LOGCXX-420
> -------------------------------------------------------
>
>                 Key: LOGCXX-425
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-425
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Thorsten Schöning
>            Assignee: Thorsten Schöning
>
> The changes in LOGCXX-420 seemm to produce exceptions in CachedDateFormatTestCase:
> $ ./src/test/cpp/testsuite -v cacheddateformattestcase
> ...
> Line -1: Unexpected std::exception: basic_string::compare
> Line -1: Unexpected std::exception: basic_string::compare
> Line -1: Unexpected std::exception: basic_string::compare
> http://markmail.org/search/list:org.apache.logging.log4cxx-dev#query:list%3Aorg.apache.logging.log4cxx-dev%20from%3A%22Rhys%20Ulerich%22+page:2+mid:7py3gsj34snyzc5u+state:results



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)