Issue Details (XML | Word | Printable)

Key: STDCXX-844
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[Sun C++/Solaris 10/AMD64] 0.strncmp fails subtests in LP64

Created: 08/Apr/08 11:54 PM   Updated: 08/Apr/08 11:54 PM
Return to search
Component/s: Test Driver
Affects Version/s: 4.2.0
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 2h
Remaining Estimate - 2h
Time Spent: Not Specified
Remaining Estimate - 2h

Environment:
Sun Studio 12 (Sun C++ 5.9)
Solaris 10/AMD64

Severity: Incorrect Behavior


 Description  « Hide
When compiled with Sun C++ 5.9 in wide mode (with the -m64 option) the 0.strncmp test fails two subtests. This happens both with 4.2.0 and the head of trunk. No other platforms seem to be affected. Suspect a compiler bug.
$ gmake -r 0.strncmp && ./0.strncmp
CC -c -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-suncc-5.9-j1-15D/include -I/amd/devco/sebor/stdcxx/tests/include  -library=%none -g  -m64 +w -errtags -erroff=hidef   /amd/devco/sebor/stdcxx/tests/self/0.strncmp.cpp
CC 0.strncmp.o -o 0.strncmp -L/build/sebor/stdcxx-suncc-5.9-j1-15D/rwtest -lrwtest15D -library=%none  -mt  -m64 -L/build/sebor/stdcxx-suncc-5.9-j1-15D/lib  -R/build/sebor/stdcxx-suncc-5.9-j1-15D/lib:/build/sebor/stdcxx-suncc-5.9-j1-15D/rwtest -lstd15D  -lm 
rm 0.strncmp.o
rw_strncmp(const char*, const char*, size_t, int)
line 86: rw_strncmp(405598, 40559a, 4294967295, -1) == 1, got 0
line 87: rw_strncmp(4055d1, 4055d2, 4294967295, -1) == -1, got 0
rw_strncmp(const wchar_t*, const wchar_t*, size_t, int)
rw_strncmp(const wchar_t*, const char*, size_t, int)
rw_strncmp(const char*, const wchar_t*, size_t, int)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #646149 Wed Apr 09 00:07:10 UTC 2008 sebor 2008-04-08 Martin Sebor <sebor@roguewave.com>

* etc/config/xfail.txt [solaris-*-amd64-sunpro-*-*{D,S}] (0.strncmp):
Added an expected exit status of 2 due to STDCXX-844.
Files Changed
MODIFY /stdcxx/trunk/etc/config/xfail.txt