From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp61.i.mail.ru (smtp61.i.mail.ru [217.69.128.41]) (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 29671469710 for ; Sun, 7 Jun 2020 20:17:44 +0300 (MSK) Date: Sun, 7 Jun 2020 20:17:29 +0300 From: Alexander Turenko Message-ID: <20200607171729.cthb5lsvkdcinrne@tkn_work_nb> References: <12a78dfb-5e46-29e4-4812-454172db06e0@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <12a78dfb-5e46-29e4-4812-454172db06e0@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH 0/3] Merger's NULL defererence List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org On Wed, Jun 03, 2020 at 12:47:27AM +0200, Vladislav Shpilevoy wrote: > Hi! Thanks for the patchset! > > I would also ask Igor for a review. Because the patchset does > some manipulations with luaL names, and attempts to optimize > Lua-C code. > > On 01/06/2020 20:10, Alexander Turenko wrote: > > The first patch is a bunch of renames: I dropped luaL prefix from > > several functions to highlight the contract: they can be called from > > usual C code, w/o any requirements to pass or to place a Lua state > > somewhere. > > > > The second patch just fixes NULL pointer dereference that occurs due to > > the wrong assumption: I did think that fiber().storage.lua.stack is > > always exists and non-NULL. > > > > The third commit is the optimization: it allows to don't create a new > > Lua state in merger when possible. > > > > https://github.com/tarantool/tarantool/issues/4954 > > Totktonada/gh-4954-fix-merger-segfault-full-ci > > Do we need a changelog? Bugfixes are visible behaviour change. Thanks for the reminder! @ChangeLog - merger: fix NULL pointer dereference when merger is called via the binary protocol (say, via net.box) (gh-4954)