13.07.2021 17:48, Alex Peshkoff via Firebird-devel wrote:
- your process called exit() and due to it plugin is going to be unloaded, this fact is detected by dtor of UnloadDetectorHelper, which also calls doClean, but in this case some globals may be already destroyed, you need to manually control order of destruction in your plugin to avoid this
At first, my plugin doesn't use UnloadDetectorHelper. At second, the log shows that more calls happen after the destruction, not just doClean():
0x55fed9b4caf0 TracePlugin::release() at 1 0x55fed9b4caf0 TracePlugin destructed Global destruction!!! 0x55fed9b2d210 TraceFactory::getOwner() 0x55fed9b2d210 TraceFactory::release() at 1 0x55fed9b2d210 TraceFactory destructed 0x7f57e60771b0 doClean()
-- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel