public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug python/28856] Python pretty printer causes stack overflow when printing frame arguments Date: Mon, 21 Mar 2022 13:23:08 +0000 [thread overview] Message-ID: <bug-28856-4717-LWDzwyvsOp@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-28856-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=28856 --- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Bruno Larsen <blarsen@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=daaf7acf47a12d10459060dca5500b63273cd683 commit daaf7acf47a12d10459060dca5500b63273cd683 Author: Bruno Larsen <blarsen@redhat.com> Date: Tue Feb 22 11:44:44 2022 -0300 [gdb/testsuite] test a function call by hand from pretty printer The test case added here is testing the bug gdb/28856, where calling a function by hand from a pretty printer makes GDB crash. There are 6 mechanisms to trigger this crash in the current test, using the commands backtrace, up, down, finish, step and continue. Since the failure happens because of use-after-free (more details below) the tests will always have a chance of passing through sheer luck, but anecdotally they seem to fail all of the time. The reason GDB is crashing is a use-after-free problem. The above mentioned functions save a pointer to the current frame's information, then calls the pretty printer, and uses the saved pointer for different reasons, depending on the function. The issue happens because call_function_by_hand needs to reset the obstack to get the current frame, invalidating the saved pointer. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-03-21 13:23 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-03 11:45 [Bug python/28856] New: " jwakely.gcc at gmail dot com 2022-02-03 11:46 ` [Bug python/28856] " jwakely.gcc at gmail dot com 2022-02-03 11:49 ` jwakely.gcc at gmail dot com 2022-02-03 12:02 ` fweimer at redhat dot com 2022-02-03 19:01 ` ssbssa at sourceware dot org 2022-02-03 20:50 ` jwakely.gcc at gmail dot com 2022-02-03 21:15 ` ssbssa at sourceware dot org 2022-02-03 21:29 ` simark at simark dot ca 2022-02-03 22:19 ` jwakely.gcc at gmail dot com 2022-02-07 17:51 ` blarsen at redhat dot com 2022-03-21 13:23 ` cvs-commit at gcc dot gnu.org [this message] 2022-03-24 14:28 ` simon.marchi at polymtl dot ca 2022-10-10 10:14 ` cvs-commit at gcc dot gnu.org 2022-10-10 10:23 ` blarsen at redhat dot com 2023-08-03 15:59 ` tromey at sourceware dot org 2024-01-13 18:50 ` ssbssa at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28856-4717-LWDzwyvsOp@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).