From nobody Tue Nov 23 18:07:56 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E53D6189A4A2 for ; Tue, 23 Nov 2021 18:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzBvJ4FdJz4ptj for ; Tue, 23 Nov 2021 18:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 723FD1B308 for ; Tue, 23 Nov 2021 18:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1ANI7unT038970 for ; Tue, 23 Nov 2021 18:07:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ANI7uCB038969 for bugs@FreeBSD.org; Tue, 23 Nov 2021 18:07:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260000] clang crash while compiling libarchive with -m32 and -fsanitize=address Date: Tue, 23 Nov 2021 18:07:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637690876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EPZZtO6g/wh7rYb40bbyXEqYSuh+xTxS/D8ODgIeBXo=; b=jqgC5jGNajEN1Mlw0tYMgppSrHljX9QaEFHRL7rGJLh1kfqkNmeWE7wQqZ7xS7YCzGNled mz/amJUabNqyKxL/oqyzMPYOySjP2qWcyGfiCc6Z7k7JtAeQVSaZhtaWJmAV1tSDyV9hbH eak1ZXw+kKubNEF9dwOYNuc64Y+AwsQXCEI+mR/9Pdt9uTfFWzMrfMLC11lL+e5/YUN0BI FL1fFVOOFixOyhJF5NVgrX1Ac31JVyL/3zlgp+kXxCYdJo0LW4TvuvEg1ofRkXwErlF8us pgUSDl4eM7XhcdzWmW1nvGmS9SxODFP1SeV1OuY4qh7YhgI2a3v5ww95lWSchg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637690876; a=rsa-sha256; cv=none; b=R2rIFU+bJrQMn9oZy19Bd0e+hX8+QE6owClAmYu42/mAZSOX3YkOe8V3QhCNUorurhl33Z fj9tpacW8bbFui13vt8yUrOn4AuQVMaUPRaUblcZMymfVnstUZTELQyLtUttYgwVK4d8pz br6xkc/K+IUw40ws0k93I/9KaTKvL6+sFkGiGhwEVWPUMeUmNHhGM1Btor1gSbDcemiWwj 0Zoy9P4lWkcvjEtM2m9apSxLdRDynMXiia5MjfXzKY2d70vpccPeOghd+cZHmhhlkmnBQE 6q6BD6YBEFXYCXXlvKfYF7DbLZe2H6Hq/19/6SO2RXFdmnYUcaVJwVYZOK+hdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260000 Bug ID: 260000 Summary: clang crash while compiling libarchive with -m32 and -fsanitize=3Daddress Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: markj@FreeBSD.org Building world with WITH_ASAN=3D I hit this near the end of the build: markj@nuc> sh archive_read_support_format_tar-29e157.sh=20 Assertion failed: (!Op->getType()->isPointerTy() && "Can't extend pointer!"= ), function getZeroExtendExpr, file /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/ScalarEvolution.cpp, l= ine 1582. PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /usr/bin/cc -cc1 -triple i386-unknown-freebsd14.0 -emit-obj --mrelax-relocations -disable-free -main-file-name archive_read_support_format_tar.c -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=3Dall -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu i686 -target-feature +mmx -target-feature +sse -target-feature +sse2 -debug-info-kind=3Dstandalone -dwarf-version=3D4 -debugger-tuning=3Dgdb --compress-debug-sections=3Dzlib -fcoverage-compilation-dir=3D/usr/obj/usr/home/markj/src/freebsd/amd64.amd6= 4/obj-lib32/lib/libarchive -sys-header-deps -D COMPAT_32BIT -D PIC -D HAVE_ICONV=3D1 -D HAVE_ICONV_H= =3D1 -D ICONV_CONST=3D -D HAVE_BZLIB_H=3D1 -D HAVE_LIBLZMA=3D1 -D HAVE_LZMA_H=3D1 -D HAVE_ZSTD_H=3D1 -D HAVE_LIBZSTD=3D1 -D PLATFORM_CONFIG_H=3D\"/usr/home/markj/src/freebsd/lib/libarchive/config_fre= ebsd.h\" -D WITH_OPENSSL -O2 -Wno-format-zero-length -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-stri= ngs -Wswitch -Wshadow -Wunused-parameter -Wchar-subscripts -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=3Dunused-but-set-variable -std=3Dgnu99 -fconst-strings -fdebug-compilation-dir=3D/usr/obj/usr/home/markj/src/freebsd/amd64.amd64/o= bj-lib32/lib/libarchive -ferror-limit 19 -fsanitize=3Daddress -fsanitize-recover=3Daddress -fsanitize-address-use-after-scope -fno-assume-sane-operator-new -stack-protector 2 -fgnuc-version=3D4.2.1 -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=3D1 -x c archive_read_support_format_tar-29e157.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'archive_read_support_format_tar-29e157.c'. 4. Running pass 'Loop Pass Manager' on function '@tar_read_header' 5. Running pass 'Loop Strength Reduction' on basic block '%while.cond4= 5.i' #0 0x00000000050964e0 PrintStackTrace /root/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x00000000050947f5 RunSignalHandlers /root/freebsd/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18 #2 0x0000000005096c10 SignalHandler /root/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #3 0x000000080a8e85d0 handle_signal /root/freebsd/lib/libthr/thread/thr_sig.c:0:3 Abort trap (core dumped) --=20 You are receiving this mail because: You are the assignee for the bug.=