Giter VIP home page Giter VIP logo

Comments (6)

krytarowski avatar krytarowski commented on July 20, 2024

https://bugzilla.redhat.com/show_bug.cgi?id=28625#c5 There was a discussion on updating standards.. but I don't know what standards in particular and whether they were updated.

from cxx-abi.

krytarowski avatar krytarowski commented on July 20, 2024

CC @drepper

from cxx-abi.

fweimer avatar fweimer commented on July 20, 2024

The topic of the subject (atexit vs dlclose) seems more like something for POSIX to sort out, not the C++ ABI standard.
Note that there are POSIX implementations where dlclose has no effect by design. Even implementations which implement library unloading cannot do so under all circumstances. C++ is particularly tricky in this regard: There could be otherwise harmless symbol interposition which prevents unloading. Implied destructor references, particularly for std::shared_ptr and TLS data, occasionally result in bug reports because they generally do not prevent unloading. Another thorny subject is the order of destructors when dlclose is called. There are so many open questions and technical difficulties I fear it's hopeless to specify the semantics of dlclose.

from cxx-abi.

krytarowski avatar krytarowski commented on July 20, 2024

C++ ABI standard mentions in https://itanium-cxx-abi.github.io/cxx-abi/abi.html#dso-dtor-motivation

The API specified below is intended to provide standard-conforming treatment during normal program exit, which includes executing atexit-registered functions in the correct sequence relative to constructor-registered destructors, and reasonable treatment during early DSO unload (e.g. dlclose).

It's barely defined in my opinion in this specification.. but not fully.

from cxx-abi.

krytarowski avatar krytarowski commented on July 20, 2024

Actually there are people who claim based on this spec that atexit(3) callbacks must be called upon dlclose(3).

Please make it clearer.

from cxx-abi.

krytarowski avatar krytarowski commented on July 20, 2024

ping?

from cxx-abi.

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.