Bug 763315 (GLUSTER-1583)

Summary: glusterd crash
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: glusterdAssignee: Vijay Bellur <vbellur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: 3.1-alphaCC: gluster-bugs, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: fuse
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vijay Bellur 2010-09-09 09:23:30 UTC
PATCH: http://patches.gluster.com/patch/4711 in master (mgmt/glusterd: Use appropriate length while doing strncpy)

Comment 1 Lakshmipathi G 2010-09-09 09:46:14 UTC
while creating volume in 32-bit machine,glusterd (qa19) crashed.

#gluster volume create afr replica 2 10.202.57.169:/mnt/dir1/ 10.212.117.143:/mnt/dir1/
----------
#1  0x004562ac in glusterd_op_create_volume (req=0x925f338) at glusterd-op-sm.c:1133
	ret = 0
	dict = (dict_t *) 0x925f558
	volname = 0x925fa6d "afr"
	priv = (glusterd_conf_t *) 0x925b898
	volinfo = (glusterd_volinfo_t *) 0x925fb20
	brickinfo = (glusterd_brickinfo_t *) 0x92623c0
	this = (xlator_t *) 0x9258d10
	brick = 0x9262351 "10.202.57.169:/mnt/dir1/"
	count = 2
	i = 1
	bricks = 0x925fabd " 10.202.57.169:/mnt/dir1/ 10.212.117.143:/mnt/dir1/ "
	brick_list = 0x9262350 " 10.202.57.169:/mnt/dir1/"
	free_ptr = 0x9262350 " 10.202.57.169:/mnt/dir1/"
	saveptr = 0x926236a "10.212.117.143:/mnt/dir1/ "
	sub_count = 2
	trans_type = 0x925faaa "tcp"
	str = 0x925fa38 "d30bcf3f-263e-44ac-b08a-403eb4358325"
	__PRETTY_FUNCTION__ = "glusterd_op_create_volume"
	__FUNCTION__ = "glusterd_op_create_volume"
#2  0x0045d23c in glusterd_op_commit_perform (req=0x925f338) at glusterd-op-sm.c:3398
	ret = -1
	__PRETTY_FUNCTION__ = "glusterd_op_commit_perform"
	__FUNCTION__ = "glusterd_op_commit_perform"
#3  0x00466668 in glusterd3_1_commit_op (frame=0x0, this=0x9258d10, data=0x0) at glusterd3_1-mops.c:1063
	req = (gd1_mgmt_commit_op_req *) 0x925f338
	ret = 0
	peerinfo = (glusterd_peerinfo_t *) 0x0
	priv = (glusterd_conf_t *) 0x925b898
	pending_peer = 0
	i = 1
	dummy_frame = (call_frame_t *) 0x0
	__PRETTY_FUNCTION__ = "glusterd3_1_commit_op"
	__FUNCTION__ = "glusterd3_1_commit_op"
#4  0x0045bb1c in glusterd_op_ac_send_commit_op (event=0x92608c0, ctx=0x0) at glusterd-op-sm.c:2871
Missing separate debuginfos, use: debuginfo-install gcc.i386 glibc.i686
---Type <return> to continue, or q <return> to quit--- 
	ret = 0
	proc = (rpc_clnt_procedure_t *) 0x47d750
	priv = (glusterd_conf_t *) 0x925b898
	this = (xlator_t *) 0x9258d10
	__PRETTY_FUNCTION__ = "glusterd_op_ac_send_commit_op"
	__FUNCTION__ = "glusterd_op_ac_send_commit_op"
#5  0x0045d6ea in glusterd_op_sm () at glusterd-op-sm.c:3677
	event = (glusterd_op_sm_event_t *) 0x92608c0
	tmp = (glusterd_op_sm_event_t *) 0x47ddc4
	ret = 0
	handler = (glusterd_op_sm_ac_fn) 0x45b9d7 <glusterd_op_ac_send_commit_op>
	state = (glusterd_op_sm_t *) 0x47cf20
	event_type = GD_OP_EVENT_STAGE_ACC
	__PRETTY_FUNCTION__ = "glusterd_op_sm"
	__FUNCTION__ = "glusterd_op_sm"
