Details
Description
When compiled with Intel C++ 9.1 (but not 10.1) on Linux with optimization on, the test [21.string.io|
http://svn.apache.org/repos/asf/stdcxx/trunk/tests/strings/21.string.io.cpp] abends with {{SIGABRT}}: $ nice make 21.string.io CXXOPTS=-g && gdb -q 21.string.io icc -cxxlib-nostd -O2 -w1 -g -I$TOPDIR/include/ansi -D_REENT RANT -I$TOPDIR/include -I/build/sebor/stdcxx-icc-9.1.049-12D/inc lude -I$TOPDIR/tests/include -L/build/sebor/stdcxx-icc-9.1.049- 12D/rwtest -lrwtest12D -cxxlib-nostd -lpthread -L/build/sebor/stdcxx-icc-9.1.0 49-12D/lib -Wl,-R/build/sebor/stdcxx-icc-9.1.049-12D/lib:/build/sebor/stdcxx-ic c-9.1.049-12D/rwtest $TOPDIR/tests/strings/21.string.io.cpp /bu ild/sebor/stdcxx-icc-9.1.049-12D/lib/libstd12D.so /build/sebor/stdcxx-icc-9.1.04 9-12D/rwtest/librwtest12D.a -lstd12D -lcxaguard -lsupc++ -lm -o 21.string.io Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run -q Starting program: /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io -q [Thread debugging using libthread_db enabled] [New Thread 182905448224 (LWP 4706)] $TOPDIR/tests/include/rw_char.h:165: UserInt::~UserInt(): Assert ion 'ptr_ == &i_' failed. /build/sebor/stdcxx-icc-9.1.049-12D/lib/libstd12D.so[0x2a955eabd9] /build/sebor/stdcxx-icc-9.1.049-12D/lib/libstd12D.so(_ZN4__rw16__rw_assert_failE PKcS1_iS1_+0x36)[0x2a955eaba2] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x449a72] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x4489cc] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x441496] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x4559b2] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x455033] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x454ba0] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x462aea] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x4628a2] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io[0x45828d] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io(_ZN4__rw13__rw_ct_ctypeEm PKc+0x133)[0x40768b] /lib64/tls/libc.so.6(__libc_start_main+0xdb)[0x3a90a1c3fb] /build/sebor/stdcxx-icc-9.1.049-12D/tests/21.string.io(_ZN4__rw13__rw_ct_ctypeEm PKc+0x52)[0x4075aa] Program received signal SIGABRT, Aborted. [Switching to Thread 182905448224 (LWP 4706)] 0x0000003a90a2e21d in raise () from /lib64/tls/libc.so.6 (gdb) where #0 0x0000003a90a2e21d in raise () from /lib64/tls/libc.so.6 #1 0x0000003a90a2fa1e in abort () from /lib64/tls/libc.so.6 #2 0x0000002a955eaba7 in __rw::__rw_assert_fail () from /build/sebor/stdcxx-icc-9.1.049-12D/lib/libstd12D.so #3 0x0000000000449a72 in UserInt::~UserInt (this=0x1262) at $TOPDIR/tests/include/rw_char.h:65536 #4 0x00000000004489cc in __rw::__rw_insert<UserChar, UserTraits<UserChar>, User Char> (__strm=@0x7fbffe6620, __s=0x1262, __len=6, __width=-1) at $TOPDIR/include/rw/_ioinsert.cc:154 #5 0x0000000000441496 in test_io<UserChar, UserTraits<UserChar>, std::allocator <UserChar> > (tdata=@0x7fbfff8bf0) at $TOPDIR/tests/strings/21.string.io.cpp:1074 #6 0x00000000004559b2 in _rw_dispatch () #7 0x0000000000455033 in _rw_run_cases () #8 0x0000000000454ba0 in _rw_run_test () #9 0x0000000000462aea in rw_vtest () #10 0x00000000004628a2 in rw_test () #11 0x000000000045828d in rw_run_string_test () #12 0x000000000040768b in main (argc=4706, argv=0x1262) at $TOPDIR/tests/strings/21.string.io.cpp:1288