Bug 772586 - volume statedump succeeds even if i give sub string of the available options and then crashes
Summary: volume statedump succeeds even if i give sub string of the available options ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: mainline
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kaushal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-01-09 10:36 UTC by Vijaykumar Koppad
Modified: 2014-08-25 00:49 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:25:56 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Vijaykumar Koppad 2012-01-09 10:36:31 UTC
Description of problem:

gluster volume statedump vol m
Volume statedump sucessful
root@vostro:~# ps ax | grep gluster
21722 ?        Ssl    0:01 /usr/local/sbin/glusterd -p /var/run/glusterd.pid
22892 ?        Ssl    0:00 /usr/local/sbin/glusterfs --volfile-id=/vol --volfile-server=vostro /mnt/client
22985 ?        Ssl    0:00 /usr/local/sbin/glusterfs --volfile-id=/vol --volfile-server=vostro /mnt/geo1/
23063 ?        Ssl    0:00 /usr/local/sbin/glusterfs -f /etc/glusterd/nfs/nfs-server.vol -p /etc/glusterd/nfs/run/nfs.pid -l /usr/local/var/log/glusterfs/nfs.log
23069 ?        Ssl    0:00 /usr/local/sbin/glusterfs -s localhost --volfile-id gluster/glustershd -p /etc/glusterd/glustershd/run/glustershd.pid -l /usr/local/var/log/glusterfs/glustershd.log -S /tmp/dfd956423f59a5b14587ec43b898d949.socket
23116 pts/4    S+     0:00 grep --color=auto gluster
root@vostro:~# gluster volume info
 
Volume Name: vol
Type: Replicate
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: vostro:/home/vijay/bricks/doa/1
Brick2: vostro:/home/vijay/bricks/doa/2



How reproducible:always

This is the Back trace of the core.
###############################################

#0  0x00007f1ce70a7c6d in gf_proc_dump_parse_set_option (key=0x7f1ce533fca0 "m", value=0x7f1ce533fca2 "yes") at statedump.c:433
#1  0x00007f1ce70a7ebe in gf_proc_dump_options_init (dump_name=0x7f1ce533fdf0 "home-vijay-bricks-doa-2") at statedump.c:484
#2  0x00007f1ce70a8054 in gf_proc_dump_info (signum=10) at statedump.c:511
#3  0x0000000000407462 in glusterfs_sigwaiter (arg=0x7fffd09d3ae0) at glusterfsd.c:1342
#4  0x00007f1ce680bd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007f1ce655704d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()
(gdb) f 0 
#0  0x00007f1ce70a7c6d in gf_proc_dump_parse_set_option (key=0x7f1ce533fca0 "m", value=0x7f1ce533fca2 "yes") at statedump.c:433
433	        GF_PROC_DUMP_SET_OPTION (*opt_key, opt_value);
(gdb) f 1
#1  0x00007f1ce70a7ebe in gf_proc_dump_options_init (dump_name=0x7f1ce533fdf0 "home-vijay-bricks-doa-2") at statedump.c:484
484	                gf_proc_dump_parse_set_option (key, value);
(gdb) f 2
#2  0x00007f1ce70a8054 in gf_proc_dump_info (signum=10) at statedump.c:511
511	        ret = gf_proc_dump_options_init (brick_name);
(gdb) f 3
#3  0x0000000000407462 in glusterfs_sigwaiter (arg=0x7fffd09d3ae0) at glusterfsd.c:1342
1342	                        gf_proc_dump_info (sig);

Comment 1 Anand Avati 2012-02-17 08:57:08 UTC
CHANGE: http://review.gluster.com/2706 (cli: Fix for statedump crashing gluster processes) merged in master by Vijay Bellur (vijay)


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