public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
@ 2020-12-02 16:46 ` redi at gcc dot gnu.org
  2020-12-02 16:48 ` redi at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-02 16:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|2017-12-17 00:00:00         |2020-12-02

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The exceptions come from this line:

        func = gdb.block_for_pc(int(mgr.cast(gdb.lookup_type('intptr_t'))))

This casts a function pointer to intptr_t and then tries to find the gdb.Block
corresponding to that address.

The GDB docs say that gdb.block_for_pc will return None, but it seems to throw
instead.

The same thing happens on powerpc64 linux (but not powerpc64le).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
  2020-12-02 16:46 ` [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab redi at gcc dot gnu.org
@ 2020-12-02 16:48 ` redi at gcc dot gnu.org
  2020-12-02 18:31 ` redi at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-02 16:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ah, I think the problem is that Python 2 has a 42-bit int and so casting a big
endian pointer to int loses half the bits.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
  2020-12-02 16:46 ` [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab redi at gcc dot gnu.org
  2020-12-02 16:48 ` redi at gcc dot gnu.org
@ 2020-12-02 18:31 ` redi at gcc dot gnu.org
  2020-12-02 18:31 ` redi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-02 18:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-12-02 18:31 ` redi at gcc dot gnu.org
@ 2020-12-02 18:31 ` redi at gcc dot gnu.org
  2020-12-02 18:41 ` dave.anglin at bell dot net
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-02 18:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> Ah, I think the problem is that Python 2 has a 42-bit int

32-bit of course.

But there's also something else going on. I have a patch.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-12-02 18:31 ` redi at gcc dot gnu.org
@ 2020-12-02 18:41 ` dave.anglin at bell dot net
  2020-12-02 21:39 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: dave.anglin at bell dot net @ 2020-12-02 18:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

--- Comment #7 from dave.anglin at bell dot net ---
Currently, we also have the following two additional fails:

FAIL: libstdc++-prettyprinters/91997.cc print a
FAIL: libstdc++-prettyprinters/91997.cc print a

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-12-02 18:41 ` dave.anglin at bell dot net
@ 2020-12-02 21:39 ` cvs-commit at gcc dot gnu.org
  2020-12-02 21:43 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-02 21:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:dc2b372ed1b1e9af6db45051cff95478c7616807

commit r11-5683-gdc2b372ed1b1e9af6db45051cff95478c7616807
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Dec 2 21:39:08 2020 +0000

    libstdc++: Fix std::any pretty printer [PR 68735]

    This fixes errors seen on powerpc64 (big endian only) due to the
    printers for std::any and std::experimental::any being unable to find
    the manager function.

    libstdc++-v3/ChangeLog:

            PR libstdc++/65480
            PR libstdc++/68735
            * python/libstdcxx/v6/printers.py (function_pointer_to_name):
            New helper function to get the name of a function from its
            address.
            (StdExpAnyPrinter.__init__): Use it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2020-12-02 21:39 ` cvs-commit at gcc dot gnu.org
@ 2020-12-02 21:43 ` redi at gcc dot gnu.org
  2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-02 21:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to dave.anglin from comment #7)
> Currently, we also have the following two additional fails:
> 
> FAIL: libstdc++-prettyprinters/91997.cc print a
> FAIL: libstdc++-prettyprinters/91997.cc print a

Yes it's the same printer for the same type. If the commit above fixed it for
libfundts.cc it should fix it for those too.

It's possible the problem here is different from the PR 65480 problem for
powerpc64 though, so I'll wait to see how your next tests go.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2020-12-02 21:43 ` redi at gcc dot gnu.org
@ 2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
  2021-01-11 17:44 ` cvs-commit at gcc dot gnu.org
  2021-01-11 17:48 ` redi at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-11 15:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:4fd49da23bf579b84940bd96bf942bd99cfa187a

commit r10-9249-g4fd49da23bf579b84940bd96bf942bd99cfa187a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Dec 2 21:39:08 2020 +0000

    libstdc++: Fix std::any pretty printer [PR 68735]

    This fixes errors seen on powerpc64 (big endian only) due to the
    printers for std::any and std::experimental::any being unable to find
    the manager function.

    libstdc++-v3/ChangeLog:

            PR libstdc++/65480
            PR libstdc++/68735
            * python/libstdcxx/v6/printers.py (function_pointer_to_name):
            New helper function to get the name of a function from its
            address.
            (StdExpAnyPrinter.__init__): Use it.

    (cherry picked from commit dc2b372ed1b1e9af6db45051cff95478c7616807)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
@ 2021-01-11 17:44 ` cvs-commit at gcc dot gnu.org
  2021-01-11 17:48 ` redi at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-11 17:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:2204b4121fa9cddb89dd52a8a0754a1ae0666efb

commit r8-10720-g2204b4121fa9cddb89dd52a8a0754a1ae0666efb
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Dec 2 21:39:08 2020 +0000

    libstdc++: Fix std::any pretty printer [PR 68735]

    This fixes errors seen on powerpc64 (big endian only) due to the
    printers for std::any and std::experimental::any being unable to find
    the manager function.

    libstdc++-v3/ChangeLog:

            PR libstdc++/65480
            PR libstdc++/68735
            * python/libstdcxx/v6/printers.py (function_pointer_to_name):
            New helper function to get the name of a function from its
            address.
            (StdExpAnyPrinter.__init__): Use it.

    (cherry picked from commit dc2b372ed1b1e9af6db45051cff95478c7616807)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
       [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2021-01-11 17:44 ` cvs-commit at gcc dot gnu.org
@ 2021-01-11 17:48 ` redi at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2021-01-11 17:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|11.0                        |8.5

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 8.5 and 9.4 and 10.3

The gcc-9 commit didn't show up here but was r9-9172

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-11 17:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-68735-4@http.gcc.gnu.org/bugzilla/>
2020-12-02 16:46 ` [Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab redi at gcc dot gnu.org
2020-12-02 16:48 ` redi at gcc dot gnu.org
2020-12-02 18:31 ` redi at gcc dot gnu.org
2020-12-02 18:31 ` redi at gcc dot gnu.org
2020-12-02 18:41 ` dave.anglin at bell dot net
2020-12-02 21:39 ` cvs-commit at gcc dot gnu.org
2020-12-02 21:43 ` redi at gcc dot gnu.org
2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
2021-01-11 17:44 ` cvs-commit at gcc dot gnu.org
2021-01-11 17:48 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).