"Fatal error: glibc detected an invalid stdio handle" when running applications on RHEL 7.5

Solution Unverified - Updated -

Issue

  • Running a custom application ends up with a glibc Fatal error.
$ testapp
Fatal error: glibc detected an invalid stdio handle
$
  • While logging in to the system, our custom script fails and we are getting below error.
Password:
Last login: Wed May  9 10:38:13 2018 from 192.168.1.1
Fatal error: glibc detected an invalid stdio handle

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • glibc-2.17-222.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In