Bug 1386451 - trace-cmd record crashes if -f is used before -e
Summary: trace-cmd record crashes if -f is used before -e
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: trace-cmd
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zamir SUN
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 02:07 UTC by Zamir SUN
Modified: 2016-10-25 04:27 UTC (History)
2 users (show)

Fixed In Version: trace-cmd-2.6-2.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-25 04:27:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zamir SUN 2016-10-19 02:07:46 UTC
Description of problem:
trace-cmd record crashes if -f is used before -e


Version-Release number of selected component (if applicable):
[root@f25betavm user]# rpm -qi trace-cmd | head -n 4
Name        : trace-cmd
Version     : 2.6
Release     : 1.fc25
Architecture: x86_64
[root@f25betavm user]# uname -a
Linux f25betavm 4.8.0-0.rc7.git0.1.fc25.x86_64 #1 SMP Mon Sep 19 15:24:06 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
Always

Steps to Reproduce:
1.trace-cmd record -f common_pid==3 -e sched:wakeup  sleep 1
2.
3.

Actual results:
Segmentation fault (core dumped)


Expected results:
Error message should be printed, insetad of segmentation fault.

Additional info:
Upstream fix is here http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git/commit/?id=fca725695474085397339abe07de4a91a781269e 
while there is a lot of changes before this fix, so it can not be patched directly.

Comment 1 Fedora Update System 2016-10-20 21:59:08 UTC
trace-cmd-2.6-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c1e7c1bc92

Comment 2 Fedora Update System 2016-10-20 22:56:54 UTC
trace-cmd-2.6-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ee6ff0e9f8

Comment 3 Fedora Update System 2016-10-25 04:27:23 UTC
trace-cmd-2.6-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.