From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id A8B1546970F for ; Wed, 27 Nov 2019 02:29:44 +0300 (MSK) From: Vladislav Shpilevoy Date: Wed, 27 Nov 2019 00:29:39 +0100 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/2] Module is not unloaded on function drop List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, kostja.osipov@gmail.com The patchset fixes a problem when a C function, added via box.schema.func.create(), is dropped, but its dynamic library is not unloaded from the process' memory. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4648-func-unload Issue: https://github.com/tarantool/tarantool/issues/4648 Vladislav Shpilevoy (2): errinj: provide 'get' method in Lua func: fix not unloading of unused modules src/box/func.c | 16 +-- src/box/func.h | 2 - src/box/lua/error.cc | 37 ++++-- src/lib/core/errinj.h | 1 + test/box/errinj.result | 55 +++++++++ test/box/errinj.test.lua | 17 +++ test/box/function1.c | 15 +++ test/box/gh-4648-func-load-unload.result | 137 +++++++++++++++++++++ test/box/gh-4648-func-load-unload.test.lua | 63 ++++++++++ test/box/suite.ini | 2 +- 10 files changed, 326 insertions(+), 19 deletions(-) create mode 100644 test/box/gh-4648-func-load-unload.result create mode 100644 test/box/gh-4648-func-load-unload.test.lua -- 2.21.0 (Apple Git-122.2)