Bug 444725

Summary: trcsort segfaults when not enough args given
Product: Red Hat Enterprise Linux 4 Reporter: Milos Malik <mmalik>
Component: pvmAssignee: Doug Ledford <dledford>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-19 18:16:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milos Malik 2008-04-30 10:26:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.8.1.14) Gecko/20080416 Fedora/2.0.0.14-1.fc8 Firefox/2.0.0.14

Description of problem:
The trcsort utility does not check if parameters "-o" and "-O" are followed by some arguments.

Version-Release number of selected component (if applicable):
pvm-3.4.5-10

How reproducible:
Always


Steps to Reproduce:
1. trcsort -o
2. trcsort -O


Actual Results:
2 segmentation faults.


Expected Results:
No segmentation faults. 2 error messages about missing arguments.

Additional info:

Comment 1 Milos Malik 2008-04-30 10:29:27 UTC
$ /usr/share/pvm3/bin/LINUXI386/trcsort -h

usage:  trcsort [ <trace_infile> ] [ -o <trace_outfile> ] [ -O <output_file> ] [
-v ] 

where:
------
<trace_infile>    =    trace file to be sorted (default is stdin)
<trace_outfile>   =    file to store sorted trace (default is stdout)
<output_file>     =    file to store separate copy of any task output
-v                =    display dynamic open file usage


Comment 2 Doug Ledford 2008-06-19 18:16:29 UTC
This program isn't intended to be run by hand, and when run by pvm/xpvm, the
options are controlled so this isn't an issue.