Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1444532 > unrolled thread
| Started by | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| First post | 2016-07-15 21:30 +0200 |
| Last post | 2016-07-15 21:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] trace-cmd: record crashes if -f is used before -e event. Steven Rostedt <rostedt@goodmis.org> - 2016-07-15 21:30 +0200
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2016-07-15 21:30 +0200 |
| Subject | Re: [PATCH] trace-cmd: record crashes if -f is used before -e event. |
| Message-ID | <rVgYa-2pB-13@gated-at.bofh.it> |
On Wed, 18 Nov 2015 00:57:14 +0100 (CET) John Kacur <jkacur@redhat.com> wrote: > On Mon, 20 Jul 2015, Daniel Bristot de Oliveira wrote: > > > The trace-cmd record command is crashing if a -f filter is used before > > a -e event. > > > > The usage a -f before a -e is a command line error, and trace-cmd > > record detects this error by checking if the last_event pointer is NULL. > > > > However, the last_event is not initialized as NULL and this command line > > error is not detected. Then, the last_event is used to save the filter > > options and this causes a segmentation fault because last_event was not > > initialized yet. > > > > This problem is fixed by initializing last_event as NULL. > > > > How-to reproduce: > > # trace-cmd record -f foo > > Segmentation fault > > > > Expected output: > > # trace-cmd record -f foo > > filter must come after event > > > > Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com> > Tested-by: John Kacur <jkacur@redhat.com> > > Works well, please apply Applied. Thanks! -- Steve
Back to top | Article view | linux.kernel
csiph-web