Bug 763568 (GLUSTER-1836) - server is hung in infinite loop while trying to search for an actor during request processing
Summary: server is hung in infinite loop while trying to search for an actor during re...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-1836
Product: GlusterFS
Classification: Community
Component: protocol
Version: mainline
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-06 13:08 UTC by Raghavendra G
Modified: 2015-12-01 16:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Raghavendra G 2010-10-06 13:08:48 UTC
Test: after starting server, send SIGHUP to server process and run ls on mountpoint.

Server process is hung executing an infinite loop in rpcsvc_program_actor. Traversal of List storing registering programs is resulting in an infinite loop.

Cause: list_add_tail is done on same list_head object more than once. This happens since we are adding global program structures into svc registered program list and when SIGHUP is sent the graph is reinitialized and rpcsvc_program_register is called for second time on a program object that is already in list of registered programs.

Comment 1 Vijay Bellur 2010-10-07 02:17:21 UTC
PATCH: http://patches.gluster.com/patch/5322 in master (rpcsvc: allocate a new program structure before registering it.)


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