From nobody Wed Dec 20 09:23:52 2023 X-Original-To: ports-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 4Sw7RD4k4mz54h14 for ; Wed, 20 Dec 2023 09:23:52 +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 4Sw7RD0DcPz4VC4 for ; Wed, 20 Dec 2023 09:23:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703064232; a=rsa-sha256; cv=none; b=GF3OK0yHjFxZK5TlsnZlJYsEqvP1LXAVnzg/Uww/C3VQ9Z7LEGnKlrhtNsTLE4Ez2pLlXJ Dh4aXQQJH9mNyRFh2BhBVBfWNWHUd72J+yLOCqAFF025701BzRaTp7tscWHr4HfHdZwn48 sK3PmQU6wSsKKUPy7dpej9f+nVhrCflb12IryNCPoMnVoytW0skndi8XWMHtFdY/zxDwv7 jsexpsA/I2ss+Jqs0jFWNMbK7oHyjNpRYLj/HP0JPJafx4+jjzTzSPmf3PFp0hbxZi3391 uYgmEGWTbRuTlwgjPN5WCkm9A9P+3O5i9ihkUZqGc4AvKj+DXcfEXTgZpYRxBw== 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=1703064232; 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=Gz0Rf1XLR0as2tiwTOzbF8fmSzK7UNCNNjDbQPO+gTs=; b=f4cj6LyXbp0b/wcx/jW4qbDAvlkoR5ArBvHExjEm3DvbVPdS1ipqY5AgFIbtY6snJ+SxKL 8Ro2eJ+UVvNwV+lHidqi+aHh7GqnRmzctbCzrroAQG1k0DdL4GLLuGQIj4S4VulyjAO21D e1kB4gZMnvD4q9pAwe0CrcY7IQKI2qNlO9Y5bc1G9xslUjZfBkb0hb3ff/hRpaIVQSxMuX pDPUY7kdETO88qOuF5/4R7nFSA7XbyRrrqxIk+eGOgvXnSJZHO2r3V9tbbktev0DmMABy/ I1Vyiy33deisgiYBdaQhxOJdwVVcIuJdWgUvC4IU/HFhxI5F8P+7JSZjeMnsbQ== 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 4Sw7RC6SChzjcK for ; Wed, 20 Dec 2023 09:23:51 +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 3BK9Np6g039999 for ; Wed, 20 Dec 2023 09:23:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BK9Np3k039998 for ports-bugs@FreeBSD.org; Wed, 20 Dec 2023 09:23:51 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: ports-bugs@FreeBSD.org Subject: [Bug 275854] -fsanitize=address and -fsanitize=memory fail with clang 17 Date: Wed, 20 Dec 2023 09:23:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@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 blocked 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275854 Bug ID: 275854 Summary: -fsanitize=3Daddress and -fsanitize=3Dmemory fail with clang 17 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: ports-bugs@FreeBSD.org Blocks: 273753 $ echo 'int main() {}' >a.c $ cc -fsanitize=3Daddress a.c ld: error: undefined symbol: __sanitizer::ThreadArgRetval::GetAllPtrsLocked(__sanitizer::InternalMmapVec= tor*) >>> referenced by asan_thread.cpp:560 (/usr/src/contrib/llvm-project/compil= er-rt/lib/asan/asan_thread.cpp:560) >>> asan_thread.o:(__lsan::GetAdditionalThreadContextPtrsLock= ed(__sanitizer::InternalMmapVector*)) in archive /usr/lib/cl= ang/17/lib/freebsd/libclang_rt.asan-x86_64.a ld: error: undefined symbol: __sanitizer::ThreadArgRetval::CreateLocked(unsigned long, bool, __sanitizer::ThreadArgRetval::Args const&) >>> referenced by sanitizer_thread_arg_retval.h:48 (/usr/src/contrib/llvm-p= roject/compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.h:48) >>> asan_interceptors.o:(__interceptor_pthread_create) in arc= hive /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a ld: error: undefined symbol: __sanitizer::ThreadArgRetval::BeforeJoin(unsig= ned long) const >>> referenced by sanitizer_thread_arg_retval.h:74 (/usr/src/contrib/llvm-p= roject/compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.h:74) >>> asan_interceptors.o:(__interceptor_pthread_join) in archi= ve /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a ld: error: undefined symbol: __sanitizer::ThreadArgRetval::AfterJoin(unsign= ed long, unsigned int) >>> referenced by sanitizer_thread_arg_retval.h:76 (/usr/src/contrib/llvm-p= roject/compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.h:76) >>> asan_interceptors.o:(__interceptor_pthread_join) in archi= ve /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a ld: error: undefined symbol: __sanitizer::ThreadArgRetval::DetachLocked(unsigned long) >>> referenced by sanitizer_thread_arg_retval.h:65 (/usr/src/contrib/llvm-p= roject/compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.h:65) >>> asan_interceptors.o:(__interceptor_pthread_detach) in arc= hive /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a ld: error: undefined symbol: __sanitizer::ThreadArgRetval::Finish(unsigned long, void*) >>> referenced by asan_interceptors.cpp:290 (/usr/src/contrib/llvm-project/= compiler-rt/lib/asan/asan_interceptors.cpp:290) >>> asan_interceptors.o:(__interceptor_pthread_exit) in archi= ve /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a >>> referenced by asan_interceptors.cpp:226 (/usr/src/contrib/llvm-project/= compiler-rt/lib/asan/asan_interceptors.cpp:226) >>> asan_interceptors.o:(asan_thread_start(void*)) in archive= /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a ld: error: undefined symbol: __sanitizer::ThreadArgRetval::GetArgs(unsigned long) const >>> referenced by asan_interceptors.cpp:224 (/usr/src/contrib/llvm-project/= compiler-rt/lib/asan/asan_interceptors.cpp:224) >>> asan_interceptors.o:(asan_thread_start(void*)) in archive= /usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.a cc: error: linker command failed with exit code 1 (use -v to see invocation) $ cc -fsanitize=3Dmemory a.c ld: error: undefined symbol: __msan::UnpoisonDllAddrInfo(void*) >>> referenced by msan_interceptors.cpp:1550 (/usr/src/contrib/llvm-project= /compiler-rt/lib/msan/msan_interceptors.cpp:1550) >>> msan_interceptors.o:(__interceptor_dladdr) in archive /us= r/lib/clang/17/lib/freebsd/libclang_rt.msan-x86_64.a cc: error: linker command failed with exit code 1 (use -v to see invocation) Note, -fsanitize=3Dundefined, -fsanitize=3Dthread work fine. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273753 [Bug 273753] [exp-run] Against llvm-17-update branch on GitHub --=20 You are receiving this mail because: You are on the CC list for the bug.=