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 gdb/22779] New: "show mpx bound" command fails


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.

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