https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64132
Mikhail Maltsev <miyuki at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|hppa-unknown-linux-gnu |hppa-unknown-linux-gnu, | |x86_64-linux-gnu Status|UNCONFIRMED |NEW Last reconfirmed|2015-03-18 00:00:00 |2015-09-13 CC| |miyuki at gcc dot gnu.org Host|hppa-unknown-linux-gnu |hppa-unknown-linux-gnu, | |x86_64-linux-gnu Ever confirmed|0 |1 Build|hppa-unknown-linux-gnu |hppa-unknown-linux-gnu, | |x86_64-linux-gnu --- Comment #4 from Mikhail Maltsev <miyuki at gcc dot gnu.org> --- This reproduces on x86_64-linux. Probably it is specific to some configuration options (because this failure does not show up in test results mailing lists). configure flags: --enable-languages=c,c++,objc,lto,fortran,go,ada --prefix=/opt/gcc-6.0.0 --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-isl=/opt/isl-0.14 --enable-shared --with-fpmath=sse --enable-multilib --enable-bootstrap --enable-checking=yes CC=/opt/gcc-5.2.0-fdo/bin/gcc CXX=/opt/gcc-5.2.0-fdo/bin/g++ I recompiled this testcase with "-O0 -ggdb" flags. GDB session (run on build box): Starting program: /home/jenkins/workspace/build-gcc-trunk/build/x86_64-pc-linux-gnu/libstdc++-v3/testsuite/normal1/3.exe 3.exe: /home/jenkins/workspace/build-gcc-trunk/src/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:39: void test02(): Assertion `g == ""' failed. Program received signal SIGABRT, Aborted. 0x00007ffff71d5107 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff71d5107 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff71d64e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff71ce226 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00007ffff71ce2d2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x0000000000400b55 in test02 () at /home/jenkins/workspace/build-gcc-trunk/src/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:39 #5 0x0000000000400baa in main () at /home/jenkins/workspace/build-gcc-trunk/src/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:44 (gdb) up 4 #4 0x0000000000400b55 in test02 () at /home/jenkins/workspace/build-gcc-trunk/src/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:39 39 VERIFY( g == "" ); (gdb) p g $1 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7fffffffde30 "\003\003"}, _M_string_length = 2, { _M_local_buf = "\003\003\000\377\377\177\000\000,\f@\000\000\000\000", _M_allocated_capacity = 140737471578883}} (gdb) list 34 35 const numpunct<char>& nump_it = use_facet<numpunct<char> >(loc_it); 36 37 string g = nump_it.grouping(); 38 39 VERIFY( g == "" ); 40 } 41 42 int main() 43 { (gdb) p nump_it $2 = (const std::__cxx11::numpunct<char> &) @0x616e00: {<std::locale::facet> = {<No data fields>}, _M_data = 0x616e20, static id = {_M_index = 3, static _S_refcount = 46}} (gdb) p *nump_it._M_data $3 = {<std::locale::facet> = {_vptr.facet = 0x7ffff7dcf218 <vtable for std::__numpunct_cache<char>+16>, _M_refcount = 0, static _S_c_locale = 0x7ffff7541ae0, static _S_c_name = "C", static _S_once = 0}, _M_grouping = 0x616ec0 "\003\003", _M_grouping_size = 2, _M_use_grouping = false, _M_truename = 0x7ffff7b90eac "true", _M_truename_size = 4, _M_falsename = 0x7ffff7b90ea6 "false", _M_falsename_size = 5, _M_decimal_point = 44 ',', _M_thousands_sep = 46 '.', _M_atoms_out = '\000' <repeats 35 times>, _M_atoms_in = '\000' <repeats 25 times>, _M_allocated = false} ... (gdb) p *loc_it._M_impl->_M_facets[0] $10 = {_vptr.facet = 0x7ffff7dcf8d0 <vtable for std::ctype<char>+16>, _M_refcount = 1, static _S_c_locale = 0x7ffff7541ae0, static _S_c_name = "C", static _S_once = 0} (gdb) p *loc_it._M_impl->_M_facets[1] $11 = {_vptr.facet = 0x7ffff7dce6a0 <vtable for std::codecvt<char, char, __mbstate_t>+16>, _M_refcount = 1, static _S_c_locale = 0x7ffff7541ae0, static _S_c_name = "C", static _S_once = 0} (gdb) p *loc_it._M_impl->_M_facets[2] $12 = {_vptr.facet = 0x7ffff7dd1680 <vtable for std::__cxx11::numpunct<char>+16>, _M_refcount = 1, static _S_c_locale = 0x7ffff7541ae0, static _S_c_name = "C", static _S_once = 0} (gdb) p *loc_it._M_impl->_M_facets[3] Also, in my builds it started failing after migration: previous build box had Debian 7 installed (in OpenVZ container), the current one has Debian 8 (on a physical box). This migration caused: +FAIL: 22_locale/messages/13631.cc execution test +FAIL: 22_locale/messages/members/char/1.cc execution test +FAIL: 22_locale/messages/members/char/2.cc execution test +FAIL: 22_locale/messages/members/char/wrapped_env.cc execution test +FAIL: 22_locale/messages/members/char/wrapped_locale.cc execution test +FAIL: 22_locale/messages_byname/named_equivalence.cc execution test +FAIL: 22_locale/numpunct/members/char/3.cc execution test +FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test Back then the configuration was slightly different: configure flags: --enable-languages=c,c++,objc,lto,fortran,go --prefix=/opt/gcc-6.0-trunk --enable-clocale=gnu --disable-nls --with-system-zlib --with-demangler-in-ld --with-isl=/opt/isl-0.14 --enable-shared --with-fpmath=sse --enable-multilib --enable-bootstrap --enable-checking=yes (it included "--disable-nls" and had a different bootstrap compiler). Recently I installed quite a lot of packages on build box (in order to benchmark Firefox build), among them are libgettextpo-dev and some x11-related stuff (not sure which of them could be relevant) and lots of failures got fixed. Remaining failures are: FAIL: 22_locale/numpunct/members/char/3.cc execution test FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test