From nobody Mon Aug 19 22:28:07 2024 X-Original-To: toolchain@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 4WnnKz6P5wz5TfHC for ; Mon, 19 Aug 2024 22:28:07 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WnnKz53vRz4xcr for ; Mon, 19 Aug 2024 22:28:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724106487; a=rsa-sha256; cv=none; b=bSWiru7uBRNjNQyeX2iqek2HtdEBaN9WQO85nXexdWNquynsMHPD9PuyfFbVcIdZYYG3iS ETDbbCv4XWOQ/9miTAvxIhEKkzTc0nLpshlvCWezOfO3DW/Sdykiy0gQrwyjspQfF2e+RC lXSNlzCtYEooQj9CU69iU68vl7jU+OdlGYqHy9nCLjzVUMxkBGBdFPXULgp9aNwPaCsve8 tzjf9Jh4rF4TT57gibfr8VwxnY3Zh5UlKjGZvJUWA6xea18sbgcu3qe005/L16Ux8kTfAB hfKM7V6jjjSiu6nH2OZxg6qzVDXKfREr6Q0eEpZNDqb3ogSxOpE7mvGyfATtBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724106487; 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=h5qucF/XmkTqv7S8l1BYpTGkpgyNhlaGrw3IpE0/QOM=; b=dANr0W1L16aJWe0YxthbfP9dMgt1SuWyFPSWeeDBM0y27lopAT3zgYwuVK60GXpqIsHtSH 6l9Sz6kx/qiwiqlmNhnJfYShN4VmcwcBsvByqcW4WGlIR/Uus2cE2VpXzMkbNlk7XVJOPh 56WFJaCFqW0Ul3vP2eexVliyWGmvKyTwvHhMW+Skk21AW9JNUErIH1aQyYfFJtmHVwSjPh Ilrz8DyHtcWqkvrcd5qPwhLs4P7baERN9tpEcKdHh2amS5W1RqmrIkp6FGssqPM21Hm+Sh 5lRxLCJwrPDlm3m/BBiYUEl8FEUU9vdMEFllgGUanTHaH0TXBmNwqXtjMTZCZg== 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 4WnnKz4YKwzZgV for ; Mon, 19 Aug 2024 22:28:07 +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 47JMS7EM051275 for ; Mon, 19 Aug 2024 22:28:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47JMS7hS051273 for toolchain@FreeBSD.org; Mon, 19 Aug 2024 22:28:07 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: toolchain@FreeBSD.org Subject: [Bug 280936] cannot build world with ASAN enabled Date: Mon, 19 Aug 2024 22:28:07 +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: 15.0-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: toolchain@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 cc 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: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280936 Bug ID: 280936 Summary: cannot build world with ASAN enabled Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: toolchain@FreeBSD.org Reporter: markj@FreeBSD.org CC: dim@FreeBSD.org A clean buildworld with `WITH_ASAN=3D` on amd64 yields the following, clang version is 18.1.6: Assertion failed: (isa(Callee) || isa(Callee)), func= tion analyzeAllUses, file /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cp= p, line 514. 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 x86_64-unknown-freebsd1= 5.0 -emit-obj -disable-free -clear-ast-before-backend -main-file-name getcontex= tx.c -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=3Dall -ffp-contract=3Don -fno-rounding-math -mconstructor-a= liases -funwind-tables=3D2 -target-cpu x86-64 -tune-cpu generic -debug-info-kind=3Dstandalone -dwarf-version=3D4 -debugger-tuning=3Dgdb --compress-debug-sections=3Dzlib -fdebug-compilation-dir=3D/home/markj/sb/main/bricoler/freebsd-src-build/ob= j.amd64.amd64/home/markj/sb/main/src/amd64.amd64/lib/libc -fcoverage-compilation-dir=3D/home/markj/sb/main/bricoler/freebsd-src-build= /obj.amd64.amd64/home/markj/sb/main/src/amd64.amd64/lib/libc -sys-header-deps -D PIC -D _SYSCALL_BODY(name)=3D -D _FORTIFY_SOURCE_read= =3D_read -D NO__SCCSID -D NO__RCSID -D NLS -D CRT_IRELOC_RELA -D INIT_IRELOCS=3Dinit_cpu_features() -D __DBINTERFACE_PRIVATE -D INET6 -D _ACL_PRIVATE -D POSIX_MISTAKE -D WANT_HYPERV -D BROKEN_DES -D PORTMAP -D DES_BUILTIN -D YP -D NS_CACHING -O2 -Wno-format-zero-length -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wdate-t= ime -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=3Dunused-but-set-parameter -Wno-tautological-compare -Wno-unused= -value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -std=3Dgnu99 -ferror-limit 19 -ftls-model=3Dinitial-exec -fsanitize=3Daddress -fsanitize-recover=3Daddress -fsanitize-system-ignorelist=3D/usr/lib/clang/18/share/asan_ignorelist.txt -fno-sanitize-memory-param-retval -fsanitize-address-use-after-scope -fsanitize-address-globals-dead-stripping -fno-assume-sane-operator-new -stack-protector 2 -fgnuc-version=3D4.2.1 -fskip-odr-check-in-gmf -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=3D1 -= x c getcontextx-cc225c.c 1. parser at end of file 2. Optimizer #0 0x0000000005aa60f1 PrintStackTrace /root/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13 #1 0x0000000005aa4105 RunSignalHandlers /root/freebsd/contrib/llvm-project/llvm/lib/Support/Signals.cpp:106:18 #2 0x0000000005aa66f2 SignalHandler /root/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #3 0x00000008075d74ec handle_signal /root/freebsd/lib/libthr/thread/thr_sig.c:0:3 #4 0x00000008075d6aab thr_sighandler /root/freebsd/lib/libthr/thread/thr_sig.c:244:1 #5 0x00007ffffffff2d3 ([vdso]+0x2d3) #6 0x0000000807ba235a _thr_kill /usr/obj/root/freebsd/amd64.amd64/lib/libsys/thr_kill.S:4:0 #7 0x00000008077f8704 _raise /root/freebsd/lib/libc/gen/raise.c:0:10 #8 0x00000008078ac319 abort /root/freebsd/lib/libc/stdlib/abort.c:67:17 #9 0x00000008077dc081 (/lib/libc.so.7+0x97081) #10 0x000000000501afbc analyzeAllUses /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cp= p:0:9 #11 0x000000000501555f run /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cp= p:550:20 #12 0x000000000501555f getInfo /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cp= p:876:32 #13 0x0000000005016188 getInfo /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cp= p:891:19 #14 0x0000000005018d1e __root /usr/obj/root/freebsd/amd64.amd64/tmp/usr/include/c++/v1/__tree:972:54 #15 0x0000000005018d1e find /usr/obj/root/freebsd/amd64.amd64/tmp/usr/include/c++/v1/__tree:2098:43 #16 0x0000000005018d1e find /usr/obj/root/freebsd/amd64.amd64/tmp/usr/include/c++/v1/set:826:89 #17 0x0000000005018d1e stackAccessIsSafe /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cp= p:983:30 #18 0x0000000006e3302d ignoreAccess /root/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/Addr= essSanitizer.cpp:1317:57 #19 0x0000000006e272f8 getInterestingMemoryOperands /root/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/Addr= essSanitizer.cpp:1336:9 #20 0x0000000006e272f8 instrumentFunction /root/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/Addr= essSanitizer.cpp:2905:7 #21 0x0000000006e246ae ~DenseMap /root/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/DenseMap.h:782:23 #22 0x0000000006e246ae ~AddressSanitizer /root/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/Addr= essSanitizer.cpp:647:8 #23 0x0000000006e246ae run /root/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/Addr= essSanitizer.cpp:1191:3 #24 0x0000000003151ec2 /root/freebsd/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal= .h:89:5 #25 0x00000000056bf091 run /root/freebsd/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:547:10 #26 0x00000000031486cb isSmall /root/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:195:= 33 #27 0x00000000031486cb ~SmallPtrSetImplBase /root/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:83:10 #28 0x00000000031486cb ~PreservedAnalyses /root/freebsd/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:172:7 #29 0x00000000031486cb RunOptimizationPipeline /root/freebsd/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1101:5 #30 0x0000000003141268 EmitAssembly /root/freebsd/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:0:3 #31 0x0000000003141268 EmitBackendOutput /root/freebsd/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1328:13 #32 0x0000000003156994 reset /usr/obj/root/freebsd/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_pt= r.h:263:29 #33 0x0000000003156994 ~unique_ptr /usr/obj/root/freebsd/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_pt= r.h:236:71 #34 0x0000000003156994 HandleTranslationUnit /root/freebsd/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:379:3 #35 0x0000000003aeb646 begin /usr/obj/root/freebsd/amd64.amd64/tmp/usr/include/c++/v1/vector:1369:28 #36 0x0000000003aeb646 finalize >, std::__1::allocator > > > > /root/freebsd/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCal= lback.h:54:16 #37 0x0000000003aeb646 ParseAST /root/freebsd/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:183:3 #38 0x000000000341e36f Execute /root/freebsd/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:10= 73:10 #39 0x000000000334f02d getPtr /root/freebsd/contrib/llvm-project/llvm/include/llvm/Support/Error.h:276:42 #40 0x000000000334f02d operator bool /root/freebsd/contrib/llvm-project/llvm/include/llvm/Support/Error.h:239:16 #41 0x000000000334f02d ExecuteAction /root/freebsd/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:= 1057:23 #42 0x00000000034e929c ExecuteCompilerInvocation /root/freebsd/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerIn= vocation.cpp:272:25 #43 0x000000000272bde1 cc1_main /root/freebsd/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:294:15 #44 0x000000000273b0ab ExecuteCC1Tool /root/freebsd/contrib/llvm-project/clang/tools/driver/driver.cpp:365:12 #45 0x000000000273a194 clang_main /root/freebsd/contrib/llvm-project/clang/tools/driver/driver.cpp:405:12 #46 0x00000000027378cd main /root/freebsd/usr.bin/clang/clang/clang-driver.cpp:17:10 #47 0x00000008077cd5da __libc_start1 /root/freebsd/lib/libc/csu/libc_start1.c:157:2 --=20 You are receiving this mail because: You are the assignee for the bug.=