User account creation filtered due to spam.

Bug 64132 - [5/6/7/8 Regression] FAIL: 22_locale/numpunct/members/char/3.cc execution test
Summary: [5/6/7/8 Regression] FAIL: 22_locale/numpunct/members/char/3.cc execution test
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 5.0
: P4 normal
Target Milestone: 5.5
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-01 00:37 UTC by John David Anglin
Modified: 2016-06-03 10:07 UTC (History)
4 users (show)

See Also:
Host: hppa-unknown-linux-gnu, x86_64-linux-gnu
Target: hppa-unknown-linux-gnu, x86_64-linux-gnu
Build: hppa-unknown-linux-gnu, x86_64-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2015-09-13 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2014-12-01 00:37:10 UTC
spawn /home/dave/gnu/gcc/objdir/./gcc/xg++ -shared-libgcc -B/home/dave/gnu/gcc/o
bjdir/./gcc -nostdinc++ -L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/
src -L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/src/.libs -L/home/da
ve/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -B/home/dave/opt/g
nu/gcc/gcc-5.0/hppa-linux-gnu/bin/ -B/home/dave/opt/gnu/gcc/gcc-5.0/hppa-linux-g
nu/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-5.0/hppa-linux-gnu/include -isystem 
/home/dave/opt/gnu/gcc/gcc-5.0/hppa-linux-gnu/sys-include -B/home/dave/gnu/gcc/o
bjdir/hppa-linux-gnu/./libstdc++-v3/src/.libs -D_GLIBCXX_ASSERT -fmessage-length
=0 -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -DLOCALEDIR="." -nos
tdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-lin
ux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/d
ave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/inc
lude/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util /home/dave/gn
u/gcc/gcc/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc -include b
its/stdc++.h ./libtestc++.a -Wl,--gc-sections -lm -o ./3.exe
PASS: 22_locale/numpunct/members/char/3.cc (test for excess errors)
Setting LD_LIBRARY_PATH to :/home/dave/gnu/gcc/objdir/gcc:/home/dave/gnu/gcc/obj
dir/hppa-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/dave/gnu/gcc/objdir/hpp
a-linux-gnu/./libstdc++-v3/src/.libs::/home/dave/gnu/gcc/objdir/gcc:/home/dave/g
nu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/dave/gnu/gcc/
objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-li
nux-gnu/libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libssp/.
libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libgomp/.libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libatomic/.libs:/home/dave/gnu/gcc/objdir/./gcc:/home/dave/gnu/gcc/objdir/./prev-gcc
spawn [open ...]
3.exe: /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc:39: void test02(): Assertion `g == ""' failed.
FAIL: 22_locale/numpunct/members/char/3.cc execution test
extra_tool_flags are:
  -include bits/stdc++.h

r210049 was ok.
Comment 1 Richard Biener 2015-03-31 12:52:57 UTC
Not a primary or secondary arch (and still unconfirmed).
Comment 2 Jakub Jelinek 2015-04-22 12:00:30 UTC
GCC 5.1 has been released.
Comment 3 Richard Biener 2015-07-16 09:14:14 UTC
GCC 5.2 is being released, adjusting target milestone to 5.3.
Comment 4 Mikhail Maltsev 2015-09-13 18:49:50 UTC
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
Comment 5 Richard Biener 2015-12-04 10:47:35 UTC
GCC 5.3 is being released, adjusting target milestone.
Comment 6 li xin 2015-12-11 09:27:56 UTC
The LSB test cases also Failed.
/22_locale/messages/members/char/2.cc 1
/22_locale/messages/members/char/wrapped_env.cc 1
/22_locale/messages/members/char/wrapped_locale.cc 1 are Failed.

They are pass on gcc-4.9.3.
and fail on gcc-5.1 and gcc-5.2
Comment 7 li xin 2015-12-11 09:31:27 UTC
(In reply to li xin from comment #6)
> The LSB test cases also Failed.
> /22_locale/messages/members/char/2.cc 1
> /22_locale/messages/members/char/wrapped_env.cc 1
> /22_locale/messages/members/char/wrapped_locale.cc 1 are Failed.
> 
> They are pass on gcc-4.9.3.
> and fail on gcc-5.1 and gcc-5.2

The output is as following:
2.cc:54: void test02(): Assertion `s01 == "s'il vous pla�t"' failed.
DejaGNUTest.command_output_1:
Comment 8 li xin 2015-12-22 01:16:28 UTC
(In reply to li xin from comment #7)
> (In reply to li xin from comment #6)
> > The LSB test cases also Failed.
> > /22_locale/messages/members/char/2.cc 1
> > /22_locale/messages/members/char/wrapped_env.cc 1
> > /22_locale/messages/members/char/wrapped_locale.cc 1 are Failed.
> > 
> > They are pass on gcc-4.9.3.
> > and fail on gcc-5.1 and gcc-5.2
> 
> The output is as following:
> 2.cc:54: void test02(): Assertion `s01 == "s'il vous pla�t"' failed.
> DejaGNUTest.command_output_1:

Those three cases are Failed on gcc-5.3 too.
Comment 9 Richard Biener 2016-06-03 10:07:41 UTC
GCC 5.4 is being released, adjusting target milestone.