Red Hat Bugzilla – Bug 444732
tracer segfaults when not enough args given
Last modified: 2008-06-19 14:15:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:22.214.171.124) Gecko/20080416 Fedora/126.96.36.199-1.fc8 Firefox/188.8.131.52
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):
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
3 segmentation faults.
No segmentation faults. 3 error messages about missing arguments.
$ /usr/share/pvm3/bin/LINUXI386/tracer -h
usage: tracer [ -T tracefile ] [ -O outfile ] [ full | time | count ] [ -Hhev ]
-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
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.