[Pvfs2-developers] Odd problem
Walter Ligon
walt at clemson.edu
Wed Jul 15 16:09:41 EDT 2009
Hello crew,
whilst working with a branch (not the trunk) I came upon an odd bug.
During server initialization in the function lebf_initialize() the
function creates a dummy request and encodes it over and over again,
once for each request type in order to discover the max size. This
dummy request is never zero'd between iterations. I found that in some
instances this caused a seg fault - but changing almost anything might
undo it. Same code compiled/linked a different way may or may not fail.
Simply putting a memset() in the loop fixes it, as far as I can tell.
Anyone know why we don't zero the request, or object to adding that?
Seems to have no performance impact since it is in initialization.
Walt
More information about the Pvfs2-developers
mailing list