This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22779] New: "show mpx bound" command fails
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 03 Feb 2018 13:25:56 +0000
- Subject: [Bug gdb/22779] New: "show mpx bound" command fails
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22779
Bug ID: 22779
Summary: "show mpx bound" command fails
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: bruno at clisp dot org
Target Milestone: ---
Created attachment 10781
--> https://sourceware.org/bugzilla/attachment.cgi?id=10781&action=edit
test program
While debugging a program compiled with "gcc -mmpx -fcheck-pointer-bounds", I
wish to see the bounds a of variable, as documented in
https://sourceware.org/gdb/onlinedocs/gdb/i386.html
But the "show mpx bound <variable>" command fails:
(gdb) show mpx bound mem
Invalid bounds directory entry at 0x7fff773e7030.
This happens although the process itself does proper bounds checking.
How to reproduce:
$ gcc -mmpx -fcheck-pointer-bounds -ggdb foo.c
$ gdb a.out
(gdb) break main
(gdb) run
(gdb) next
(gdb) next
(gdb) next
(gdb) show mpx bound mem
(gdb) show mpx bound p
(gdb) continue
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00000000004005c8 in main () at foo.c:9
9 p[-2] = 'x';
--
You are receiving this mail because:
You are on the CC list for the bug.