[
https://issues.apache.org/jira/browse/STDCXX-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586963#action_12586963
]
Martin Sebor commented on STDCXX-840:
-------------------------------------
Here's the output of the test, including a stack trace, on Solaris/AMD64:
{noformat}
$ ./22.locale.codecvt.mt
# INFO (S1) (10 lines):
# TEXT:
# COMPILER: SunPro, __SUNPRO_CC = 0x590
# ENVIRONMENT: x86_64/LP64 running sunos-5.10
# FILE: 22.locale.codecvt.mt.cpp
# COMPILED: Apr 8 2008, 15:12:18
# COMMENT: thread safety
############################################################
# CLAUSE: lib.locale.codecvt
# NOTE (S2) (5 lines):
# TEXT: executing "locale -a > /var/tmp/aaaR4aaBX"
# CLAUSE: lib.locale.codecvt
# FILE: process.cpp
# LINE: 279
/amd/devco/sebor/stdcxx/src/codecvt.cpp:249: Assertion 'mbstate_valid' failed.
/build/sebor/stdcxx-suncc-5.9-j1-15D/lib/libstd15D.so.4.2.0:__1cE__rwQ__rw_assert_fail6Fpkc2i2_v_+0xa4
/build/sebor/stdcxx-suncc-5.9-j1-15D/lib/libstd15D.so.4.2.0:__1cDstdHcodecvt4CcCcnL__mbstate_t__Jdo_length6kMrn0B_pkc5L_i_+0x19d
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:__1cDstdHcodecvt4CcCcnL__mbstate_t__Glength6kMrn0B_pkc5L_i_+0x44
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:__1cNrun_test_fill4Cc_6FrknDstdGlocale_rknIMyBuffer3CTA__rknIMyBuffer4Cc__rnPMyCodecvtData_T3C4___v_+0x117
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:0xdd46
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:__1cIrw_vtest6Fippcpkc33pFi1_i3pnR__va_list_element__i_+0x620
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:__1cHrw_test6Fippcpkc33pFi1_i3E_i_+0xde
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:main+0xba
/build/sebor/stdcxx-suncc-5.9-j1-15D/tests/22.locale.codecvt.mt:0xd77c
Abort (core dumped)
{noformat}
> [Sun C++] SIGSEGV in 22.locale.codecvt.mt.cpp in LP64 with optimization
> -----------------------------------------------------------------------
>
> Key: STDCXX-840
> URL: https://issues.apache.org/jira/browse/STDCXX-840
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Tests
> Affects Versions: trunk
> Environment: Sun C++/Solaris/
> Reporter: Martin Sebor
> Priority: Minor
> Fix For: 4.2.1
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> On Solaris/SPARC, when compiled with Sun C++ (any version) in LP64 mode with
> optimization on (-O) the test
> [22.locale.codecvt.mt.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/localization/22.locale.codecvt.mt.cpp?view=markup]
> abends with {{SIGSEGV}}.
> On Solaris/AMD64/LP64, the test also abends with {{SIGSEGV}} with
> optimization, but with {{SIGABRT}} without.
> When compiled with gcc 4.1.1 on Solaris the test runs successfully to
> completion.
> Since this test is new in 4.2.1 its failure is a regression.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.