From nobody Thu Oct 29 22:28:40 2026 X-Original-To: python@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 4jFzQw2nCJz6xlZD for ; Thu, 29 Oct 2026 22:28:40 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jFzQw04MNz4dMh for ; Thu, 29 Oct 2026 22:28:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793312920; 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=j0+XZ3ngbsO854FAb/3U+OFe0ADIPu/RFbVMuePF70E=; b=xfq/qyY70WB8QepXkHMadq5pG6OHaSTaw9wz389OY86XKS2wt7pXEMeZNCWbxKLv3hvsl4 by8zI+CXxipdyFBIuOZUNgNigXs2TSDvwQ7C46MKEOsvH/jC4GzUz2sUb2Qex0HpKeq5Hp MKqxXFqrwoiy2bHF1EyivvGiM3b+2Wz2dZUYQtPxlrEe3Vz7wnXaUvrENpCp52wRLV28Un 9W8aCo+WUprVDGnnMAtsIedXcAsBH7YtFPXaSfdaOnCmub8+rqak6DOhMXXXhTEIJbXgiM NtZkJ+LgQPBKPCjbjxGTGybPi83kW1euvwUsT1/3btaKQ9kvX+DRyxtBlo8DiA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793312920; b=JWrtteNaxPlz4KPbdKD8Tb2od/6QdfrahbAjTjHqxiUi7/MeaJAY/JkYwihWxmIGnuW9On AtpQPtT/4I+S+QwmMGZDYprQhw149EEFIDUSPJ6L71wPAHRoo96Wq4bS0EacXHSbbC2e0V QC4W3RxuVFbYP/cgYopAfXAie8znpmP/n9JxzacmyY+T2XzwI4lTbU8eHlZ0f5h7nlp+vb P3EdSj9yhk6CqOJyAKTiKj+1ehGqkq9E0cx5SXP7p7B4+jlJ339HtljXl8pqZIuj5mARBv IRzHzKQlTsCKjS2PPcJX+GqCIZ+TU4z8gwYooF5P49myeJk1MD2C9vWv7vp7nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793312920; 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=j0+XZ3ngbsO854FAb/3U+OFe0ADIPu/RFbVMuePF70E=; b=ZK4RKw40fpit6Wlgl4Y3BWDVSVckMxU/QzHP6kOli3JMKEVqKHMJH7NVJWVBdmRutKE8GL AKBnefuaSIEqAMHBiKhHs2BwzMzn4fRut6IPtVCeellMwJ6uLMRLm45L0TGMDxZ7Jt5BWF lS/mDXrl0J7wZsvgXSNV77R72WdMyeA8lcQstx5Av8qhFAsEZaONkmfQx3XVwswVIdaClu IJtZ4kFyhwkVO82Sy0f+R5w6Ad0buc1CJzGzkQFhzMlXcEt9FItrTNlQqJRVJEt3mu4LL0 +0Uqng09xUtL2z1YyM3P02s5eTTGx7PlzHRfctRGHe8UDXBTpQmj7l2xhLpNPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4jFzQv6qqkz10Q8 for ; Thu, 29 Oct 2026 22:28:39 +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 69TMSdw4022202 for ; Thu, 29 Oct 2026 22:28:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 69TMSdwv022201 for python@FreeBSD.org; Thu, 29 Oct 2026 22:28:39 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: python@FreeBSD.org Subject: [Bug 300269] www/py-bjoern: Fix segfault on import (exported _close/_read/_write bind to libc) Date: Thu, 29 Oct 2026 22:28:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: patrick@crandol.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Archive: https://lists.freebsd.org/archives/freebsd-python X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300269 Bug ID: 300269 Summary: www/py-bjoern: Fix segfault on import (exported _close/_read/_write bind to libc) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: patrick@crandol.com Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org Importing bjoern crashes the interpreter with a segmentation fault (no Python exception) on every Python and FreeBSD version, including the current FreeBSD:14 package: $ python3.12 -c 'import bjoern' bjoern/common.h defines exported global variables named _close, _read and _write (built with -fcommon). FreeBSD's libc and libsys export functions with those names (FBSDprivate_1.0), so rtld binds the module's references to them, and _init_common() (common.c:37) then writes into libsys' .text. The patch wraps the globals in common.h in "#pragma GCC visibility push(hidden)" / "pop", so they stay out of the dynamic symbol table and resolve to the module's own copies. It does not rename anything or change the code otherwise. PORTREVISION is bumped and the patch in files/ gets a header saying what it does and its upstream status (Description, Issue ID, Changeset, TODO). Impact: no ports depend on it. Tested: - poudriere bulk on 15.1-RELEASE amd64 with DEFAULT_VERSIONS+=3Dpython=3D3.13: builds, and both modules import from the built package; - poudriere bulk on 15.1-RELEASE amd64 with Python 3.12: builds; in a clean chroot bjoern imports without crashing and serves a WSGI request (HTTP/1.1 200 OK). Upstream: 3.2.2 is the latest release, upstream has been inactive since 2022-09, and the problem is not fixed there. --=20 You are receiving this mail because: You are the assignee for the bug.=