Bug 112260 - debug code generates seg fault
Summary: debug code generates seg fault
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: ypbind
Version: 3.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-16 19:30 UTC by Jeff Bastian
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-21 11:31:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to fix seg fault (455 bytes, patch)
2003-12-16 19:31 UTC, Jeff Bastian
no flags Details | Diff

Description Jeff Bastian 2003-12-16 19:30:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031022

Description of problem:
I'm experimenting with the code path if defining
  USE_BROADCAST=0
in serv_list.c.

I found a bug in line 896 that causes a seg fault if running ypbind
with debugging turned on (-d flag).  
  list->server[i]
should be
  list->server[i].host

Attached is a patch.

Since most people use USE_BROADCAST=1, this probably won't affect many
people, but it is a bug.



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

How reproducible:
Always

Steps to Reproduce:
1. Define USE_BROADCAST=0 and compile ypbind
2. Start ypbind with -d flag for debugging
3. A child process will seg fault
    

Actual Results:  seg fault

Expected Results:  daemon continues to run

Additional info:

Comment 1 Jeff Bastian 2003-12-16 19:31:38 UTC
Created attachment 96565 [details]
patch to fix seg fault


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