Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1265011 Details for
Bug 1389223
Segmentation fault (core dumped) if trace-cmd snapshot after trace-cmd start -p wakeup
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
trace-cmd: Fix segmentation fault in trace-snapshot
0001-trace-cmd-Fix-segmentation-fault-in-trace-snapshot.patch (text/plain), 1.03 KB, created by
John Kacur
on 2017-03-21 11:11:34 UTC
(
hide
)
Description:
trace-cmd: Fix segmentation fault in trace-snapshot
Filename:
MIME Type:
Creator:
John Kacur
Created:
2017-03-21 11:11:34 UTC
Size:
1.03 KB
patch
obsolete
>From 6087cef5a15b7b7dbbbcc35ec70382ecab615e34 Mon Sep 17 00:00:00 2001 >From: John Kacur <jkacur@redhat.com> >Date: Tue, 21 Mar 2017 11:26:05 +0100 >Subject: [PATCH] trace-cmd: Fix segmentation fault in trace-snapshot > >To reproduce the problem: > > plugin 'wakeup' >trace-cmd: Device or resource busy > Segmentation fault (core dumped) > >When the user triggers a condition such as EBUSY the program should die >gracefully. The problem here is simply caused by an extra conversion >specifier in "die" in the write_file function > >Signed-off-by: John Kacur <jkacur@redhat.com> >--- > trace-snapshot.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/trace-snapshot.c b/trace-snapshot.c >index 9d3608c49563..771b065ccfa4 100644 >--- a/trace-snapshot.c >+++ b/trace-snapshot.c >@@ -42,7 +42,8 @@ static void write_file(const char *name, char *val) > > n = write(fd, val, strlen(val)); > if (n < 0) >- die("failed to write '%d' to %s\n", path); >+ die("failed to write to %s\n", path); >+ > tracecmd_put_tracing_file(path); > close(fd); > } >-- >2.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1389223
: 1265011