Git Product home page Git Product logo

Comments (7)

vitalybuka avatar vitalybuka commented on May 18, 2024

This happens after upgrade to glibc 2.38

from sanitizers.

vitalybuka avatar vitalybuka commented on May 18, 2024

Does this look familiar @ramosian-glider @dvyukov ?

from sanitizers.

vitalybuka avatar vitalybuka commented on May 18, 2024

git log glibc-2.37...glibc-2.38 -- /usr/local/google/home/vitalybuka/src/glibc/libio/genops.c

commit bminor/glibc@af130d2
Author: Andreas Schwab [email protected]
Date: Tue Jan 30 10:16:00 2018 +0100

Always do locking when accessing streams (bug 15142, bug 14697)

Now that abort no longer calls fflush there is no reason to avoid locking
the stdio streams anywhere.  This fixes a conformance issue and potential
heap corruption during exit.

commit bminor/glibc@8867734
Author: Adhemerval Zanella Netto [email protected]
Date: Tue Dec 27 18:11:42 2022 -0300

Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions

They are both used by __libc_freeres to free all library malloc
allocated resources to help tooling like mtrace or valgrind with
memory leak tracking.

The current scheme uses assembly markers and linker script entries
to consolidate the free routine function pointers in the RELRO segment
and to be freed buffers in BSS.

This patch changes it to use specific free functions for
libc_freeres_ptrs buffers and call the function pointer array directly
with call_function_static_weak.

It allows the removal of both the internal macros and the linker
script sections.

Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu.
Reviewed-by: Carlos O'Donell <[email protected]>

from sanitizers.

vitalybuka avatar vitalybuka commented on May 18, 2024

Probably bminor/glibc@af130d2

from sanitizers.

vitalybuka avatar vitalybuka commented on May 18, 2024

I believe the test is invalid after this changes.

from sanitizers.

dvyukov avatar dvyukov commented on May 18, 2024

It hangs w/o tsan as well, right?

Does this mean a program generally cannot exit if any of the threads/libraries doing blocking stream calls (e.g. reading from stdio)? This looks restrictive.

Asked in the issue: https://sourceware.org/bugzilla/show_bug.cgi?id=15142

from sanitizers.

vitalybuka avatar vitalybuka commented on May 18, 2024

It hangs w/o tsan as well, right?

Does this mean a program generally cannot exit if any of the threads/libraries doing blocking stream calls (e.g. reading from stdio)? This looks restrictive.

Asked in the issue: https://sourceware.org/bugzilla/show_bug.cgi?id=15142

Actually it does not hang without tsan.

from sanitizers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.