Bug 763355 (GLUSTER-1623)

Summary: crash in logging callingfn()
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: loggingAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, vraman
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: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vijay Bellur 2010-09-16 10:38:52 UTC
PATCH: http://patches.gluster.com/patch/4830 in master (logging: fix a crash in gf_log_callingfn())

Comment 1 Amar Tumballi 2010-09-16 13:10:35 UTC
pending frames:

patchset: git://git.sv.gnu.org/gluster.git
signal received: 11
time of crash: 2010-09-16 18:36:51
configuration details:
argp 1
backtrace 1
dlfcn 1
fdatasync 1
libpthread 1
llistxattr 1
setfsid 1
spinlock 1
epoll.h 1
xattr.h 1
st_atim.tv_nsec 1
package-string: glusterfs 3.1.0git
/lib/libc.so.6(+0x33af0)[0x7f15c1885af0]
/lib/libc.so.6(_IO_vfprintf+0x3fbe)[0x7f15c189b35e]
/lib/libc.so.6(vsnprintf+0xa2)[0x7f15c18be682]
/lib/libc.so.6(snprintf+0x83)[0x7f15c18a25d3]
/usr/local/lib/libglusterfs.so.0(_gf_log_callingfn+0x2b5)[0x7f15c2448055]
/usr/local/lib/libglusterfs.so.0(fd_ref+0xfd)[0x7f15c246ab34]
/usr/local/lib/glusterfs/3.1.0git/xlator/cluster/distribute.so(dht_opendir+0x250)[0x7f15bfec773e]
/usr/local/lib/libglusterfs.so.0(default_opendir+0x243)[0x7f15c244e79f]

bt from gdb :

#0  0x00007f15c189b35e in _IO_vfprintf_internal (s=0x7f15c2830bc0, format=<value optimized out>, ap=0x7f15c2830d20)
    at vfprintf.c:1614
#1  0x00007f15c18be682 in _IO_vsnprintf (string=0x7f15c2830f00 "(-->", maxlen=<value optimized out>, 
    format=0x7f15c2480d94 "(-->%s (-->%s (-->%s)))", args=0x7f15c2830d20) at vsnprintf.c:120
#2  0x00007f15c18a25d3 in __snprintf (s=0x636f6c2f7273752f <Address 0x636f6c2f7273752f out of bounds>, 
    maxlen=139731430542740, format=0x20 <Address 0x20 out of bounds>) at snprintf.c:35
#3  0x00007f15c2448055 in _gf_log_callingfn (domain=0x7f15c2482a77 "fd", 
    file=0x7f15c2482a58 "../../../libglusterfs/src/fd.c", function=0x7f15c2482beb "fd_ref", line=379, level=GF_LOG_EMERG, 
    fmt=0x7f15c2482ae4 "fd %p (%d)") at ../../../libglusterfs/src/logging.c:257
#4  0x00007f15c246ab34 in fd_ref (fd=0x7f15bc1e803c) at ../../../libglusterfs/src/fd.c:378
#5  0x00007f15bfec773e in dht_opendir (frame=0x7f15c0de0774, this=0x166bfa8, loc=0x7f15baf138a8, fd=0x7f15bc1e803c)
    at ../../../../../xlators/cluster/dht/src/dht-common.c:2346
#6  0x00007f15c244e79f in default_opendir (frame=0x7f15c0de06f0, this=0x166d198, loc=0x7f15baf138a8, fd=0x7f15bc1e803c)
    at ../../../libglusterfs/src/defaults.c:692
#7  0x00007f15c244e79f in default_opendir (frame=0x7f15c0de066c, this=0x166e3a8, loc=0x7f15baf138a8, fd=0x7f15bc1e803c)
    at ../../../libglusterfs/src/defaults.c:692
#8  0x00007f15c244e79f in default_opendir (frame=0x7f15c0de05e8, this=0x166f558, loc=0x7f15baf138a8, fd=0x7f15bc1e803c)
    at ../../../libglusterfs/src/defaults.c:692
#9  0x00007f15c244e79f in default_opendir (frame=0x7f15c0de0564, this=0x1670708, loc=0x7f15baf138a8, fd=0x7f15bc1e803c)
    at ../../../libglusterfs/src/defaults.c:692