[Bugs] [Bug 1362540] glfs_fini() crashes with SIGSEGV

bugzilla at redhat.com bugzilla at redhat.com
Thu Aug 4 10:14:55 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1362540

Soumya Koduri <skoduri at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |Triaged
             Status|NEW                         |ASSIGNED
           Assignee|bugs at gluster.org            |skoduri at redhat.com



--- Comment #3 from Soumya Koduri <skoduri at redhat.com> ---
I suspect below could have caused the issue - 

In inode_table_destroy(), we first purge all the lru entries but the lru count
is not adjusted accordingly. So when inode_table_prune() is called in case if
the lru count was larger than lru limit (as can be seen in the core), we shall
end up accessing invalid memory. 

(gdb) f 3
#3  0x00007fcad764100e in inode_table_prune (table=table at entry=0x7fcac0004040)
at inode.c:1521
1521                            __inode_retire (entry);
(gdb) p table->lru_size
$4 = 132396
(gdb) p table->lru_limit
$5 = 131072
(gdb) p table->lru
$6 = {next = 0x90, prev = 0xcafecafe}
(gdb) p &&table->lru
A syntax error in expression, near `&&table->lru'.
(gdb) p &table->lru
$7 = (struct list_head *) 0x7fcac00040b8
(gdb) 

I will send a fix for it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list