public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "mehmetgelisin at aol dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/26861] internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid == inferior_ptid' failed. OS: Mac OSX Catalina; Compiler: GCC; Language: C Date: Fri, 10 Sep 2021 19:37:03 +0000 [thread overview] Message-ID: <bug-26861-4717-n7gytPTjHE@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26861-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26861 Mehmet gelisin <mehmetgelisin at aol dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot com --- Comment #28 from Mehmet gelisin <mehmetgelisin at aol dot com> --- I received the following error messages: https://komiya-dental.com/ ../../gdb/target.c:2149: internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid == inferior_ptid' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session http://www.iu-bloomington.com/ I received the following error messages: ../../gdb/target.c:2149: internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid == inferior_ptid' failed. https://www.webb-dev.co.uk/ A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session $ cat test.c struct foo { int len; https://waytowhatsnext.com/ int items[]; }; struct foo *p; http://www.acpirateradio.co.uk/ int main() { return 0; } $ gcc test.c -g -O0 -o test http://www.logoarts.co.uk/ $ ./gdb -q -nx --data-directory=data-directory ./test -ex 'python gdb.parse_and_eval("p").type.target()["items"].type.range()' http://www.logoarts.co.uk/ Reading symbols from ./test... /home/simark/src/binutils-gdb/gdb/gdbtypes.h:435: internal-error: LONGEST dynamic_prop::const_val() const: Assertion `m_kind == PROP_CONST' failed. http://www.slipstone.co.uk/ A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) http://embermanchester.uk/ This is because the Python code (typy_range) blindly reads the high bound of the type of `items` as a constant value. Since it is a flexible array member, it has no high bound, http://connstr.net/ the property is undefined. Since commit 8c2e4e0689 ("gdb: add accessors to struct dynamic_prop"), the getters http://joerg.li/ check that you are not getting a property value of the wrong kind, so this causes a failed assertion. Fix it by checking if the property http://www.jopspeech.com/ is indeed a constant value before accessing it as such. Otherwise, use 0. This restores the previous GDB behavior: because the structure was zero-initialized, http://www.wearelondonmade.com/ this is what was returned before. But now this behavior is explicit and not accidental. Add a test, http://www.compilatori.com/ gdb.python/flexible-array-member.exp, that is derived from gdb.base/flexible-array-member.exp. It tests the same things, but through the Python API. It also specifically tests getting the range from the various kinds of flexible array member types (AFAIK it wasn't possible to do the equivalent through the CLI). http://www-look-4.com/ gdb/ChangeLog: -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-09-10 19:37 UTC|newest] Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-10 9:46 [Bug gdb/26861] New: " ntvallone at ucdavis dot edu 2020-11-10 9:47 ` [Bug gdb/26861] " ntvallone at ucdavis dot edu 2020-11-29 19:25 ` ethanrob122 at gmail dot com 2020-11-29 19:37 ` ethanrob122 at gmail dot com 2021-01-20 1:15 ` fishinfuglers at gmail dot com 2021-01-31 7:42 ` frankshe175 at gmail dot com 2021-02-01 19:07 ` simark at simark dot ca 2021-02-01 19:10 ` simark at simark dot ca 2021-02-10 15:05 ` rostyslav.skrypnyk at gmail dot com 2021-02-23 3:27 ` levraiphilippeblain at gmail dot com 2021-02-23 3:53 ` levraiphilippeblain at gmail dot com 2021-02-24 4:19 ` levraiphilippeblain at gmail dot com 2021-02-24 16:41 ` simark at simark dot ca 2021-02-24 17:11 ` simark at simark dot ca 2021-02-24 20:07 ` levraiphilippeblain at gmail dot com 2021-02-24 20:16 ` levraiphilippeblain at gmail dot com 2021-02-24 22:04 ` simark at simark dot ca 2021-02-25 20:53 ` cvs-commit at gcc dot gnu.org 2021-02-25 20:55 ` cvs-commit at gcc dot gnu.org 2021-02-25 20:57 ` simark at simark dot ca 2021-02-28 11:41 ` brobecker at gnat dot com 2021-06-27 17:47 ` ahmedsayeed1982 at yahoo dot com 2021-08-18 13:52 ` jamesrogan59 at gmail dot com 2021-08-25 5:16 ` marlenesanchez231+wilmar at gmail dot com 2021-09-02 11:03 ` donipah907 at mtlcz dot com 2021-09-02 11:05 ` donipah907 at mtlcz dot com 2021-09-02 11:17 ` mark at klomp dot org 2021-09-05 7:36 ` kimolsun2020 at yahoo dot com 2021-09-06 9:06 ` focixujo at livinginsurance dot co.uk 2021-09-06 9:12 ` focixujo at livinginsurance dot co.uk 2021-09-06 13:09 ` ntvallone at ucdavis dot edu 2021-09-10 19:37 ` mehmetgelisin at aol dot com [this message] 2021-09-13 8:40 ` nicholasgrove641 at gmail dot com 2021-09-13 8:41 ` nicholasgrove641 at gmail dot com 2021-09-13 8:41 ` nicholasgrove641 at gmail dot com 2021-09-13 8:41 ` nicholasgrove641 at gmail dot com 2021-09-28 1:40 ` marlenesanchez231+jaime at gmail dot com 2021-10-08 19:40 ` vficaj at gmail dot com 2021-10-09 11:00 ` gulsenenginar at aol dot com 2021-10-18 19:58 ` ahmedsayeed1982 at hotmail dot com 2021-10-19 7:14 ` progonsaytu at gmail dot com 2021-10-24 10:02 ` glassmtech at ukr dot net 2021-11-10 1:57 ` wallremovalsperth at gmail dot com 2021-11-10 1:59 ` wallremovalsperth at gmail dot com 2021-11-22 6:48 ` gexed96894 at keagenan dot com
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-26861-4717-n7gytPTjHE@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).