Bug 768324

Summary: memory corruption in client process.[Release:3.3.0qa15]
Product: [Community] GlusterFS Reporter: Vijaykumar Koppad <vkoppad>
Component: coreAssignee: Amar Tumballi <amarts>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: bbandari, gluster-bugs, sgowda, vraman
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: 2011-12-19 04:29:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
valgrind log for client process none

Description Vijaykumar Koppad 2011-12-16 11:04:52 UTC
Description of problem:  I have distribute-replicate volume with fuse mount. I ran all the processes including glusterfsd , and glusterfs using valgrind. 


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

Steps to Reproduce:
1. Run fuse client process using valgrind and untar the linux kernel on the mount point.

Additional info:

This is client logs. 

==32554== Invalid read of size 4
==32554==    at 0x671FE72: fuse_readdir_cbk (fuse-bridge.c:2229)
==32554==    by 0xA09BFDD: io_stats_readdir_cbk (io-stats.c:1396)
==32554==    by 0x9E854C3: sp_readdir_cbk (stat-prefetch.c:1350)
==32554==    by 0x4C3883A: default_readdirp_cbk (defaults.c:396)
==32554==    by 0x4C3883A: default_readdirp_cbk (defaults.c:396)
==32554==    by 0x4C3883A: default_readdirp_cbk (defaults.c:396)
==32554==    by 0x4C3883A: default_readdirp_cbk (defaults.c:396)
==32554==    by 0x941BA88: dht_readdirp_cbk (dht-common.c:2373)
==32554==    by 0x91A3CDA: afr_readdirp_cbk (afr-dir-read.c:627)
==32554==    by 0x8F7A1C9: client3_1_readdirp_cbk (client3_1-fops.c:1955)
==32554==    by 0x4E92EB1: rpc_clnt_handle_reply (rpc-clnt.c:789)
==32554==    by 0x4E930C1: rpc_clnt_notify (rpc-clnt.c:908)
==32554==  Address 0xb085a18 is 152 bytes inside a block of size 154 alloc'd
==32554==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32554==    by 0x4C52071: __gf_calloc (mem-pool.h:84)
==32554==    by 0x4C526F5: gf_dirent_for_name (gf-dirent.c:59)
==32554==    by 0x941B58E: dht_readdirp_cbk (dht-common.c:2309)
==32554==    by 0x91A3CDA: afr_readdirp_cbk (afr-dir-read.c:627)
==32554==    by 0x8F7A1C9: client3_1_readdirp_cbk (client3_1-fops.c:1955)
==32554==    by 0x4E92EB1: rpc_clnt_handle_reply (rpc-clnt.c:789)
==32554==    by 0x4E930C1: rpc_clnt_notify (rpc-clnt.c:908)
==32554==    by 0x4E8EB46: rpc_transport_notify (rpc-transport.c:498)
==32554==    by 0x813EB8E: socket_event_poll_in (socket.c:1675)
==32554==    by 0x813ED37: socket_event_handler (socket.c:1790)
==32554==    by 0x4C50990: event_dispatch_epoll (event.c:794)
==32554==
==32554== Warning: invalid file descriptor -1 in syscall close()
==32554==

Comment 1 Vijaykumar Koppad 2011-12-16 13:14:25 UTC
Created attachment 547797 [details]
valgrind log for client process

Attaching valgrind log

Comment 2 shishir gowda 2011-12-19 04:29:16 UTC

*** This bug has been marked as a duplicate of bug 765462 ***