From nobody Mon Dec 04 10:26:40 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 4SkKb556P5z53C37 for ; Mon, 4 Dec 2023 10:26:41 +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 4SkKb536W0z4Py9 for ; Mon, 4 Dec 2023 10:26:41 +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=1701685601; 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=tZp48Q9f8cI5T0/Fb2+mnGvj8WiawzzXkE3TZ9qO4yM=; b=M6Iv3KGfR/f0UxddYRUCOh93z/ij8fM+rtGU4PlZI28arwNTLT60PfAWJMuaEV/AmhRUEt dxzypcWLqjHNuWEmevEpkefNJCgHxeuzuXXV+4AZ0B0TPx1CgQITCkp6BZW68zIeiOWAnt wTdFVywf5mSxDQlL0+5biseomtH3IbdDrCdWKD/41FJjbHmlFPjgISqLawPbfvNtKD/DaQ 1aqkyaU/I1LFQPRf1L5lP9AKVqlTvIVGs9ny/zMkvjooPtHEqmo2w9txSKBxtPQhohIlj3 pjDK68okMytaVBTxhRzPAe3Kq4B69RnV0wcIXbnuByp2B8gC0z9GgTk2hHQPgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701685601; a=rsa-sha256; cv=none; b=s6Y1A/cctf8Nd16iDX/pgbt15ReP1MqcHJ7EGPpq9HdJolBsHiFSK3zvOlKN+lPtoURhmW HUcoDnnae5o/c86EnbjVu4JZEJubPh0kMfQ1y4jO2z955PPslKwJ+krXm0gIyB09gNv1fx WYrZCEd2PNqVDUCG1uJsVKYg7dtJp1jigbtI+xRbSzFayO8HI7v3H9/+PfuvgaiN+y7uHq YMyNoHcXDOPgxJIX0RZKoGTIRFSZGcH1LKfazyeCEWmb/IsB6e/s2sM0/99Qn7yAPcpTRA D3to8ZFC1sXCrKJ0vcMluQ44p/gMwPGDNYgjFa9pmwktllLqCJE9/9ruFvU/GQ== 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 4SkKb524Hcz7WS for ; Mon, 4 Dec 2023 10:26:41 +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 3B4AQfkP060740 for ; Mon, 4 Dec 2023 10:26:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B4AQfah060739 for ports-bugs@FreeBSD.org; Mon, 4 Dec 2023 10:26:41 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 275522] www/mod_php81: Apache crashes on reload after switch to system pcre Date: Mon, 04 Dec 2023 10:26: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: majo-bugs.freebsd.org@cerny.sk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bofh@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-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=3D275522 Bug ID: 275522 Summary: www/mod_php81: Apache crashes on reload after switch to system pcre Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: bofh@freebsd.org Reporter: majo-bugs.freebsd.org@cerny.sk Assignee: bofh@freebsd.org Flags: maintainer-feedback?(bofh@freebsd.org) The change "lang/php81: Update version 8.1.25=3D>8.1.26" https://cgit.freebsd.org/ports/commit/?id=3D06be0d5391f475771145a7a9d68d34b= 0ad5a9b85 is causing apache with mod_php and a bunch of php extensions to crash on re= load (apachectl graceful or signal 30 - SIGUSR1) It crashes reliably on apachectl reload with extensions1 (see comments) with the following back trace: (lldb) target create "httpd" --core "httpd-9988.core" Core file '/tmp/httpd-9988.core' (x86_64) was loaded. (lldb) bt * thread #1, name =3D 'httpd', stop reason =3D signal SIGSEGV * frame #0: 0x000000080141a5d4 libzstd.so.1`___lldb_unnamed_symbol756 + 7= 40 frame #1: 0x00000008027ce1c6 libphp.so`zend_extension_startup(extension=3D0x0000000801b18510) at zend_extensions.c:196:7 frame #2: 0x00000008027b0ba1 libphp.so`zend_llist_apply_with_del(l=3D0x0000000802954100, func=3D(libphp.so`zend_extension_startup at zend_extensions.c:193)) at zend_llist.c:171:7 frame #3: 0x00000008027ce1a8 libphp.so`zend_startup_extensions at zend_extensions.c:217:2 [artificial] frame #4: 0x000000080274f8c7 libphp.so`php_module_startup(sf=3D, additional_modules=3D, num_additional_modules=3D1) at main.c:2= 263:2 frame #5: 0x00000008028ad385 libphp.so`php_apache2_startup(sapi_module=3D) at sapi_apache2.c:381:6 frame #6: 0x00000008028acbd6 libphp.so`php_apache_server_startup(pconf=3D0x0000000800907028, plog=3D, ptemp=3D, s=3D) at sapi_apache2.c:495:6 frame #7: 0x0000000000263d6f httpd`ap_run_post_config + 79 frame #8: 0x000000000025f4cc httpd`main + 2476 frame #9: 0x000000000025e910 httpd`_start + 256 It crashes sporadically on another server with different set of extensions2 (see comments) with the following back trace: (lldb) target create "httpd" --core "httpd-99468.core" Core file '/tmp/httpd-99468.core' (x86_64) was loaded. (lldb) bt * thread #1, name =3D 'httpd', stop reason =3D signal SIGSEGV * frame #0: 0x00000008020f5124 libphp.so`zend_get_callable_name_ex + 164 frame #1: 0x00000008020f9f06 libphp.so`___lldb_unnamed_symbol7929 + 22 frame #2: 0x00000008020dc5d1 libphp.so`zend_llist_apply_with_del + 81 frame #3: 0x000000080207b107 libphp.so`php_module_startup + 2359 frame #4: 0x00000008021da2c5 libphp.so`___lldb_unnamed_symbol9598 + 21 frame #5: 0x00000008021d9aa6 libphp.so`___lldb_unnamed_symbol9593 + 118 frame #6: 0x00000000002627cf httpd`ap_run_post_config + 79 frame #7: 0x000000000025de8c httpd`main + 2476 frame #8: 0x000000000025d2d0 httpd`_start + 256 When I revert external-pcre (the following "lines") from the Makefile: BUILD_DEPENDS=3D re2c>0:devel/re2c CONFIGURE_ARGS+=3D --with-external-pcre=3D${LOCALBASE} and revert pkg-plist so that include/php/ext/pcre/pcre2lib/ header files are installed, the crash on reload does not happen. See also my bug report to PHP project, where I originally thought it is a b= ug of PHP 8.1.26: mod_php 8.1.26 crashes on apache graceful restart https://github.com/php/php-src/issues/12844 Note the following comment by nielsdos (PHP contributor): > If I had to take a guess, one possibility is that a conflicting version o= f pcre2 is used. e.g. when one (transitive) library dependency of an extens= ion depends on pcre2 and php also uses pcre2 for ext/pcre, this can cause p= roblems when different versions are used because of conflicting symbols. > Using the bundled pcre2 would fix this because we prefix some symbol name= s with the name php to avoid that exact issue. --=20 You are receiving this mail because: You are the assignee for the bug.=