Bug 762423 (GLUSTER-691)

Summary: crash in stripe_writev
Product: [Community] GlusterFS Reporter: Raghavendra Bhat <rabhat>
Component: stripeAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
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 Raghavendra Bhat 2010-03-02 14:01:09 UTC
The glusterfs client crashed while running LTP tests. error-gen was used(ENOMEM).
This is the backtrace of the core generated.

[?1034hGNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /opt/glusterfs/stripe/lib/libglusterfs.so.0...done.
Loaded symbols for /opt/glusterfs/stripe/lib/libglusterfs.so.0
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/xlator/protocol/client.so...done.
Loaded symbols for /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/xlator/protocol/client.so
Reading symbols from /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/xlator/cluster/stripe.so...done.
Loaded symbols for /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/xlator/cluster/stripe.so
Reading symbols from /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/xlator/mount/fuse.so...done.
Loaded symbols for /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/xlator/mount/fuse.so
Reading symbols from /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/transport/socket.so...done.
Loaded symbols for /opt/glusterfs/stripe/lib/glusterfs/3.0.0git/transport/socket.so
Reading symbols from /lib64/libnss_files.so.2...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /usr/lib64/libgcc_s.so.1...done.
Loaded symbols for /usr/lib64/libgcc_s.so.1
Core was generated by `/opt/glusterfs/stripe/sbin/glusterfs -f str_clnt.vol /d/glusterfs/mnt/client1/'.
Program terminated with signal 11, Segmentation fault.
[New process 28965]
[New process 28960]
[New process 28959]
#0  0x00007f37934c9d00 in stripe_writev (frame=0x7f378c001fb0, this=0x6116b0, fd=0x7f378c004990, vector=0x7f379288ffe0, count=1, 
    offset=836116, iobref=0x7f378c001540) at stripe.c:3186
3186	                STACK_WIND(frame, stripe_writev_cbk, fctx->xl_array[idx],
(gdb) bt
#0  0x00007f37934c9d00 in stripe_writev (frame=0x7f378c001fb0, this=0x6116b0, fd=0x7f378c004990, vector=0x7f379288ffe0, count=1, 
    offset=836116, iobref=0x7f378c001540) at stripe.c:3186
#1  0x00007f37932aa122 in fuse_write (this=0x60b670, finh=0x7f378c002370, msg=0x7f37940db000) at fuse-bridge.c:1972
#2  0x00007f37932afbb9 in fuse_thread_proc (data=0x60b670) at fuse-bridge.c:3181
#3  0x00007f37944723a0 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f37941dfbdd in clone () from /lib64/libc.so.6
(gdb) p fctx->xl_array[idx]
$1 = (xlator_t *) 0x0
(gdb) p fctx->xl_array[0]
$2 = (xlator_t *) 0x60f8a0
(gdb) p fctx->xl_array[1]
$3 = (xlator_t *) 0x610510
(gdb) 

This is observed in the master branch.

Comment 2 Amar Tumballi 2010-03-24 13:34:08 UTC
Committed to 'release-3.0' branch.

http://git.gluster.com/?p=glusterfs.git;a=commit;h=bb63408f73c5ad8ff89dfbaaee4b177fffb63bb2