public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Walfred Tedeschi <walfred.tedeschi@intel.com>
Cc: "palves"@redhat.com, brobecker@adacore.com,	gdb-patches@sourceware.org
Subject: Re: FW: [PATCH V4 6/6] Intel MPX bound violation handling.
Date: Thu, 21 Jan 2016 17:51:00 -0000	[thread overview]
Message-ID: <83io2m95yt.fsf@gnu.org> (raw)
In-Reply-To: <56A11694.4000502@intel.com> (message from Walfred Tedeschi on	Thu, 21 Jan 2016 18:34:12 +0100)

> Date: Thu, 21 Jan 2016 18:34:12 +0100
> From: Walfred Tedeschi <walfred.tedeschi@intel.com>
> 
> >> +The usual output of a segfault is:
> >> +@smallexample
> >> +Program received signal SIGSEGV, Segmentation fault
> >> +0x0000000000400d7c in upper (p=0x603010, a=0x603030, b=0x603050,
> >> +c=0x603070, d=0x603090, len=7) at i386-mpx-sigsegv.c:68
> >> +68        value = *(p + len);
> >> +@end smallexample
> >> +
> >> +In case it is a bound violation it will be presented as:
> >> +@smallexample
> >> +Program received signal SIGSEGV, Segmentation fault upper bound
> >> +violation - bounds @{lbound = 0x603010, ubound = 0x603023@} accessing
> >> +0x60302f.
> >> +0x0000000000400d7c in upper (p=0x603010, a=0x603030, b=0x603050,
> >> +c=0x603070, d=0x603090, len=7) at i386-mpx-sigsegv.c:68
> >> +68        value = *(p + len);
> >> +@end smallexample
> > Why do we need to show here the output when no bound violation happened?
> >
> > Actually, why not move this description and the example to the "Signals" node?  If I were a user who received such a notification, the "Signals" node is where I would look for the explanations first.
> I will move it there. About the example I wanted to show where the 
> change will be placed. If you consider that this is superfluous, no 
> issue in removing.

If you move the description there, showing both examples would be
good.  In the place where you put it, only the bounds violation is
described, so it is strange to have there the display without bounds
violation.

> Will the snippet bellow be better?
> 
> Program received signal SIGSEGV, Segmentation fault upper bound
> violation - bounds @{lbound = 0x603010, ubound = 0x603023@} accessing
> 0x60302f.

I still think the word "address" should be added after "accessing".

But if no one else thinks it's important, I don't insist.

Thanks.

  reply	other threads:[~2016-01-21 17:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 14:48 [PATCH V4 0/6] Intel MPX bound violation support Walfred Tedeschi
2016-01-21 14:48 ` [PATCH V4 3/6] Use linux_get_siginfo_type_with_fields for x86 Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 5/6] Adaptation of siginfo fixup for the new bnd fields Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 1/6] Merge gdb and gdbserver implementations for siginfo Walfred Tedeschi
2016-01-21 15:05   ` Pedro Alves
2016-01-21 14:49 ` [PATCH V4 4/6] Add bound related fields to the siginfo structure Walfred Tedeschi
2016-01-21 14:49 ` [PATCH V4 2/6] Prepararion for new siginfo on Linux Walfred Tedeschi
2016-01-21 15:05   ` Pedro Alves
2016-01-21 14:49 ` [PATCH V4 6/6] Intel MPX bound violation handling Walfred Tedeschi
2016-01-21 16:23   ` Eli Zaretskii
     [not found]     ` <AC542571535E904D8E8ADAE745D60B194452CD61@IRSMSX104.ger.corp.intel.com>
2016-01-21 17:34       ` FW: " Walfred Tedeschi
2016-01-21 17:51         ` Eli Zaretskii [this message]
2016-01-21 18:06           ` Pedro Alves
2016-01-21 18:22             ` Eli Zaretskii
2016-01-22  8:38             ` Walfred Tedeschi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83io2m95yt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=walfred.tedeschi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).