public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "grazfather at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug python/27234] New: gdb.Value causes abort when converted to string Date: Sun, 24 Jan 2021 16:00:52 +0000 [thread overview] Message-ID: <bug-27234-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=27234 Bug ID: 27234 Summary: gdb.Value causes abort when converted to string Product: gdb Version: 10.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: grazfather at gmail dot com Target Milestone: --- This was reported via github: https://github.com/hugsy/gef/issues/593, but it's a bug in GDB. Compile the following go code: ``` package main import ( "fmt" ) func main() { fmt.Printf("hi"); } ``` for x86_64. Open it in GDB 10.1 b main.main run ni 7 Now run in a python interpreter ``` current_frame = gdb.selected_frame() frame_args = gdb.FrameDecorator.FrameDecorator(current_frame).frame_args() or [] values = [x.sym.value(current_frame) for x in frame_args] # You should get a list of four values # value 1 can be converted to a string str(values[1]) # This will abort str(values[0]) ``` -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2021-01-24 16:00 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-24 16:00 grazfather at gmail dot com [this message] 2021-01-24 16:13 ` [Bug python/27234] " grazfather at gmail dot com 2022-06-11 19:27 ` tromey at sourceware dot org 2022-06-20 14:48 ` grazfather at gmail dot com 2023-04-17 16:55 ` tromey 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-27234-4717@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).