https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64132
Mikhail Maltsev 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 ---
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.
0x771d5107 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x771d5107 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x771d64e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x771ce226 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x771ce2d2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00400b55 in test02 () at
/home/jenkins/workspace/build-gcc-trunk/src/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:39
#5 0x00400baa 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 0x00400b55 in test02 () at
/home/jenkins/workspace/build-gcc-trunk/src/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:39
39VERIFY( g == "" );
(gdb) p g
$1 = {static npos = 18446744073709551615, _M_dataplus = {>
= {<__gnu_cxx::new_allocator> = {}, },
_M_p = 0x7fffde30 "\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
35const numpunct& nump_it = use_facet >(loc_it);
36
37string g = nump_it.grouping();
38
39VERIFY( g == "" );
40 }
41
42 int main()
43 {
(gdb) p nump_it
$2 = (const std::__cxx11::numpunct &) @0x616e00: { =
{}, _M_data = 0x616e20, static id = {_M_index = 3, static
_S_refcount = 46}}
(gdb) p *nump_it._M_data
$3 = { = {_vptr.facet = 0x77dcf218 +16>, _M_refcount = 0, static _S_c_locale =
0x77541ae0, static _S_c_name = "C", static _S_once = 0},
_M_grouping = 0x616ec0 "\003\003", _M_grouping_size = 2, _M_use_grouping =
false, _M_truename = 0x77b90eac "true", _M_truename_size = 4, _M_falsename
= 0x77b90ea6 "false", _M_falsename_size = 5, _M_decimal_point = 44 ',',
_M_thousands_sep = 46 '.', _M_atoms_out = '\000' ,
_M_atoms_in = '\000' , _M_allocated = false}
...
(gdb) p *loc_it._M_impl->_M_facets[0]
$10 = {_vptr.facet = 0x77dcf8d0 +16>,
_M_refcount = 1, static _S_c_locale = 0x77541ae0, static _S_c_name = "C",
static _S_once = 0}
(gdb) p *loc_it._M_impl->_M_facets[1]
$11 = {_vptr.facet = 0x77dce6a0 +16>, _M_refcount = 1, static _S_c_locale = 0x77541ae0, static
_S_c_name = "C", static _S_once = 0}
(gdb) p *loc_it._M_impl->_M_facets[2]
$12 = {_vptr.facet = 0x77dd1680 +16>, _M_refcount = 1, static _S_c_locale =
0x77541ae0, 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/