[Tarantool-patches] [PATCH] popen: fix 'may be clobbered' compiler warning

Alexander Turenko alexander.turenko at tarantool.org
Sat Apr 11 12:38:58 MSK 2020


On Sat, Apr 11, 2020 at 10:30:26AM +0300, Cyrill Gorcunov wrote:
> On Sat, Apr 11, 2020 at 01:28:07AM +0300, Alexander Turenko wrote:
> > I guess a compiler assumes that the code inside vfork may use the stack
> > slot that corresponds the variable and so clobber it. The recent commit
> > 07a07b3cc7b85375d20b3fc6ca1e5060304f337b ('popen: decouple logger fd
> > from stderr') adds read from this variable after vfork() in the parent
> > process.
> > 
> > The warning is produced on RelWithDebInfo build with LTO enabled on GCC
> > 9.2.0 (locally) and on GCC 8.3.0 (in CI).
> > 
> > Part of #4031
> Acked-by: Cyrill Gorcunov <gorcunov at gmail.com>

Pushed to master.

WBR, Alexander Turenko.


More information about the Tarantool-patches mailing list