From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 95588446439 for ; Fri, 13 Nov 2020 01:54:01 +0300 (MSK) From: Vladislav Shpilevoy References: <20201014133535.224573-1-gorcunov@gmail.com> <20201014133535.224573-4-gorcunov@gmail.com> <6572e8c8-b801-0db9-80c0-31bdaca89355@tarantool.org> Message-ID: <0b270751-29e7-38b1-ba3f-32ecfe793d85@tarantool.org> Date: Thu, 12 Nov 2020 23:54:00 +0100 MIME-Version: 1.0 In-Reply-To: <6572e8c8-b801-0db9-80c0-31bdaca89355@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v8 3/4] box/cbox: implement cbox Lua module List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cyrill Gorcunov , tml On 29.10.2020 23:15, Vladislav Shpilevoy wrote: > Thanks for the patch! > > The module leaks somewhere. It never unloads the shared file. I > tried this: > > cbox = require('cbox') > f = cbox.func.load('function1.test_push') > f() > f = nil > cbox.func.unload('function1.test_push') > collectgarbage('collect') > > Then I use 'lsof -p' to see what files are loaded, and I see > function1.dylib here. When I do all the same using _func space > and box.func.call, the file is unloaded correctly. > > (function1.dylib I took from test/box/.) This bug still is not fixed. You said I'll try to repeat. But the module is not unloaded on the same test above in v10.