Bug 62246 - if an option is specified at the command line, and no host is specified for the query, whois will segfault and coredump
if an option is specified at the command line, and no host is specified for t...
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: whois (Show other bugs)
7.1
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
Aaron Brown
:
Depends On:
Blocks: FC3BugWeekTracker
  Show dependency treegraph
 
Reported: 2002-03-28 15:23 EST by Ryan Yagatich
Modified: 2007-04-18 12:41 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-27 17:23:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ryan Yagatich 2002-03-28 15:23:39 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)

Description of problem:
if an option is specified at the command line, and no host is specified for the 
query, whois will segfault and coredump. for example, if you type whois -h at 
the command line, with no host specified. you will get a segmentation fault.

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


How reproducible:
Always

Steps to Reproduce:
1. log into your redhat linux system
2. type: whois pantek.com
   (that will test to make sure whois is really doing querys...
3. type: whois -h
   (this will segfault whois)
	

Actual Results:  as expected, whois segfaults.

Expected Results:  it should have prompted with the "Usage"

Additional info:

[ryany@procyon bugzilla]$ whois
syntax: whois [-v] [-r] [-h server] [-p port] [--] query[@server[:port]]
default server is whois.crsnic.net
[ryany@procyon bugzilla]$ whois -h
Segmentation fault (core dumped)
[ryany@procyon bugzilla]$ whois --
Segmentation fault (core dumped)
[ryany@procyon bugzilla]$ whois -r
Segmentation fault (core dumped)
[ryany@procyon bugzilla]$ whois -v
Segmentation fault (core dumped)
[ryany@procyon bugzilla]$ whois pantek.com
... works fine for this ...

full results: http://www.pantek.com/~ryany/bugzilla
Comment 1 Ryan Yagatich 2002-05-01 21:51:54 EDT
This bug is not present in RedHat Linux 7.2
Comment 2 Sean Porterfield 2003-09-18 16:37:35 EDT
Looks like a duplicate of bug 30468.  Answer is to upgrade.
Comment 3 Marcin Garski 2004-09-27 17:23:36 EDT
whois is no longer included in Fedora Core.
It has been replaced by jwhois.
Upgrade to lastest release of Fedora Core and try jwois, if this bug
still occur, please reopen.

Note that I can't reproduce this bug on jwhois-3.2.2-3, so updating to
FC2 should resolve this bug.

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