This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug server/22137] New: gdbserver crashes on hosts with pkru register
- From: "aboya at igalia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 14 Sep 2017 17:21:12 +0000
- Subject: [Bug server/22137] New: gdbserver crashes on hosts with pkru register
- Auto-submitted: auto-generated
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.