From nobody Thu Mar 17 02:58:43 2022 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 C6B981A2877D for ; Thu, 17 Mar 2022 02:58:43 +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 4KJsKb381nz3sk5 for ; Thu, 17 Mar 2022 02:58:43 +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 4BE37225E2 for ; Thu, 17 Mar 2022 02:58:43 +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 22H2whSs005541 for ; Thu, 17 Mar 2022 02:58:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22H2whgS005540 for bugs@FreeBSD.org; Thu, 17 Mar 2022 02:58:43 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 262608] Clang assertion failed in 14-CURRENT compiling old versions of Wine Date: Thu, 17 Mar 2022 02:58:43 +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 Some People X-Bugzilla-Who: damjan.jov@gmail.com 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 attachments.created 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=1647485923; 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=/ch0eB4ler1kL0Wlolx8noJK/l2BD4ar0iO4nfiwKvc=; b=jSVdY2vBjqk2FKS/gNmoyy7atmvraZTKZuBtUlI7JSX+xHvW+RYoMYnk2aV3V8i4GbW0ru kA8jeSmiDYY6oUMJGdV1+PCj4oF/TbxgBHf0pQ/Ilu8gmqVkzJBDqTohJNXKbyjUMMv8jx tkDYjnpDorI1sjDEI3DVORkKhH3x/tffKj540I06QvHfEC79YQQFC83M6OOIMCxLvxzYyt 2Kwrn9z80awVVFjrULA4UakF/tpd2pLvAFMAl72vv9GqedU5LzDrr2xcC9oGtaqACmK+Vg 3WWRguel3oxY8dsLK8a5sHquaVUQE9h0hS3gUmtETiG70Ki8WC2sPIAiY1dHAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647485923; a=rsa-sha256; cv=none; b=TOSGQSScektomK4LyDR37U8sZZUEvz14iLHtt6jqKZYfvFRp8VENxIKkBlit8RO1rsNeJh KCiNjGyY5IWdXncRJ9SW2X8BNvY1NL3CjfKz9Lar6fW05n48IamCR29OoryvvClr7hsxyz PUpKmXvVR6xFO5dkhJIYm8Iq88zQHMCMtCYCxtKQN1XtVn7i/BfEtPnVMoI4gIn6Al3qA4 IwgmibsiOharejYHZY7cm4bEq7+YVdoTzL45+LXhJ5gzL6/kSpMaKP82ozv/yl6YQlCPKK to6qG0U6ZPxXRdk5yTHSdJXXfSdQpAvRQLvzShhHTBvCmopXqaiV8vxTxZPvPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262608 Bug ID: 262608 Summary: Clang assertion failed in 14-CURRENT compiling old versions of Wine Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: damjan.jov@gmail.com Created attachment 232494 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232494&action= =3Dedit Preprocessed source file and run script When building Wine from before commit 077b4391d442e927a2a59b5afb244355b0634= aaa (release 3.20 and earlier), Clang on 14-CURRENT gets this assertion failure: Assertion failed: (Offset.second.isStrictlyPositive() && "Expected strictly positive multiplier for offset."), function getSalvageOpsForGEP, file /usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/Local.cpp, line 181= 3. 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: cc -m64 -c -o tmarshal.o tmarshal.c -I. -I../../include -D__WINESRC__ -D_OLEAUT32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -fcommon -Wwrite-strings -Wpointer-arith -gdwarf-2 -gstrict-dwarf -g -O2 1. parser at end of file 2. Optimizer #0 0x0000000004f52150 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x0000000004f50465 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18 #2 0x0000000004ee771e HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:76:5 #3 0x0000000004ee78e3 CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51 #4 0x000000082925f580 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0= :3 #5 0x000000082925eb3f thr_sighandler /usr/src/lib/libthr/thread/thr_sig.c:247:1 #6 0x00007ffffffff8a3 ([vdso]+0x2d3) #7 0x000000082a02531a __sys_thr_kill /usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0 #8 0x0000000829f9d8b4 _raise /usr/src/lib/libc/gen/raise.c:0:10 #9 0x000000082a04f089 abort /usr/src/lib/libc/stdlib/abort.c:73:17 #10 0x0000000829f80651 (/lib/libc.so.7+0x98651) #11 0x0000000006212779 set_size /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:85:5 #12 0x0000000006212779 push_back /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:549:11 #13 0x0000000006212779 getSalvageOpsForGEP /usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/Local.cpp:1811:22 #14 0x00000000062122bf salvageDebugInfoImpl /usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/Local.cpp:1936:9 #15 0x0000000006211e49 salvageDebugInfoForDbgValues /usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/Local.cpp:1759:22 #16 0x000000000620bf9a isSmall /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:129:39 #17 0x000000000620bf9a ~SmallVectorImpl /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:581:16 #18 0x000000000620bf9a ~SmallVector /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1176:3 #19 0x000000000620bf9a salvageDebugInfo /usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/Local.cpp:1732:1 #20 0x0000000005f928b2 processNode /usr/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/EarlyCSE.cpp:0:7 #21 0x0000000005f90889 run /usr/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/EarlyCSE.cpp:0:18 #22 0x0000000005f90478 run /usr/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/EarlyCSE.cpp:1635:7 #23 0x0000000002c6f422 /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:85= :5 #24 0x0000000004bdf162 operator=3D /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:488:13 #25 0x0000000004bdf162 operator=3D /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:155:7 #26 0x0000000004bdf162 run /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:509:16 #27 0x0000000002c6f662 /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:85= :5 #28 0x0000000004be1d2c operator=3D /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:488:13 #29 0x0000000004be1d2c operator=3D /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:155:7 #30 0x0000000004be1d2c run /usr/src/contrib/llvm-project/llvm/lib/IR/PassManager.cpp:117:14 #31 0x0000000002c72482 /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:85= :5 #32 0x0000000004bde4c7 operator=3D /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:488:13 #33 0x0000000004bde4c7 operator=3D /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:155:7 #34 0x0000000004bde4c7 run /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:509:16 #35 0x0000000002c65d4d isSmall /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:194:33 #36 0x0000000002c65d4d ~SmallPtrSetImplBase /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:82:10 #37 0x0000000002c65d4d ~PreservedAnalyses /usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:155:7 #38 0x0000000002c65d4d EmitAssemblyWithNewPassManager /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1494:5 #39 0x0000000002c60bf2 EmitBackendOutput /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:0:15 #40 0x0000000002f44ec6 reset /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:3= 15:28 #41 0x0000000002f44ec6 ~unique_ptr /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:2= 72:19 #42 0x0000000002f44ec6 HandleTranslationUnit /usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:334:7 #43 0x000000000341d884 begin /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/vector:1539:30 #44 0x000000000341d884 finalize >, std::__1::allocator > > > > /usr/src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCallback= .h:54:16 #45 0x000000000341d884 ParseAST /usr/src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:178:3 #46 0x0000000002e8546f Execute /usr/src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:955:10 #47 0x0000000002e0ebff getPtr /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:274:42 #48 0x0000000002e0ebff operator bool /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:236:16 #49 0x0000000002e0ebff ExecuteAction /usr/src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:974:23 #50 0x0000000002f3e93b ExecuteCompilerInvocation /usr/src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocat= ion.cpp:278:25 #51 0x00000000024631a1 cc1_main /usr/src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:246:15 #52 0x00000000024707b2 ExecuteCC1Tool /usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:338:12 #53 0x0000000002cd8af7 operator() /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:405:30 #54 0x0000000002cd8af7 callback_fn<(lambda at /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:405:22)> /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLExtras.h:177:12 #55 0x0000000004ee7654 operator() /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLExtras.h:0:12 #56 0x0000000004ee7654 RunSafely /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:425= :3 #57 0x0000000002cd86fc Execute /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:405:7 #58 0x0000000002ca92d1 ExecuteCommand /usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:196:15 #59 0x0000000002ca978f ExecuteJobs /usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:249:13 #60 0x0000000002cbd8dc empty /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:73:47 #61 0x0000000002cbd8dc ExecuteCompilation /usr/src/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1556:23 cc: error: clang frontend command failed with exit code 134 (use -v to see invocation) FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin cc: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/tmarshal-797721.c cc: note: diagnostic msg: /tmp/tmarshal-797721.sh cc: note: diagnostic msg:=20 ******************** *** Error code 134 --=20 You are receiving this mail because: You are the assignee for the bug.=