Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1526268

Summary: glusterd crashes on jenkins while running /tests/bugs/replicate/bug-884328.t
Product: [Community] GlusterFS Reporter: Ravishankar N <ravishankar>
Component: glusterdAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-4.1.3 (or higher) Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-29 03:17:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ravishankar N 2017-12-15 05:28:08 UTC
Description of problem:
The .t is failing for many patches on master.  https://build.gluster.org/job/centos6-regression/8027/consoleFull is one such run.

0  0x00007f608d33b686 in __strcmp_sse42 () from ./lib64/libc.so.6
(gdb) bt
#0  0x00007f608d33b686 in __strcmp_sse42 () from ./lib64/libc.so.6
#1  0x00007f608314a0af in _free_xlator_opt_key (key=0x696464612065726f <Address 0x696464612065726f out of bounds>) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-volgen.c:3110
#2  0x00007f608311e6c9 in glusterd_get_volopt_content (ctx=0x7f6068000ae8, xml_out=false) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-utils.c:13155
#3  0x00007f608311115c in glusterd_volset_help (dict=0x7f6068000ae8, op_errstr=0x7f6074204f68) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-utils.c:9199
#4  0x00007f60830ca483 in __glusterd_handle_set_volume (req=0x7f6074001998) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-handler.c:2027
#5  0x00007f60830c4609 in glusterd_big_locked_handler (req=0x7f6074001998, actor_fn=0x7f60830ca140 <__glusterd_handle_set_volume>) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-handler.c:80
#6  0x00007f60830ca73d in glusterd_handle_set_volume (req=0x7f6074001998) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-handler.c:2074
#7  0x00007f608e70e9da in synctask_wrap () at /home/jenkins/root/workspace/centos6-regression/libglusterfs/src/syncop.c:375
#8  0x00007f608d256760 in ?? () from ./lib64/libc.so.6
#9  0x0000000000000000 in ?? ()
(gdb) f 1
#1  0x00007f608314a0af in _free_xlator_opt_key (key=0x696464612065726f <Address 0x696464612065726f out of bounds>) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-volgen.c:3110
3110            if (!strcmp (key, AUTH_ALLOW_OPT_KEY) ||
(gdb) l
3105    void
3106    _free_xlator_opt_key (char *key)
3107    {
3108            GF_ASSERT (key);
3109
3110            if (!strcmp (key, AUTH_ALLOW_OPT_KEY) ||
3111                !strcmp (key, AUTH_REJECT_OPT_KEY) ||
3112                !strcmp (key, NFS_DISABLE_OPT_KEY))
3113                    GF_FREE (key);
3114
(gdb) p *key
Cannot access memory at address 0x696464612065726f
(gdb) f 2
#2  0x00007f608311e6c9 in glusterd_get_volopt_content (ctx=0x7f6068000ae8, xml_out=false) at /home/jenkins/root/workspace/centos6-regression/xlators/mgmt/glusterd/src/glusterd-utils.c:13155
warning: Source file is more recent than executable.
13155                           _free_xlator_opt_key (key);
(gdb) l
13150                           dlclose (dl_handle);
13151                           dl_handle = NULL;
13152                           vol_opt_handle.given_opt = NULL;
13153                   }
13154                   if (key) {
13155                           _free_xlator_opt_key (key);
13156                           key = NULL;
13157                   }
13158                   if (ret)
13159                           goto out;
(gdb) p *key
Cannot access memory at address 0x696464612065726f
(gdb) p *vme
$1 = {key = 0x7f608322d920 "cluster.halo-min-replicas", voltype = 0x7f60832290f7 "cluster/replicate", option = 0x0, value = 0x0, type = DOC, flags = 4, op_version = 31100, description = 0x0, validate_fn = 0x0}
(gdb)

Comment 1 Atin Mukherjee 2017-12-18 05:20:58 UTC
Fixed through commit 238ebd4db6b399eba221516912cab0726949a3c9 , patch : https://review.gluster.org/#/c/19040/