jalcine / wintermute

:book: Central sources for a networked application framework.
http://jacky.wtf/weblog/ambitions-wintermute/
MIT License
17 stars 3 forks source link

Plugin Fails to Unload During Test #53

Closed jalcine closed 9 years ago

jalcine commented 9 years ago

The unit test unit_plugin fails to pass due to a SIGSEGV being thrown when a plugin that shares the same library as another plugin handle attempts to unload its underlying library handle. Plugin is not aware that dl shares the library references. Two steps can be taken here:

  1. Correct the implementation of Wintermute::Plugin so that it's aware of dl's nature. This is an opporunity to make it cross-platform using libuv since the bindings are already there.
  2. Correct the test to fully unload and reload libraries as we go. This is a bandaid solution.

Obviously, option 1 is the choice to be favored.