bneradt opened a new pull request, #12854: URL: https://github.com/apache/trafficserver/pull/12854
When a PluginFactory is destroyed during static destruction (after main exits), the EThreads are already gone. LoadedPlugins::remove() was crashing because it tried to acquire a mutex lock using this_ethread(), which returns nullptr during static destruction. Now check if this_ethread() returns nullptr and handle cleanup directly in that case, since we're exiting anyway and don't need the mutex protection or scheduled deletion. This issue was discovered while testing the header_rewrite run-plugin feature, which creates a PluginFactory that persists as a static object and is destroyed during static destruction. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
