Bug 764327 (GLUSTER-2595) - Quota: re-setting the space-limit crashes the glusterd on the same node
Summary: Quota: re-setting the space-limit crashes the glusterd on the same node
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2595
Product: GlusterFS
Classification: Community
Component: quota
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Junaid
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-28 07:14 UTC by Saurabh
Modified: 2013-08-06 22:37 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 Saurabh 2011-03-28 07:14:58 UTC
Hello,

  I had a distribute volume on two nodes, and re-setting the space limit on the volume makes the host glusterd crash,


  here is the bt of the crash
  (gdb) bt
#0  0x0000003a8a630265 in raise () from /lib64/libc.so.6
#1  0x0000003a8a631d10 in abort () from /lib64/libc.so.6
#2  0x0000003a8a66a84b in __libc_message () from /lib64/libc.so.6
#3  0x0000003a8a67230f in _int_free () from /lib64/libc.so.6
#4  0x0000003a8a67276b in free () from /lib64/libc.so.6
#5  0x00002b9311c8b104 in __gf_free (free_ptr=0x62af6a0) at mem-pool.c:259
#6  0x00002b9311c60adb in data_destroy (data=0x62af6c0) at dict.c:140
#7  0x00002b9311c61481 in _dict_set (this=0x62a06c0, key=<value optimized out>, value=0x62b71e0) at dict.c:245
#8  dict_set (this=0x62a06c0, key=<value optimized out>, value=0x62b71e0) at dict.c:300
#9  0x00002aaaaaae2831 in glusterd_quota_limit_usage (volinfo=0x62aa450, dict=0x62b6890, op_errstr=0x7fff34c87308) at glusterd-op-sm.c:4461
#10 0x00002aaaaaae363d in glusterd_op_quota (dict=0x62b6890, op_errstr=0x7fff34c87308) at glusterd-op-sm.c:4573
#11 0x00002aaaaaae8bb1 in glusterd_op_commit_perform (op=<value optimized out>, dict=0x62b6890, op_errstr=0x776, rsp_dict=0xffffffffffffffff)
    at glusterd-op-sm.c:6731
#12 0x00002aaaaaaea32a in glusterd_op_ac_send_commit_op (event=<value optimized out>, ctx=<value optimized out>) at glusterd-op-sm.c:5940
#13 0x00002aaaaaadb37f in glusterd_op_sm () at glusterd-op-sm.c:7534
#14 0x00002aaaaaafb466 in glusterd3_1_stage_op_cbk (req=<value optimized out>, iov=<value optimized out>, count=<value optimized out>, 
    myframe=0x2b9312d6f1c0) at glusterd-rpc-ops.c:972
#15 0x00002b9311ec9122 in rpc_clnt_handle_reply (clnt=0x62ab170, pollin=<value optimized out>) at rpc-clnt.c:736
#16 0x00002b9311ec931d in rpc_clnt_notify (trans=<value optimized out>, mydata=0x62ab1a0, event=<value optimized out>, data=0xffffffffffffffff)
    at rpc-clnt.c:849
#17 0x00002b9311ec40f7 in rpc_transport_notify (this=0x776, event=RPC_TRANSPORT_MSG_SENT, data=0xffffffffffffffff) at rpc-transport.c:899
#18 0x00002aaaaadd7e8f in socket_event_poll_in (this=0x62ab330) at socket.c:1641
#19 0x00002aaaaadd8038 in socket_event_handler (fd=<value optimized out>, idx=2, data=0x62ab330, poll_in=1, poll_out=0, poll_err=0) at socket.c:1756
#20 0x00002b9311c8a151 in event_dispatch_epoll_handler (event_pool=0x6298360) at event.c:794
#21 event_dispatch_epoll (event_pool=0x6298360) at event.c:856
#22 0x0000000000405228 in main (argc=1, argv=0x7fff34c87c48) at glusterfsd.c:1476

Comment 1 Vijay Bellur 2011-03-29 08:14:57 UTC
PATCH: http://patches.gluster.com/patch/6619 in master (mgmt/glusterd: Fix double free on quota limit-usage.)


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