Bug 1386451

Summary: trace-cmd record crashes if -f is used before -e
Product: [Fedora] Fedora Reporter: Zamir SUN <sztsian>
Component: trace-cmdAssignee: Zamir SUN <sztsian>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: jonstanley, sztsian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: trace-cmd-2.6-2.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-25 04:27:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.