Bug 764351 (GLUSTER-2619)

Summary: Memory corruption in io-stats
Product: [Community] GlusterFS Reporter: Raghavendra G <raghavendra>
Component: unclassifiedAssignee: Raghavendra G <raghavendra>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, saurabh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: All
Documentation: DNR CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Raghavendra G 2011-03-29 19:43:24 UTC
==6946== Thread 1:
==6946== Invalid write of size 4
==6946==    at 0x629E3E7: init (io-stats.c:2476)
==6946==    by 0x405E9B5: __xlator_init (xlator.c:1353)
==6946==    by 0x405EAC5: xlator_init (xlator.c:1381)
==6946==    by 0x408E968: glusterfs_graph_init (graph.c:328)
==6946==    by 0x408EF9D: glusterfs_graph_activate (graph.c:501)
==6946==    by 0x804DB85: glusterfs_process_volfp (glusterfsd.c:1372)
==6946==    by 0x804F34F: mgmt_getspec_cbk (glusterfsd-mgmt.c:672)
==6946==    by 0x40AC20D: rpc_clnt_handle_reply (rpc-clnt.c:736)
==6946==    by 0x40AC45B: rpc_clnt_notify (rpc-clnt.c:849)
==6946==    by 0x40A9207: rpc_transport_notify (rpc-transport.c:902)
==6946==    by 0x403130A: socket_event_poll_in (socket.c:1641)
==6946==    by 0x403182E: socket_event_handler (socket.c:1756)
==6946==  Address 0x598757c is 0 bytes after a block of size 4 alloc'd
==6946==    at 0x4022B49: calloc (vg_replace_malloc.c:397)
==6946==    by 0x40847F4: __gf_default_calloc (mem-pool.h:83)
==6946==    by 0x408471A: __gf_calloc (mem-pool.c:135)
==6946==    by 0x629E316: init (io-stats.c:2466)
==6946==    by 0x405E9B5: __xlator_init (xlator.c:1353)
==6946==    by 0x405EAC5: xlator_init (xlator.c:1381)
==6946==    by 0x408E968: glusterfs_graph_init (graph.c:328)
==6946==    by 0x408EF9D: glusterfs_graph_activate (graph.c:501)
==6946==    by 0x804DB85: glusterfs_process_volfp (glusterfsd.c:1372)
==6946==    by 0x804F34F: mgmt_getspec_cbk (glusterfsd-mgmt.c:672)
==6946==    by 0x40AC20D: rpc_clnt_handle_reply (rpc-clnt.c:736)
==6946==    by 0x40AC45B: rpc_clnt_notify (rpc-clnt.c:849)

Comment 1 Vijay Bellur 2011-03-30 08:28:12 UTC
PATCH: http://patches.gluster.com/patch/6633 in master (debug/io-stats: fix memory corruption.)

Comment 2 Saurabh 2011-04-21 05:34:00 UTC
didn't find this issue in the recently executed valgrind on bricks.