Bug 497904

Summary: Crash on first ypcat
Product: [Fedora] Fedora Reporter: Rob Crittenden <rcritten>
Component: slapi-nisAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: nalin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.15-1.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-13 00:29:01 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:
Attachments:
Description Flags
suggested patch none

Description Rob Crittenden 2009-04-27 19:27:53 UTC
Description of problem:

Intermittent crash of slapd server. backtrace is:

(gdb) where
#0  0x00a89743 in strlen () from /lib/libc.so.6
#1  0x0095154f in nis_all_make_cookie (state=cookie_end0, 
    id=0x5eeb4f8 <Address 0x5eeb4f8 out of bounds>, key_index=34) at nis.c:485
#2  0x00952bbb in nis_process_request (state=0x918da10, 
    request_buf=0x93810a8 "\004�M", request_buflen=68, 
    reply_fragment_fn=0x947a00 <dispatch_reply_fragment_connected>, 
    reply_fn=0x947bc0 <dispatch_reply_connected>, cdata=0xb36e7260, 
    client_secure=0, reply_buf=0x9ce14008 "", reply_buf_size=263168, 
    continuation_cookie=0x93b2414) at nis.c:639
#3  0x00948c45 in dispatch_thread (t=0x925aa20) at disp-nis.c:832
#4  0x00955640 in wrap_pthread_starter (p=0x925aa20) at wrap.c:81
#5  0x00927f81 in ?? () from /lib/libnspr4.so
#6  0x00bd532f in start_thread () from /lib/libpthread.so.0
#7  0x00af220e in clone () from /lib/libc.so.6

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

slapi-nis-0.10-1.fc9.i386

I built this myself from the fc11 srpm.

How reproducible:

Not every restart but most restarts

Steps to Reproduce:
1. service dirsrv restart
2. ypcat -d example.com -h myhost netgroup
No such map netgroup. Reason: RPC failure on NIS operation

Comment 1 Nalin Dahyabhai 2009-04-27 20:16:32 UTC
Can you attach the map configuration and some sample data?

Comment 2 Nalin Dahyabhai 2009-04-27 20:31:12 UTC
Created attachment 341483 [details]
suggested patch

Can you try the attached patch?  There's an uninitialized pointer bug that I can't reproduce locally, but which is probably causing the error for you.

Comment 3 Rob Crittenden 2009-04-27 20:47:07 UTC
I re-created my tree, was pretty trivial. It indeed was a query that returned no members.

Applying the patch fixed the problem.

Comment 4 Fedora Update System 2009-04-28 15:55:36 UTC
slapi-nis-0.11-1.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/slapi-nis-0.11-1.fc9

Comment 5 Fedora Update System 2009-04-28 15:55:51 UTC
slapi-nis-0.11-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/slapi-nis-0.11-1.fc10

Comment 6 Fedora Update System 2009-04-28 15:56:05 UTC
slapi-nis-0.11-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/slapi-nis-0.11-1.fc11

Comment 7 Fedora Update System 2009-05-02 16:37:11 UTC
slapi-nis-0.13-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing-newkey update slapi-nis'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-4169

Comment 8 Fedora Update System 2009-05-12 04:09:18 UTC
slapi-nis-0.15-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing-newkey update slapi-nis'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-4169

Comment 9 Fedora Update System 2009-05-13 00:24:51 UTC
slapi-nis-0.15-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2009-05-13 00:25:44 UTC
slapi-nis-0.15-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2009-05-13 00:28:52 UTC
slapi-nis-0.15-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.