This looks like a bug for which a testcase could easily be added to the glibc testsuite, so the patch should add such a test that fails before and passes after the patch. -- Joseph S. Myers joseph@codesourcery.com