Bug 444732 - tracer segfaults when not enough args given
Summary: tracer segfaults when not enough args given
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: pvm
Version: 4.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Doug Ledford
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-30 11:53 UTC by Milos Malik
Modified: 2008-06-19 18:15 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-19 18:15:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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