#6  0x00464e98 in glusterd3_1_stage_op_cbk (req=0xb671f20c, iov=0xb671f22c, count=1, myframe=0xb742a468) at glusterd3_1-mops.c:517
	rsp = {uuid = {108 'l', 220 '�', 200 '�', 60 '<', 201 '�', 5 '\005', 72 'H', 158 '\236', 141 '\215', 75 'K', 9 '\t', 205 '�', 142 '\216', 216 '�', 246 '�', 
    205 '�'}, op = 1, op_ret = 0, op_errno = 0}
	ret = 0
	op_ret = 0
	event_type = GD_OP_EVENT_RCVD_ACC
	peerinfo = (glusterd_peerinfo_t *) 0x925d5f0
	str = "6cdcc83c-c905-489e-8d4b-09cd8ed8f6cd", '\0' <repeats 13 times>
	__PRETTY_FUNCTION__ = "glusterd3_1_stage_op_cbk"
	__FUNCTION__ = "glusterd3_1_stage_op_cbk"
#7  0x002f3e8e in rpc_clnt_handle_reply (clnt=0x925dd98, pollin=0x9260930) at rpc-clnt.c:734
	conn = (rpc_clnt_connection_t *) 0x925ddb4
	saved_frame = (struct saved_frame *) 0xb66e6058
	ret = 0
	req = (struct rpc_req *) 0xb671f20c
	xid = 5
	__FUNCTION__ = "rpc_clnt_handle_reply"
#8  0x002f40c4 in rpc_clnt_notify (trans=0x925de88, mydata=0x925ddb4, event=RPC_TRANSPORT_MSG_RECEIVED, data=0x9260930) at rpc-clnt.c:844
	conn = (rpc_clnt_connection_t *) 0x925ddb4
	clnt = (struct rpc_clnt *) 0x925dd98
	ret = -1
	req_info = (rpc_request_info_t *) 0x0
---Type <return> to continue, or q <return> to quit---
	pollin = (rpc_transport_pollin_t *) 0x9260930
	tv = {tv_sec = 0, tv_usec = 0}
#9  0x002f1a9e in rpc_transport_notify (this=0x925de88, event=RPC_TRANSPORT_MSG_RECEIVED, data=0x9260930) at rpc-transport.c:1124
	ret = -1
#10 0x0064448d in socket_event_poll_in (this=0x925de88) at socket.c:1577
	ret = 0
	pollin = (rpc_transport_pollin_t *) 0x9260930
#11 0x00644809 in socket_event_handler (fd=10, idx=2, data=0x925de88, poll_in=1, poll_out=0, poll_err=0) at socket.c:1691
	this = (rpc_transport_t *) 0x925de88
	priv = (socket_private_t *) 0x925e240
	ret = 0
	__FUNCTION__ = "socket_event_handler"
#12 0x004f748f in event_dispatch_epoll_handler (event_pool=0x9254500, events=0x925c918, i=0) at event.c:812
	event_data = (struct event_data *) 0x925c91c
	handler = (event_handler_t) 0x64472b <socket_event_handler>
	data = (void *) 0x925de88
	idx = 2
	ret = -1
	__FUNCTION__ = "event_dispatch_epoll_handler"
#13 0x004f767b in event_dispatch_epoll (event_pool=0x9254500) at event.c:876
	events = (struct epoll_event *) 0x925c918
	size = 1
	i = 0
	ret = 1
	__FUNCTION__ = "event_dispatch_epoll"
#14 0x004f7a17 in event_dispatch (event_pool=0x9254500) at event.c:984
	ret = -1
	__FUNCTION__ = "event_dispatch"
#15 0x0804d282 in main (argc=1, argv=0xbf8138e4) at glusterfsd.c:1392
	ctx = (glusterfs_ctx_t *) 0x9253008
	ret = 0