Bug 444725 - trcsort segfaults when not enough args given
trcsort segfaults when not enough args given
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: pvm (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Doug Ledford
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2008-04-30 06:26 EDT by Milos Malik
Modified: 2008-06-19 14:16 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-19 14:16:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Milos Malik 2008-04-30 06:26:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv: Gecko/20080416 Fedora/ Firefox/

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):

How reproducible:

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 06:29:27 EDT
$ /usr/share/pvm3/bin/LINUXI386/trcsort -h

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

<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 14:16:29 EDT
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.

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