Bug 851996 - Coredump with volume set group with null values
Coredump with volume set group with null values
Product: GlusterFS
Classification: Community
Component: cli (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: krishnan parthasarathi
Depends On:
Blocks: 867325
  Show dependency treegraph
Reported: 2012-08-27 05:37 EDT by Anush Shetty
Modified: 2015-11-03 18:04 EST (History)
3 users (show)

See Also:
Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 867325 (view as bug list)
Last Closed: 2013-07-24 13:32:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Anush Shetty 2012-08-27 05:37:27 EDT
Description of problem: Doing a volume group set with null value in group file resulted in a coredump

Version-Release number of selected component (if applicable):

Source from gerrit with http://review.gluster.com/#change,3831

How reproducible: Consistently

Steps to Reproduce:
1. cat /var/lib/glusterd/groups/virt
2. gluster volume set test group virt
Actual results:

gdb) bt
#0  0x0000003324435965 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x0000003324437118 in __GI_abort () at abort.c:91
#2  0x000000332447568b in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x3324578bc8 "*** glibc detected *** %s: %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:198
#3  0x000000332447c80e in malloc_printerr (ptr=0x7fe605eb1be0, str=0x3324576a55 "free(): invalid pointer", action=3) at malloc.c:5027
#4  _int_free (av=0x33247b0720, p=0x7fe605eb1bd0, have_lock=0) at malloc.c:3948
#5  0x000000000041cd6d in cli_add_key_group (dict=dict@entry=0xa72708, value=value@entry=0x7fff6d6644da "virt", key=<optimized out>)
    at cli-cmd-parser.c:722
#6  0x000000000041e557 in cli_cmd_volume_set_parse (words=words@entry=0x7fff6d663af0, wordcount=wordcount@entry=5, 
    options=options@entry=0x7fe605eb2de8) at cli-cmd-parser.c:787
#7  0x000000000040a422 in cli_cmd_volume_set_cbk (state=<optimized out>, word=0xa92aa0, words=0x7fff6d663af0, wordcount=5) at cli-cmd-volume.c:925
#8  0x0000000000408517 in cli_cmd_process (state=0x7fff6d663900, argc=5, argv=0x7fff6d663af0) at cli-cmd.c:150
#9  0x0000000000407fa0 in cli_batch (d=<optimized out>) at input.c:44
#10 0x0000003324807d14 in start_thread (arg=0x7fe605eb3700) at pthread_create.c:309
#11 0x00000033244f199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

# /gluster/reviewgfs/sbin/gluster volume set test group virt
*** glibc detected *** /gluster/reviewgfs/sbin/gluster: free(): invalid pointer: 0x00007fe605eb1be0 ***
======= Backtrace: =========
Comment 1 krishnan parthasarathi 2012-10-17 08:03:58 EDT
http://review.gluster.org/3943 and http://review.gluster.org/3831 were merged into master. These patches should fix the issue.

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