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 4jFzQv6Yv2z6xlkc for ; Thu, 29 Oct 2026 22:28:39 +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 4jFzQv5zqZz4dZr for ; Thu, 29 Oct 2026 22:28:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793312919; 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=z7s5VIU7Qc27vHqDzT4AHV9jcm/l2f8LXfMuNd65FW0=; b=G7nmS7Rr1x0NdmM4OK6/8oVw1JcUIWhv9ktOCCvXTVagKHKb1eBiZDm3f5sn/jDeAtc90D WQ586iT0WRoCPo0j9fXIYmQv+fpT7B+TWxF0c0TnFObXcku5odCowuOAk3Qy59dylMTf8B md0AHHSg50xRNE9Q2Lw76IiOxGtDsghzl45V/IR/mF/DeQHvwv+MKu5vhDTPd7LCFY3Tbt 2whNTsQW7FgurwXBJNkS2EWpYbeavBbMlGzdp5TkcQQyXXdvF8iIr9MNnOjx1Whu4qFmQZ R6+Mygyhcjc2rmylDB8OJCsZUJbPNVZleosSFvDx1LvDTKpJivFofgxvBUqrCA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793312919; b=AbKsqN9WCbiqyS0IUjkapvEhvBf+3ndbD2WlMR+wB3jlzyNjqJruJBDRFqOT6+PEO1j+FC AO+N8oSav6zg9/1wUQJY78wENlE3YskaoeRsS4ithLFGLGLfIov5XIXtOdJuyfYLapqY/C LqfoawP4GValxYSs1AyX+6NcgHFR85VbuAeswdt1dzpr32nJpNZVzJMeK3g6764TSkM5Y5 OaADljVwl4UImlKXg0qcWrjQ+koDWxH+1mKDvpdABBOmPjWyglavGrYgKLPUhpF5khLtpy AuJIhl4PWt5aY0e+fX/nQxXpCexguu6NwiiWG+g3GEDWfy9UCs2UFXTPsUU6eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793312919; 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=z7s5VIU7Qc27vHqDzT4AHV9jcm/l2f8LXfMuNd65FW0=; b=vZrFnHkmVlap9YKYamBzBqW6s+wAXJDBBLY/Z2uSBB2YuYB6KsegThNR12pXFeuhWTF3g+ ZsjuD2N/CwJfmDeYB+sCLudtc835aUIrKpq1cKNKz9vnjG537ZI3D9tvfZ26WuyZn6pKms IUUKIHyFtdj9UJb7ka2WuhNNaRN7g4vWgOiDE4bIxFqOQ64ly8K9lhiNrAdE28GcRR3Qw4 aEjpg7yxCzzm/TLOQ1gFC0oQOEzvfTb9YmsucxMLO7X2Dr+sMUOWQtooCx8kwE37lfoSd5 3X4nYtKDdsHf7IqBkxeLfv9qqe+BIueCfdqAGpS/wN9FPp94GdjXA5LTIap7dw== 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 4jFzQv5fDLzyt7 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 69TMSd1g022194 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 69TMSd3Z022193 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [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-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 300269: www/py-bjoern: Fix segfault on import (exported _close/_read/_w= rite bind to libc) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300269 --- Description --- 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.