hashicorp / go-plugin

Golang plugin system over RPC.
Mozilla Public License 2.0
5.25k stars 450 forks source link

An abnormal termination of the plugin process results in a resource leak in the main process. #291

Open 63isOK opened 11 months ago

63isOK commented 11 months ago

OS: linux

When the plugin process terminates abnormally, the main process may experience resource leaks, primarily related to "gob.Encode." The amount of this leakage is minimal, but if the number of plugin restarts increases, the amount of leakage also increases. Eventually, the main process may trigger an Out Of Memory (OOM) condition.