From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3F64383B6B0; Wed, 14 Dec 2022 17:11:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3F64383B6B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671037912; bh=/gGL1Y+7OAZiBTgGad2+3HRXuR6vwTwyLykOKm1ulS4=; h=From:To:Subject:Date:From; b=KHFhPFPViqIsZhWxifw4z+Npm1C80eLZPVBYizNhmMgiY+Yk/DRaMriZ7K6T2dsWN 1gibFcDTOweLfM6EOQc99cPy6GjVTiuW3ITPgOSA8rVviRWohtPCjsWsGYSicjD5Tk QkVDBiN+CRM0nCglm7ht7jxBxu6nDQF6KgeWQdhA= From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108107] New: FAIL: libstdc++-prettyprinters/debug.cc print sstream Date: Wed, 14 Dec 2022 17:11:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108107 Bug ID: 108107 Summary: FAIL: libstdc++-prettyprinters/debug.cc print sstream Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-linux* Target: hppa*-*-linux* Build: hppa*-*-linux* PASS: libstdc++-prettyprinters/debug.cc execution test Spawning: gdb -nw -nx -quiet -batch -ex "python print(gdb.type_printers)" spawn gdb -nw -nx -quiet -batch -ex python print(gdb.type_printers) [] spawn gdb -nx -nw -quiet -batch -x debug.gdb Breakpoint 1 at 0x14e60: file /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/libstdc++-prettyprinters/debu= g.cc, line 129. skipping: Breakpoint 1 at 0x14e60: file /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/libstdc++-prettyprinters/debu= g.cc, line 129. warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. skipping: warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. skipping: Breakpoint 1, main () at /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/libstdc++-prettyprinters/debu= g.cc:129 129 return 0; // Mark SPOT skipping: Breakpoint 1, main () at /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/libstdc++-prettyprinters/debu= g.cc:129 skipping: 129 return 0; // Mark SPOT >From To Syms Read Shared Object Library 0xf994af90 0xf9970d14 Yes /lib/ld.so.1 0xf9444080 0xf95994c0 Yes=20=20=20=20=20=20=20=20 /home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs/libstdc++= .so.6 0xf8d59744 0xf8d8e1d4 Yes /lib/hppa-linux-gnu/libm.so.6 0xf8bb3fe0 0xf8bc52a8 Yes /home/dave/gnu/gcc/objdir/gcc/libgcc_s.= so.4 0xf8977950 0xf8acde14 Yes /lib/hppa-linux-gnu/libc.so.6 skipping: From To Syms Read Shared Object Library skipping: 0xf994af90 0xf9970d14 Yes /lib/ld.so.1 skipping: 0xf9444080 0xf95994c0 Yes=20=20=20=20=20=20=20=20 /home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs/libstdc++= .so.6 skipping: 0xf8d59744 0xf8d8e1d4 Yes /lib/hppa-linux-gnu/libm.so.6 skipping: 0xf8bb3fe0 0xf8bc52a8 Yes=20=20=20=20=20=20=20=20 /home/dave/gnu/gcc/objdir/gcc/libgcc_s.so.4 skipping: 0xf8977950 0xf8acde14 Yes /lib/hppa-linux-gnu/libc.so.6 $1 =3D "zardoz" $2 =3D std::__debug::bitset =3D {[0] =3D 1, [5] =3D 1, [7] =3D 1} $3 =3D std::__debug::deque with 2 elements =3D {"one", "two"} $4 =3D "one" got: $1 =3D "zardoz" PASS: libstdc++-prettyprinters/debug.cc print str got: $2 =3D std::__debug::bitset =3D {[0] =3D 1, [5] =3D 1, [7] =3D 1} PASS: libstdc++-prettyprinters/debug.cc print bs got: $3 =3D std::__debug::deque with 2 elements =3D {"one", "two"} PASS: libstdc++-prettyprinters/debug.cc print deq got: $4 =3D "one" PASS: libstdc++-prettyprinters/debug.cc print deqiter $5 =3D std::__debug::list =3D {[0] =3D "one", [1] =3D "two"} got: $5 =3D std::__debug::list =3D {[0] =3D "one", [1] =3D "two"} PASS: libstdc++-prettyprinters/debug.cc print lst $6 =3D "one" got: $6 =3D "one" PASS: libstdc++-prettyprinters/debug.cc print lstiter $7 =3D "one" got: $7 =3D "one" PASS: libstdc++-prettyprinters/debug.cc print lstciter $8 =3D std::__debug::map with 1 element =3D {["zardoz"] =3D 23} got: $8 =3D std::__debug::map with 1 element =3D {["zardoz"] =3D 23} PASS: libstdc++-prettyprinters/debug.cc print mp $9 =3D {first =3D "zardoz", second =3D 23} got: $9 =3D {first =3D "zardoz", second =3D 23} PASS: libstdc++-prettyprinters/debug.cc print mpiter $10 =3D std::__debug::set with 2 elements =3D {[0] =3D 2, [1] =3D 3} got: $10 =3D std::__debug::set with 2 elements =3D {[0] =3D 2, [1] =3D 3} PASS: libstdc++-prettyprinters/debug.cc print const_intset $11 =3D std::__debug::set with 2 elements =3D {[0] =3D "barrel", [1] =3D "c= lownfish"} got: $11 =3D std::__debug::set with 2 elements =3D {[0] =3D "barrel", [1] = =3D "clownfish"} PASS: libstdc++-prettyprinters/debug.cc print sp $12 =3D "barrel" got: $12 =3D "barrel" PASS: libstdc++-prettyprinters/debug.cc print spciter $13 =3D __gnu_cxx::slist =3D {[0] =3D 47, [1] =3D 23} got: $13 =3D __gnu_cxx::slist =3D {[0] =3D 47, [1] =3D 23} PASS: libstdc++-prettyprinters/debug.cc print sll $14 =3D non-dereferenceable iterator for std::vector got: $14 =3D non-dereferenceable iterator for std::vector PASS: libstdc++-prettyprinters/debug.cc print viter0 $15 =3D std::__debug::vector of length 1, capacity 2 =3D {2} $16 =3D invalid iterator $17 =3D invalid iterator $18 =3D 2 got: $15 =3D std::__debug::vector of length 1, capacity 2 =3D {2} PASS: libstdc++-prettyprinters/debug.cc print v got: $16 =3D invalid iterator PASS: libstdc++-prettyprinters/debug.cc print viter1 got: $17 =3D invalid iterator PASS: libstdc++-prettyprinters/debug.cc print viter2 got: $18 =3D 2 PASS: libstdc++-prettyprinters/debug.cc print viter3 $19 =3D 47 got: $19 =3D 47 PASS: libstdc++-prettyprinters/debug.cc print slliter $20 =3D Program received signal SIGSEGV, Segmentation fault. 0x00000000 in ?? () Python Exception : The program being debugged was signal= ed while in a function called from GDB. GDB remains in the frame where the signal was received. To change this behavior use "set unwindonsignal on". Evaluation of the expression containing the function (std::basic_ios >::rdbuf() const) will be abandoned. When the function is done executing, GDB will silently stop. got: $20 =3D FAIL: libstdc++-prettyprinters/debug.cc print sstream skipping: Program received signal SIGSEGV, Segmentation fault. skipping: 0x00000000 in ?? () skipping: Python Exception : The program being debugged = was signaled while in a function called from GDB. skipping: GDB remains in the frame where the signal was received. skipping: To change this behavior use "set unwindonsignal on". skipping: Evaluation of the expression containing the function skipping: (std::basic_ios >::rdbuf() const) wi= ll be abandoned. skipping: When the function is done executing, GDB will silently stop. { >> =3D { >> =3D { >> =3D { =3D {_vptr.ios_base =3D 0xf9= 5ff3b8 , std::allocator >+52>, static boolalpha =3D std::_S_boolalpha, static = dec =3D std::_S_dec, static fixed =3D std::_S_fixed, static hex =3D std::_S_hex, st= atic internal =3D std::_S_internal, static left =3D std::_S_left, static oct =3D std::_S_oct, static right =3D std::_S_right, static scientific =3D std::_S_scientific, static showbase =3D std::_S_showbase, static showpoint = =3D std::_S_showpoint, static showpos =3D std::_S_showpos, static skipws =3D std::_S_skipws, static unitbuf =3D std::_S_unitbuf, static uppercase =3D std::_S_uppercase, static adjustfield =3D std::_S_adjustfield, static basef= ield =3D std::_S_basefield, static floatfield =3D std::_S_floatfield, static badbit = =3D std::_S_badbit, static eofbit =3D std::_S_eofbit, static failbit =3D std::_S_failbit, static goodbit =3D std::_S_goodbit, static app =3D std::_S= _app, static ate =3D std::_S_ate, static binary =3D std::_S_bin, static in =3D st= d::_S_in, static out =3D std::_S_out, static trunc =3D std::_S_trunc, static __norepl= ace =3D std::_S_noreplace, static beg =3D std::_S_beg, static cur =3D std::_S_cur, = static end =3D std::_S_end, _M_precision =3D 6, _M_width =3D 0, _M_flags =3D 4098, _M_exception =3D std::_S_goodbit, _M_streambuf_state =3D std::_S_goodbit, _M_callbacks =3D 0x0, _M_word_zero =3D {_M_pword =3D 0x0, _M_iword =3D 0}, _M_local_word =3D {{_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0, _= M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0},= {_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0= , _M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0}}, _M_word_size =3D 8, _M_word =3D 0x= f7b05afc, _M_ios_locale =3D {static none =3D 0, static ctype =3D 1, static numeric = =3D 2, static collate =3D 4, static time =3D 8, static monetary =3D 16, static messages = =3D 32, static all =3D 63, _M_impl =3D 0xf9607da4 <(anonymous namespace)::c_locale_= impl>}}, _M_tie =3D 0x0, _M_fill =3D 0 '\000', _M_fill_init =3D false, _M_streambuf = =3D 0xf7b05a9c, _M_ctype =3D 0xf96079b8 <(anonymous namespace)::ctype_c>, _M_nu= m_put =3D 0xf9607990 <(anonymous namespace)::num_put_c>, _M_num_get =3D 0xf9607998 <(anonymous namespace)::num_get_c>}, _vptr.basic_istream =3D 0xf95ff390 , std::allocator >+12>, _M_gcount =3D 0}, >> =3D {_vptr.basic_ostream =3D 0xf95ff3a4 , std::allocator >+32>}, }, _M_stringbuf =3D "abc"} skipping: { >> =3D { >> =3D { >> =3D { =3D {_vptr.ios_base =3D 0xf9= 5ff3b8 , std::allocator >+52>, static boolalpha =3D std::_S_boolalpha, static = dec =3D std::_S_dec, static fixed =3D std::_S_fixed, static hex =3D std::_S_hex, st= atic internal =3D std::_S_internal, static left =3D std::_S_left, static oct =3D std::_S_oct, static right =3D std::_S_right, static scientific =3D std::_S_scientific, static showbase =3D std::_S_showbase, static showpoint = =3D std::_S_showpoint, static showpos =3D std::_S_showpos, static skipws =3D std::_S_skipws, static unitbuf =3D std::_S_unitbuf, static uppercase =3D std::_S_uppercase, static adjustfield =3D std::_S_adjustfield, static basef= ield =3D std::_S_basefield, static floatfield =3D std::_S_floatfield, static badbit = =3D std::_S_badbit, static eofbit =3D std::_S_eofbit, static failbit =3D std::_S_failbit, static goodbit =3D std::_S_goodbit, static app =3D std::_S= _app, static ate =3D std::_S_ate, static binary =3D std::_S_bin, static in =3D st= d::_S_in, static out =3D std::_S_out, static trunc =3D std::_S_trunc, static __norepl= ace =3D std::_S_noreplace, static beg =3D std::_S_beg, static cur =3D std::_S_cur, = static end =3D std::_S_end, _M_precision =3D 6, _M_width =3D 0, _M_flags =3D 4098, _M_exception =3D std::_S_goodbit, _M_streambuf_state =3D std::_S_goodbit, _M_callbacks =3D 0x0, _M_word_zero =3D {_M_pword =3D 0x0, _M_iword =3D 0}, _M_local_word =3D {{_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0, _= M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0},= {_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0}, {_M_pword =3D 0x0= , _M_iword =3D 0}, {_M_pword =3D 0x0, _M_iword =3D 0}}, _M_word_size =3D 8, _M_word =3D 0x= f7b05afc, _M_ios_locale =3D {static none =3D 0, static ctype =3D 1, static numeric = =3D 2, static collate =3D 4, static time =3D 8, static monetary =3D 16, static messages = =3D 32, static all =3D 63, _M_impl =3D 0xf9607da4 <(anonymous namespace)::c_locale_= impl>}}, _M_tie =3D 0x0, _M_fill =3D 0 '\000', _M_fill_init =3D false, _M_streambuf = =3D 0xf7b05a9c, _M_ctype =3D 0xf96079b8 <(anonymous namespace)::ctype_c>, _M_nu= m_put =3D 0xf9607990 <(anonymous namespace)::num_put_c>, _M_num_get =3D 0xf9607998 <(anonymous namespace)::num_get_c>}, _vptr.basic_istream =3D 0xf95ff390 , std::allocator >+12>, _M_gcount =3D 0}, >> =3D {_vptr.basic_ostream =3D 0xf95ff3a4 , std::allocator >+32>}, }, _M_stringbuf =3D "abc"} debug.gdb:28: Error in sourced command file: No symbol "ssin" in current context. skipping: debug.gdb:28: Error in sourced command file: skipping: No symbol "ssin" in current context. UNSUPPORTED: libstdc++-prettyprinters/debug.cc extra_tool_flags are: -g -O0 Similar fails: FAIL: libstdc++-prettyprinters/debug.cc print sstream FAIL: libstdc++-prettyprinters/simple.cc print sstream FAIL: libstdc++-prettyprinters/simple.cc print sstream FAIL: libstdc++-prettyprinters/simple11.cc print sstream FAIL: libstdc++-prettyprinters/simple11.cc print sstream=