Bug 444732

Summary: tracer 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:15:54 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 11:53:25 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 tracer utility does not check if parameters "-T", "-O" and "-B" are followed by some arguments.

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

How reproducible:
Always


Steps to Reproduce:
<arch>: LINUXIA64, LINUXI386, LINUXPPC64, LINUXS390, LINUXS390X, LINUXX86_64
1. /usr/share/pvm3/bin/<arch>/tracer -T
2. /usr/share/pvm3/bin/<arch>/tracer -O
3. /usr/share/pvm3/bin/<arch>/tracer -B


Actual Results:
3 segmentation faults.

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

Additional info:

Comment 1 Milos Malik 2008-04-30 11:55:18 UTC
$ /usr/share/pvm3/bin/LINUXI386/tracer -h

usage:  tracer [ -T tracefile ] [ -O outfile ] [ full | time | count ] [ -Hhev ]

where:
------
-T file    = Use "file" as Trace File
-O file    = Use "file" as Additional Output File
-B nbytes          = Set Trace Buffer Size to nbytes
full       = Set Tracing Option to Full
time       = Set Tracing Option to Timing
count      = Set Tracing Option to Count
-H/h       = Print This Help Information
-e         = Dump Raw PVM Event Text
-v         = Verbose Operation


Comment 2 Doug Ledford 2008-06-19 18:15:54 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.