From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D8AAF397CF36; Fri, 15 May 2020 12:45:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8AAF397CF36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589546735; bh=JbYy4cHgzIOPpmLK+4gryYxNYK2bf8jHaoLlqfPhL30=; h=From:To:Subject:Date:From; b=yCcSYKI7DV1mltJA9xpQXsP1MLAwwQ/rEnAeOXHzpet80eKsC6nbsjw6QJvAY1AGa +vNKY/MppSTtvaAyKx0ABVeUTdxcVXyHR9ncQHLAUwdUsGiY7koE/zL5BCTxDdVQfA HwgiMYfL/gaVAGLJl4QDYw5GkYjSbw1pP3DsMgPU= From: "pieter+gcc-bugzilla at plexis dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/95152] New: internal compiler error: in get_or_create_mem_ref, at analyzer/region-model.cc:6938 Date: Fri, 15 May 2020 12:45:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pieter+gcc-bugzilla at plexis dot eu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 12:45:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95152 Bug ID: 95152 Summary: internal compiler error: in get_or_create_mem_ref, at analyzer/region-model.cc:6938 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: pieter+gcc-bugzilla at plexis dot eu Target Milestone: --- Created attachment 48545 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48545&action=3Dedit The pre-processed source While compiling dnsdist[1] from git with '-fanalyzer', GCC 10.1.0 has an internal compiler error: during IPA pass: analyzer In file included from dnsdist.hh:24, from dnsdist-lua-bindings.cc:23: ext/luawrapper/include/LuaContext.hpp: In lambda function: ext/luawrapper/include/LuaContext.hpp:1241:27: internal compiler error: in get_or_create_mem_ref, at analyzer/region-model.cc:6938 1241 | writeFunction_(*object, value); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. The full commandline is as follows: g++ -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/luajit-2.0=20 -I/usr/include/editline -I./ext/yahttp -march=3Dx86-64 -mtune=3Dgeneric= -O2 -pipe -fno-plt -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_= U64 -march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -Ulinux -Dlinux=3Dlinux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_FORTIFY_SOURCE=3D2 -I/usr/lib/perl5/5.30/core_p= erl/CORE -I/usr/include/libnl3 -D_FORTIFY_SOURCE=3D2 -I. -I/usr/include=20 -DSYSCONFDIR=3D\"/usr/local/etc\" -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 --param ssp-buffer-size=3D4 -fstack-protector -g -O3 = -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-d= ecls -fanalyzer -MT dnsdist-lua-bindings.o -MD -MP -MF $depbase.Tpo -c -o dnsdist-lua-bindings.o dnsdist-lua-bindings.cc This is a ArchLinux system, where 'g++ -v' shows this: Using built-in specs. COLLECT_GCC=3D/usr/bin/g++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=3Dgnu --with-system-zlib --enable-__cxa_atexit --enable-cet=3Dauto --enable-checking=3Drelease --enable-clocale=3Dgnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build= -id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=3Dposix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=3D/usr/include/dlang/gdc Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.1.0 (GCC)=20 The triggering line is in the LuaWrapper[2], a project that can wrap C++ objects and to Lua. I have attached the pre-processed source. If you need more information, let me know! 1 - https://dnsdist.org 2 - https://github.com/PowerDNS/pdns/blob/134755f54093a595610e035d01a07f125df3a= b13/ext/luawrapper/include/LuaContext.hpp#L1241=