From nobody Wed Nov 23 23:40:27 2022 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 4NHd0X1Vhsz4hRLf for ; Wed, 23 Nov 2022 23:40:28 +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 4NHd0W6NGGz4D14 for ; Wed, 23 Nov 2022 23:40:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669246827; 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: in-reply-to:in-reply-to:references:references; bh=/K7NRzPkCLIKqxuh+wzPe4eKLOa0qeEvCNLEfZ+bdHs=; b=mduBibQ0JD3LkiW1XQaGUHgA0fa57kBxa4fBzvujfV5E6jsTRuuVOkZm665aZAL2zb+pC0 V7q9OBbkrT5fpgSGz60MMEaoflehNIfKj+g6/BiH5q4NwrqitUMbDPPXoQpjLGpYIWB+2+ sl5IZzn8SbOE/i7d0nPKfjtQVu9NXGN4H/5IuVov/XZm1l5BLU2YOLKbfWGy8+2z6oEoSp EYcIcfi53Vl6P7BryhutL/QTbkWmSxMyege7CaVxf7aorR0nGuvWKtfu6TxMjexW11F9aK SqkNjGWfr6hML+F0pMYiFff3X8+XZW+ZS+uATZFY/JrmCTOxWGZ3RZwg0gfvBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669246827; a=rsa-sha256; cv=none; b=WQkmhoENWp8pMUF2R7gE9nd9NijSsmLslSYVBXB2odAjcGwrdjlbjBnRdVW9mKbSwIRbGJ h1K68HSGTvOYeMnEkZ9iRorASdLECW7ZwedM/eCKmovAwTgji7iRNrqaIMn5BqOE51ZVp8 HQJn0EU3vjcs5b8Inxts8pIDwgtXSenABTRna5ZkxuSsr5/fRuQLk0swN3VSwQFVUY8f8W XpeGQX21R7aVcYxFf2TB3sDjpxNi9wJsJswiN9bghcq7sn5MZr8boQEG41ueg+QX/fZZ/J mDcn5QdbFh1+dEBp02kWWqSPdBx1f8fyCfxDNgtATRH/wo/5l/fpJk6Lq2XCxA== 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 4NHd0W5BvxzgZt for ; Wed, 23 Nov 2022 23:40:27 +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 2ANNeRj1001129 for ; Wed, 23 Nov 2022 23:40:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2ANNeRBU001128 for toolchain@FreeBSD.org; Wed, 23 Nov 2022 23:40:27 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 267751] lang/gcc*: Address sanitizer isn't properly enabled: ASan runtime does not come first in initial library list Date: Wed, 23 Nov 2022 23:40:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: salvadore@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: salvadore@freebsd.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: short_desc bug_status Message-ID: In-Reply-To: References: 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: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267751 Lorenzo Salvadore changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|lang/gcc11: Address |lang/gcc*: Address |sanitizer isn't properly |sanitizer isn't properly |enabled: ASan runtime does |enabled: ASan runtime does |not come first in initial |not come first in initial |library list |library list Status|Open |In Progress --- Comment #4 from Lorenzo Salvadore --- I think I have found the issue and the fix. I am going to add the patches f= or the gcc -devel ports to the bug report and start committing them together w= ith the weekly snapshots. Then I will fix the gcc standard ports too. For now, I have tested the patch for gcc11-devel successfully. I am still testing the other patches. Mind that it is necessary to disable ASLR to run successfully the compiled binaries, which can de done with # sysctl kern.elf64.aslr.pie_enable=3D1 # sysctl kern.elf64.aslr.enable=3D1 --=20 You are receiving this mail because: You are on the CC list for the bug.=