[Bug stdio/25203] New: Fatal error: glibc detected an invalid stdio handle

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] New: Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

            Bug ID: 25203
           Summary: Fatal error: glibc detected an invalid stdio handle
           Product: glibc
           Version: 2.17
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: onuratacik at gmail dot com
  Target Milestone: ---

Hello,

I have CentOS Linux release 7.7.1908 (Core)

and 2.17 glibc for x86_64 and i686

I got error which is Fatal error: glibc detected an invalid stdio handle when I
start my counter strike dedicated server and it doesnt start.

Can you help me and tell me what I need to do please?

Thank you,
Have a good work.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-11-18
                 CC|                            |fweimer at redhat dot com
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=23313
     Ever confirmed|0                           |1
              Flags|                            |security-
           Severity|critical                    |normal

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
What is your exact glibc version? We fixed some incompatibilities in
glibc-2.17-292.el7. Upstream, the fix landed as the fix for bug 23313:

commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0
Author: Florian Weimer <[hidden email]>
Date:   Tue Jun 26 10:24:52 2018 +0200

    libio: Disable vtable validation in case of interposition [BZ #23313]

I have not been able to get access to the binaries you mentioned, so I don't
know if the fix applies to them as well.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #2 from onuratacik at gmail dot com ---
I use 2.17-292 and I dont know how to update glibc and disable vtable
validation.

Can you please help me?

Thank you,
Have a good work.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
The expectation is that the fixed glibc disables the validation automatically
if it detects and old binary. There is no manual step involved. Apparently,
this is not working for your programs.

Are the program binaries you use publicly available from somewhere? Thanks.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #4 from onuratacik at gmail dot com ---
I used my counter strike 1.5 dedicated server for 10 years and I try to use
them on my centos 7 but server doesnt start.

What can I do?

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to onuratacik from comment #4)
> I used my counter strike 1.5 dedicated server for 10 years and I try to use
> them on my centos 7 but server doesnt start.
>
> What can I do?

Are these programs publicly available? Thanks.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #6 from onuratacik at gmail dot com ---
https://v5.steamlessproject.nl/index.php?page=stepbystepserver#linux

You can download same files with link.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Fatal error: glibc detected an invalid stdio handle

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #7 from onuratacik at gmail dot com ---
I hope you are looking fix for me! I will be really happy.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=20191
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com
            Summary|Fatal error: glibc detected |Disable libio vtable
                   |an invalid stdio handle     |validation for interposed
                   |                            |pre-2.1 stdio handles

--- Comment #8 from Florian Weimer <fweimer at redhat dot com> ---
The issue affects certain binaries (mostly written in C++) linked against glibc
versions before 2.1. I posted a patch:

  libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]
  https://gnutoolchain-gerrit.osci.io/r/c/glibc/+/699

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1775816,
                   |                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1775819

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #9 from onuratacik at gmail dot com ---
How can I patch that? Can you please help me.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #10 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to onuratacik from comment #9)
> How can I patch that? Can you please help me.

I think you need to take this part to the CentOS support forums.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #11 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cb61630ed712d033f54295f776967532d3f4b46a

commit cb61630ed712d033f54295f776967532d3f4b46a
Author: Florian Weimer <[hidden email]>
Date:   Fri Nov 22 22:10:42 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for glibc 2.31.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #13 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.30/master branch has been updated by Florian Weimer
<[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5a08bdb1e73e87afc1ada7b7b95d43ae470ce7e1

commit 5a08bdb1e73e87afc1ada7b7b95d43ae470ce7e1
Author: Florian Weimer <[hidden email]>
Date:   Thu Nov 28 14:18:12 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21
    (cherry picked from commit cb61630ed712d033f54295f776967532d3f4b46a)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #14 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.29/master branch has been updated by Florian Weimer
<[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=44a61d4589880be014c5c5c522b6afba8d63625b

commit 44a61d4589880be014c5c5c522b6afba8d63625b
Author: Florian Weimer <[hidden email]>
Date:   Thu Nov 28 14:17:27 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21
    (cherry picked from commit cb61630ed712d033f54295f776967532d3f4b46a)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #15 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.28/master branch has been updated by Florian Weimer
<[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f55e312bcd6582b5ff68fdcc1781c7017796dc91

commit f55e312bcd6582b5ff68fdcc1781c7017796dc91
Author: Florian Weimer <[hidden email]>
Date:   Thu Nov 28 14:42:11 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21
    (cherry picked from commit cb61630ed712d033f54295f776967532d3f4b46a)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #16 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.27/master branch has been updated by Florian Weimer
<[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bef0b1cb31bed76a355776154af9191ed1758222

commit bef0b1cb31bed76a355776154af9191ed1758222
Author: Florian Weimer <[hidden email]>
Date:   Thu Nov 28 14:42:32 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21
    (cherry picked from commit cb61630ed712d033f54295f776967532d3f4b46a)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #17 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.26/master branch has been updated by Florian Weimer
<[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2dc2d678e91f3f093d0f4855ac086efb288a5e23

commit 2dc2d678e91f3f093d0f4855ac086efb288a5e23
Author: Florian Weimer <[hidden email]>
Date:   Thu Nov 28 14:44:48 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21
    (cherry picked from commit cb61630ed712d033f54295f776967532d3f4b46a)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug stdio/25203] Disable libio vtable validation for interposed pre-2.1 stdio handles

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25203

--- Comment #18 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.24/master branch has been updated by Florian Weimer
<[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0d7f1ed30969886c8dde62fbf7d2c79967d4bace

commit 0d7f1ed30969886c8dde62fbf7d2c79967d4bace
Author: Florian Weimer <[hidden email]>
Date:   Fri Nov 22 22:10:42 2019 +0100

    libio: Disable vtable validation for pre-2.1 interposed handles [BZ #25203]

    Commit c402355dfa7807b8e0adb27c009135a7e2b9f1b0 ("libio: Disable
    vtable validation in case of interposition [BZ #23313]") only covered
    the interposable glibc 2.1 handles, in libio/stdfiles.c.  The
    parallel code in libio/oldstdfiles.c needs similar detection logic.

    Fixes (again) commit db3476aff19b75c4fdefbe65fcd5f0a90588ba51
    ("libio: Implement vtable verification [BZ #20191]").

    Change-Id: Ief6f9f17e91d1f7263421c56a7dc018f4f595c21
    (cherry picked from commit cb61630ed712d033f54295f776967532d3f4b46a)

--
You are receiving this mail because:
You are on the CC list for the bug.
12