[Bugs] [Bug 1409760] Spurious failures in ./tests/basic/gfapi/bug1291259.t
bugzilla at redhat.com
bugzilla at redhat.com
Tue Jan 3 09:42:40 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1409760
Shyamsundar <srangana at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|bugs at gluster.org |srangana at redhat.com
--- Comment #1 from Shyamsundar <srangana at redhat.com> ---
The cause of failure or crash is as follows,
bug1291259.c calls glfs_h_poll_upcall (line 128), and checks if ret is non-zero
before calling glfs_upcall_get_reason. The latter dereferences the inarg (cbk)
and causes a crash as that is NULL.
The reason for cbk to be NULL, is due to the fact that poll_upcall has not
returned any data and still returns a ret of 0.
The consumer (the test program in this case) is meant to either check errno or
if cbk is non-NULL before processing the event. As the check is missing this
crashes at times and hence causes the regression failure.
--
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