[
https://issues.apache.org/jira/browse/STDCXX-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614516#action_12614516
]
Martin Sebor commented on STDCXX-863:
-------------------------------------
This continues to be a problem in both 12d and 12S builds with gcc 4.1.0 on
Solaris 10. The test runs successfully to completion in all other build types.
Interestingly, when compiled with Sun C++ 5.9 with optimization on Solaris 10,
the same test fails 2949 assertions in all narrow (32-bit builds), i.e., in 8d,
8s, 12d, and 12s. It passes at 100% in all other build types with this compiler.
Here's the test output and a gdb stack trace for the abended test process:
{noformat}
# INFO (S1) (10 lines):
# TEXT:
# COMPILER: gcc 4.1.1, __VERSION__ = "4.1.1"
# ENVIRONMENT: sparc-v8 running sunos
# FILE: 23.bitset.cpp
# COMPILED: Jul 17 2008, 13:53:29
# COMMENT:
############################################################
# CLAUSE: lib.bitset
...
# INFO (S1) (4 lines):
# TEXT: std::bitset<1>::operator[](size_t) const
# CLAUSE: lib.bitset
# LINE: 702
terminate called after throwing an instance of 'std::out_of_range'
what(): /amd/devco/sebor/stdcxx-4.2.x/include/bitset:356:
std::bitset<_Size>& std::bitset<_Size>::flip(unsigned int) [with unsigned int
_Size = 1u]: argument value 0 out of range [0, 1)
Program received signal SIGABRT, Aborted.
0xff14155c in _lwp_kill () from /lib/libc.so.1
(gdb) where
#0 0xff14155c in _lwp_kill () from /lib/libc.so.1
#1 0xff0dff00 in raise () from /lib/libc.so.1
#2 0xff0c0120 in abort () from /lib/libc.so.1
#3 0xff338aac in ?? ()
from /build/sebor/stdcxx-4.2.x-gcc-4.1.1-12d/lib/libstd12d.so
#4 0xff3372c0 in ?? ()
from /build/sebor/stdcxx-4.2.x-gcc-4.1.1-12d/lib/libstd12d.so
#5 0xff337310 in ?? ()
from /build/sebor/stdcxx-4.2.x-gcc-4.1.1-12d/lib/libstd12d.so
#6 0xff337320 in ?? ()
from /build/sebor/stdcxx-4.2.x-gcc-4.1.1-12d/lib/libstd12d.so
#7 0xff336d58 in ?? ()
from /build/sebor/stdcxx-4.2.x-gcc-4.1.1-12d/lib/libstd12d.so
#8 0x000c3918 in std::num_get<wchar_t, std::istreambuf_iterator<wchar_t,
std::char_traits<wchar_t> > >::do_get(std::istreambuf_iterator<wchar_t,
std::char_traits<wchar_t> >, std::istreambuf_iterator<wchar_t,
std::char_traits<wchar_t> >, std::ios_base&, __rw::__rw_iostate&, long&) const
()
#9 0x00123d00 in typeinfo for std::ctype<char> ()
#10 0x0002df2c in run_test(int, char**) ()
#11 0x000318c0 in rw_vtest(int, char**, char const*, char const*, char const*,
int (*)(int, char**), char const*, void*) ()
#12 0x00031b24 in rw_test(int, char**, char const*, char const*, char const*,
int (*)(int, char**), char const*, ...) ()
#13 0x0002dd10 in main ()
{noformat}
> [gcc 4.1.1/Solaris/SPARC 12d] SIGABRT in 23.bitset
> --------------------------------------------------
>
> Key: STDCXX-863
> URL: https://issues.apache.org/jira/browse/STDCXX-863
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Tests
> Affects Versions: 4.2.0
> Environment: gcc 4.1.1, Solaris 10, 12d build type
> Reporter: Martin Sebor
> Assignee: Eric Lemings
> Priority: Minor
> Fix For: 4.2.2
>
> Original Estimate: 6h
> Remaining Estimate: 6h
>
> When compiled with gcc 4.1.1 on Solaris 10/SPARC in 12d build mode (only) the
> test
> [23.bitset.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/containers/23.bitset.cpp?view=markup]
> fails at runtime with {{SIGABRT}}.
> This affects both 4.2.0 and the head of trunk.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.