Skip to content
Snippets Groups Projects
  • Marco Biasini's avatar
    df09b75b
    make sure singletons don't reference any Python objects · df09b75b
    Marco Biasini authored
    The order of destruction of static objects, e.g. singletons is
    arbitrary and can not be relied upon. For some versions of
    Python, the singletons are destroyed after Python has shutdown.
    When objects stored in the singletons have been created in Python,
    a segfault is produced when they are destroyed, since the destructor
    assumes a Python interpreter exists. To work around that, we register
    atexit handlers to remove all references to Python objects. That's
    required for the IOProfileRegistry and Conopology singletons.
    df09b75b
    History
    make sure singletons don't reference any Python objects
    Marco Biasini authored
    The order of destruction of static objects, e.g. singletons is
    arbitrary and can not be relied upon. For some versions of
    Python, the singletons are destroyed after Python has shutdown.
    When objects stored in the singletons have been created in Python,
    a segfault is produced when they are destroyed, since the destructor
    assumes a Python interpreter exists. To work around that, we register
    atexit handlers to remove all references to Python objects. That's
    required for the IOProfileRegistry and Conopology singletons.