Bug 762112 (GLUSTER-380)

Summary: [3.0.0 pre1] Crash in fuse_create_cbk
Product: [Community] GlusterFS Reporter: Vijay Bellur <vijay>
Component: fuseAssignee: Vijay Bellur <vbellur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vijay Bellur 2009-11-13 18:33:45 UTC
While compiling openssl in a replicated-distribute, the following crash is seen:

(gdb) backtrace full
#0  0x00002aaaab14f293 in pthread_mutex_lock () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x00002aaaaacee6f1 in inode_ref (inode=0x2aaaed006ad0) at inode.c:408
	table = (inode_table_t *) 0x0
#2  0x00002aaaac9de1a4 in fuse_ino_to_inode (ino=46913609034448, table=0x6150e0) at fuse-bridge.c:377
	inode = (inode_t *) 0x2aaaed006ad0
#3  0x00002aaaac9de348 in fuse_loc_fill (loc=0x2aaaed008d28, state=0x2aaaed008d10, ino=46913609034448, par=0, name=0x0) at fuse-bridge.c:431
	inode = (inode_t *) 0x0
	parent = (inode_t *) 0x0
	ret = -1
	path = 0x0
	__FUNCTION__ = "fuse_loc_fill"
#4  0x00002aaaac9e127c in fuse_setattr (this=0x60bde0, finh=0x2aaaed008c10, msg=0x2aaaed008c38) at fuse-bridge.c:1034
	fsi = (struct fuse_setattr_in *) 0x2aaaed008c38
	attr = {st_dev = 0, st_ino = 0, st_nlink = 0, st_mode = 0, st_uid = 0, st_gid = 0, pad0 = 0, st_rdev = 0, st_size = 0, st_blksize = 0, 
  st_blocks = 0, st_atim = {tv_sec = 0, tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 0, tv_nsec = 0}, __unused = {0, 0, 0}}
	state = (fuse_state_t *) 0x2aaaed008d10
	ret = -1
	valid = 0
	__FUNCTION__ = "fuse_setattr"
#5  0x00002aaaac9ec05f in fuse_thread_proc (data=0x60bde0) at fuse-bridge.c:3131
	mount_point = 0x0
	this = (xlator_t *) 0x60bde0
	priv = (fuse_private_t *) 0x615020
	res = 128
	iobuf = (struct iobuf *) 0x2aaaf051c478
	finh = (fuse_in_header_t *) 0x2aaaed008c10
	iov_in = {{iov_base = 0x2aaaed008c10, iov_len = 64}, {iov_base = 0x2aaaf4ee0000, iov_len = 131072}}
	msg = (void *) 0x2aaaed008c38
	msg0_size = 168
	__FUNCTION__ = "fuse_thread_proc"
#6  0x00002aaaab14d367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#7  0x00002aaaab434f7d in clone () from /lib64/libc.so.6
No symbol table info available.
(gdb)

Comment 1 Anand Avati 2009-11-16 05:41:23 UTC
PATCH: http://patches.gluster.com/patch/2223 in master (mount/fuse: Assign the right inode to fuse_entry_out in fuse_create_cbk().)