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 server/22137] New: gdbserver crashes on hosts with pkru register


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

            Bug ID: 22137
           Summary: gdbserver crashes on hosts with pkru register
           Product: gdb
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: aboya at igalia dot com
  Target Milestone: ---

How to reproduce (as a Bash snippet):

cat > /tmp/a.c <<EOF
#include <stdio.h>
int main(int argc, char** argv) {
    puts("hi\n");
    return 0;
}
EOF
gcc -g -O0 -o /tmp/a /tmp/a.c
gdbserver localhost:5000 /tmp/a &
gdb -q /tmp/a <<EOF
target remote localhost:5000
quit
EOF

Expected behavior:

The client connects to the server and quits without errors.

Actual behavior:

The server crashes when the client connects:

Remote debugging from host 127.0.0.1
../../../gdb/gdbserver/regcache.c:264: A problem internal to GDBserver has been
detected.
Unknown register pkru requested

This is only reproducible in hosts that support the Intel Protection Keys for
Userspace x86 extension (lscpu |grep -w pku).

Version:

GNU gdbserver (GDB) Fedora 8.0.1-26.fc26
GNU gdb (GDB) Fedora 8.0.1-26.fc26

-- 
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]