From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EED26396E473; Tue, 2 Feb 2021 08:03:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EED26396E473 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/98928] New: [11 regression] ICE when build 638.imagick_s Date: Tue, 02 Feb 2021 08:03:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost 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: Tue, 02 Feb 2021 08:03:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98928 Bug ID: 98928 Summary: [11 regression] ICE when build 638.imagick_s Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: crazylht at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu I can't reproduce it with small testcase, the regression may happen between 20201211 and 20201215, ICE still can be reproduced in the latest trunk with= gcc option: -march=3Dskylake-avx512 -Ofast -funroll-loops -mfpmath=3Dsse -Ofast -fno-associative-math -flto -fopenmp ice dump: spec@shgcc100:~/workspace/CPU2017_SHGCC100/result/benchspec/CPU/638.imagick= _s/build/build_base_march_native_ofast.0000$ /export/liuhongt/install/gcc11_trunk/bin/gcc -m64 -Wl,-z,muldefs=20=20 -march=3Dnative -Ofast -funroll-loops -mfpmath=3Dsse -Ofast -fno-associativ= e-math -funroll-loops -flto -fopenmp -DSPEC_OPENMP coders/tg= a.o filters/analyze.o magick/accelerate.o magick/animate.o magick/annotate.o magick/artifact.o magick/attribute.o magick/blob.o magick/cache-view.o magick/cache.o magick/channel.o magick/cipher.o magick/client.o magick/code= r.o magick/color.o magick/colormap.o magick/colorspace.o magick/compare.o magick/composite.o magick/compress.o magick/configure.o magick/constitute.o magick/decorate.o magick/delegate.o magick/display.o magick/distort.o magick/distribute-cache.o magick/draw.o magick/effect.o magick/enhance.o magick/exception.o magick/feature.o magick/fourier.o magick/fx.o magick/gem= .o magick/geometry.o magick/hashmap.o magick/histogram.o magick/identify.o magick/image.o magick/layer.o magick/list.o magick/locale.o magick/log.o magick/magic.o magick/magick.o magick/matrix.o magick/memory.o magick/mime.o magick/module.o magick/monitor.o magick/montage.o magick/morphology.o magick/option.o magick/paint.o magick/pixel.o magick/policy.o magick/prepre= ss.o magick/profile.o magick/property.o magick/quantize.o magick/quantum-export.o magick/quantum-import.o magick/quantum.o magick/random.o magick/registry.o magick/resample.o magick/resize.o magick/resource.o magick/segment.o magick/semaphore.o magick/shear.o magick/signature.o magick/splay-tree.o magick/static.o magick/statistic.o magick/stream.o magick/string.o magick/threshold.o magick/timer.o magick/token.o magick/transform.o magick/type.o magick/utility.o magick/version.o magick/xml-tree.o utilities/convert.o wand/convert.o wand/drawing-wand.o wand/magick-image.o wand/magick-wand.o wand/mogrify.o wand/pixel-wand.o wand/magick-property.o wand/pixel-iterator.o wand/wand.o magick/deprecate.o -lm=20=20= =20=20 -L/home/spec/workspace/CPU2017_SHGCC100/speccpu2017/jemalloc/intel64/lib/ -ljemalloc -lpthread -ldl -o imagick_sIn function =E2=80=98CopyMagi= ckMemory=E2=80=99, inlined from =E2=80=98ConvertUTF16ToUTF8=E2=80=99 at magick/xml-tree.c:= 1341:14, inlined from =E2=80=98NewXMLTree.part.0=E2=80=99 at magick/xml-tree.c:1= 973:8: magick/memory.c:702:10: warning: =E2=80=98__builtin_memcpy=E2=80=99 writing= one too many bytes into a region of a size that depends on =E2=80=98strlen=E2=80=99 [-Wstringo= p-overflow=3D] 702 | return(memmove(destination,source,size)); | ^ magick/xml-tree.c: In function =E2=80=98NewXMLTree.part.0=E2=80=99: magick/memory.c:464:10: note: destination object of size [0, 9223372036854775805] allocated by =E2=80=98malloc=E2=80=99 464 | memory=3Dmemory_methods.acquire_memory_handler(size =3D=3D 0 ? 1U= L : size); | ^ during GIMPLE pass: vect magick/pixel.c: In function =E2=80=98InterpolateMagickPixelPacket.constprop= .isra=E2=80=99: magick/pixel.c:4244:32: internal compiler error: in vect_get_vec_defs_for_operand, at tree-vect-stmts.c:1450 4244 | MagickExport MagickBooleanType InterpolateMagickPixelPacket(const I= mage *image, | ^ 0x75bc56 vect_get_vec_defs_for_operand(vec_info*, _stmt_vec_info*, unsigned int, tree_node*, vec*, tree_node*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:1450 0x10295e3 vect_get_vec_defs(vec_info*, _stmt_vec_info*, _slp_tree*, unsigned int, tree_node*, vec*, tree_node*, tree_node*, vec*, tree_node*, tree_node*, vec*, tree_node*, tree_node*, vec= *, tree_node*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:1482 0x10296cc vect_get_vec_defs(vec_info*, _stmt_vec_info*, _slp_tree*, unsigned int, tree_node*, vec*, tree_node*, vec*, tree_node*, vec*, tree_node= *, vec*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:1504 0x102a1a5 vectorizable_conversion ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:4963 0x1045e38 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:10831 0x104b7ba vect_transform_loop_stmt ../../../gcc/git_trunk/gcc/tree-vect-loop.c:9204 0x10659c7 vect_transform_loop(_loop_vec_info*, gimple*) ../../../gcc/git_trunk/gcc/tree-vect-loop.c:9640 0x109393c try_vectorize_loop_1 ../../../gcc/git_trunk/gcc/tree-vectorizer.c:1103 0x1094629 vectorize_loops() ../../../gcc/git_trunk/gcc/tree-vectorizer.c:1242 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: /export/liuhongt/install/gcc11_trunk/bin/gcc retu= rned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed=