From nobody Fri Dec 10 14:15:11 2021 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 4E37618E56D5 for ; Fri, 10 Dec 2021 14:15:12 +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 4J9Xww0j0Gz4fWM for ; Fri, 10 Dec 2021 14:15:12 +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 E95B81BDB8 for ; Fri, 10 Dec 2021 14:15:11 +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 1BAEFBiL000401 for ; Fri, 10 Dec 2021 14:15:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BAEFBGK000400 for ports-bugs@FreeBSD.org; Fri, 10 Dec 2021 14:15:11 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 260303] lang/sdcc: seg fault during build (ASLR fallout) Date: Fri, 10 Dec 2021 14:15:11 +0000 X-Bugzilla-Reason: AssignedTo 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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639145712; 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=cqpGGelVfIWWE5R2fWbFMviRjMq6y/ZtmrYXvNb2j1Q=; b=o0KvD7a99zUnQb6kp0XbWD7VGWuf9C5oCUYTGn/ciZRJ4dF6Q8mjC0YaDTGtr34hkND8eN R+ruXr9NOuSv4W00K/iYwb2jNQCGJXBH2uQehsIK6hqMiDN9Gja5zW7dnEHvCdU2Y46BIa +lJ1bF0k8fca82HScdEVlo0YMTLji/hoFZYt3LcPKzE08tiTVWGDInc7lzgB5N3oEOEv1x 62O9DNy4uLEWEuTDv4wJXAgcLueW2edfqdw+k/unSLchCXWnbCq87fyYLNUk/d9M+stn1k a9FdO6QZh64KLFQYP+Y8Pu9F/DsJxRqQxEIx+WaT6E2/3kWnpmddTuEf9DL36A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639145712; a=rsa-sha256; cv=none; b=VSAtbMuiOYIVmSiDGrqNrB2VfC4mMAq00cxDZwFNc8GQOePbH6rFCJyE74GOUAJs8SxRDG aEoEM5A6VyK/L9gWLlwegu6orI+rD3rsJIGxVl7l1PNtlANMGhrFy5QZzn5G+ob7OmW7EQ U+vp7bgak55k0WaALM7yDSkAy+mVvXKCkz9cYKTzDRgMOUlYK4hViaZGxsTqEmFdiKEU33 2UXerGQqiopio05SSFa+JKv7RUyB6WtwivCXhnRHTN+KSZmnhcBJ1L7TuBQqUuaXt3Qd2R ElNw/ADY39JsIxoIr/eXJ2R1k6EraDraFbEtWW9I/CQOr9TAyQz9NkUpjaZTUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260303 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #1 from Dimitry Andric --- See also bug 253208, and commit https://cgit.freebsd.org/src/commit/?id=3D889b56c8cd84c9a9f2d9e3b019c154d6f= 14d9021 . The problem appears to be the setrlimit() call in SDCCmain.c: /*-------------------------------------------------------------*/ /* setStackSize - set the stack size of a running sdcc process */ /*-------------------------------------------------------------*/ static void=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 setStackSize (void) { #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) struct rlimit rl =3D {4 * 1024 * 1024, 4 * 1024 * 1024}; setrlimit (RLIMIT_STACK, &rl); #endif } It segfaults immediately upon return from the setrlimit() syscall wrapper. Doing: elfctl -e +noaslrstkgap ${WRKSRC}/bin/sdcc makes the problem go away. --=20 You are receiving this mail because: You are the assignee for the bug.=