[Bugs] [Bug 1221008] New: libgfapi: Segfault when glfs_*() invoked in invalid glfd
bugzilla at redhat.com
bugzilla at redhat.com
Wed May 13 06:21:42 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1221008
Bug ID: 1221008
Summary: libgfapi: Segfault when glfs_*() invoked in invalid
glfd
Product: GlusterFS
Version: mainline
Component: libgfapi
Severity: low
Assignee: bugs at gluster.org
Reporter: ppai at redhat.com
QA Contact: sdharane at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
When glfs_* methods operating on glfd are invoked after calling
glfs_close(), the program segfaults inside __GLFS_ENTRY_VALIDATE_FD
trying to deference glfd->fd->inode which is invalid.
Version-Release number of selected component (if applicable):
Master branch of glusterfs
Steps to Reproduce (Example using python binding)
#!/usr/bin/env python
from glusterfs import gfapi
import os
v = gfapi.Volume("pp", "real")
v.mount()
f = v.open("file", os.O_RDONLY) # assuming file exists
f.close()
f.read() # This will segfault
Actual results:
Segfault with code dump
Expected results:
Gracefully exit with errno set to EBADF
--
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