bugGluster - Bugs: bug #21421, Glusterfsd crashed in posix fstat

 
 

bug #21421: Glusterfsd crashed in posix fstat

Submitted by:  Basavanagowda Kanur <gowda>
Submitted on:  Thu 25 Oct 2007 08:18:37 AM UTC  
 
Category: GlusterFSSeverity: 4 - Important
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Anand Avati <avati>Originator Name: 
Open/Closed: ClosedRelease: 
Operating System: GNU/LinuxReproducibility: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 25 Oct 2007 10:19:39 AM UTC, comment #1:

glusterfs--mainline--2.5--patch-529 fixes the bug.

  • adding fd to inode->fd list was happening even if op_ret from open/create was -1. Now fd is added to inode->fd list only if op_ret >=0.
Basavanagowda Kanur <gowda>
Project Member
Thu 25 Oct 2007 08:18:37 AM UTC, original submission:

backtrace from the core,

#0 0x00002aaaaaab2d9d in posix_fstat (frame=0x57c130, this=0x509210, fd=0x2aab3be16530)
at ../../../../../xlators/storage/posix/src/posix.c:1506
#1 0x00002aaaaadc8d84 in server_fstat (frame=0x2aaabe8f0720, bound_xl=0x509210, params=0x2aaab5e18730)
at ../../../../../xlators/protocol/server/src/server-protocol.c:3091
#2 0x00002aaaaadcf6ba in server_protocol_interpret (trans=0x60cee0, blk=0x2aaab5efbf70)
at ../../../../../xlators/protocol/server/src/server-protocol.c:5637
#3 0x00002aaaaadd02ca in notify (this=0x509400, event=2, data=0x60cee0)
at ../../../../../xlators/protocol/server/src/server-protocol.c:5955
#4 0x00002aaaaaed7aec in ib_verbs_recv_completion_proc (data=0x50afc0)
at ../../../../../transport/ib-verbs/ib-verbs.c:984
#5 0x00002b3c0025ef1a in start_thread () from /lib/libpthread.so.0
#6 0x00002b3c00437602 in clone () from /lib/libc.so.6
#7 0x0000000000000000 in ?? ()

info threads from the core:
7 process 25847 0x00002b3c004379dc in epoll_wait () from /lib/libc.so.6
6 process 25848 0x00002b3c003ffe25 in nanosleep () from /lib/libc.so.6
5 process 25849 0x00002b3c00261b3a in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
4 process 25850 0x00002b3c002641bf in __read_nocancel () from /lib/libpthread.so.0
3 process 25852 0x00002b3c002641bf in __read_nocancel () from /lib/libpthread.so.0
2 process 25853 0x00002b3c00261b3a in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0

  • 1 process 25851 0x00002aaaaaab2d9d in posix_fstat (frame=0x57c130, this=0x509210, fd=0x2aab3be16530)

at ../../../../../xlators/storage/posix/src/posix.c:1506

(gdb) p *fd
Cannot access memory at address 0x2aab3be16530

The dead server was also namespace server. 64 clients mounted glusterfs using this server and 15 other servers. Dbench was running on all 64 clients.

Basavanagowda Kanur <gowda>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #14202:  server.vol added by gowda (870B - application/octet-stream - Server volume spec file attached)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gowda (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Oct 2007 10:19:39 AM UTCgowdaStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 25 Oct 2007 08:18:38 AM UTCgowdaAttached File-=>Added server.vol, #14202

    Back to the top


    Powered by Savane 3.1-cleanup1