Bug 36065 - segfault during IO cleanup when glibc 2.0 compatibilty is used

Summary: segfault during IO cleanup when glibc 2.0 compatibilty is used