[Bug rust/21449] New: segfault when running -data-list-register-values x on rust executable

grassfedcode at gmail dot com sourceware-bugzilla@sourceware.org
Mon May 1 06:04:00 GMT 2017


            Bug ID: 21449
           Summary: segfault when running -data-list-register-values x on
                    rust executable
           Product: gdb
           Version: 7.12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rust
          Assignee: unassigned at sourceware dot org
          Reporter: grassfedcode at gmail dot com
  Target Milestone: ---

Created attachment 10035
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10035&action=edit
strace of the gdb session and eventual segfault

A segfault occurs in `-data-list-register-values x` when stopped in a rust
executable. See https://github.com/cs01/gdbgui/issues/64. This was confirmed by
o11c and simark in the #gdb irc channel.

MI transcript: 
-file-exec-and-symbols /home/chad/git/gdbgui/examples/rust.a\n-break-insert

Rust source file:
makefile: https://github.com/cs01/gdbgui/blob/master/examples/makefile

The kernel log reports
[ 4467.187888] gdb[13609]: segfault at 0 ip 00000000006489ed sp
00007ffc0a0ce260 error 4 in gdb[400000+617000]

The bug was fixed in gdb's git repository, commit b96645f1a1e608 "Add support
for untagged unions in Rust", but is present in version 7.12 and 7.12.1. 

Seems similar to a bug #8150, which is old and is likely not related since this
occurs only on Rust executables.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list