This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/bugzilla/show_bug.cgi?id=21449

            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
/home/chad/git/gdbgui/examples/hello.rs:15\n-exec-run\n-data-list-register-values
x\n

Rust source file:
https://raw.githubusercontent.com/cs01/gdbgui/master/examples/hello.rs
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]