From nobody Sun Oct 30 13:52:20 2022 X-Original-To: apache@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 4N0d520Ndhz4gxRM for ; Sun, 30 Oct 2022 13:52:22 +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 4N0d5157pwz3ntx for ; Sun, 30 Oct 2022 13:52:21 +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 4N0d514Ctgz103N for ; Sun, 30 Oct 2022 13:52:21 +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 29UDqLOo027013 for ; Sun, 30 Oct 2022 13:52:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29UDqL1H027012 for apache@FreeBSD.org; Sun, 30 Oct 2022 13:52:21 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: apache@FreeBSD.org Subject: [Bug 267435] www/apache24 core dumps when mod_perl, mod_php7, mod_dbd, and GD active Date: Sun, 30 Oct 2022 13:52:20 +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 Some People X-Bugzilla-Who: papowell@astart.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@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 attachments.created 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: Support of apache-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-apache List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-apache@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667137941; 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=Svh9FJmJx2P8Gf5T50N4yZgmwAEO/tKiAqQUgj5Smoo=; b=IAhsrJ186bCweVOfyitqKPBXKCQR6268zGAc4hVpciHbNCgyLDtLcstEilcnGHxuTFdHdE aXdSSeFEhZVQu7Wnj5SRNrGLC0XN6tcXh0n3fhP+4nKVguHjJKw1yT13JUjLO+MtN5Bi2D 9NZOkZ0VS3bgT3Wi0JBUOjFxvem2iepGDLMCGzqm2qR0l4T6RBhorcOE8d5SLRpC+v+gqT Ro3U5XFszXMkEzZ9TBg6u559LLCScDM6I1jkFDCx34Zc39r3lrGN1z6L94vcMBAVn3w8VQ /InIKfAYAAVGAWyz6UaW6Dyyfcv8Q61LHD/38Z5OjiS3cfMCIRhCX/v0QPVyQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667137941; a=rsa-sha256; cv=none; b=Q2MKH0wddDCn4doAHsueZA/kfW61jVupeHFTM/SXA+AiKD/W3VKQ5MVVGoClcZOB9qx9QF F/vfyFcTKuGGKBMxkqpqTvUFK0XUjz4XXXhC/ZjdXr+qoFfauAeqODv/VMcURmtCb7Bcaf ArLdnUqOXuKX+WZ/q9IEn23jb/cVtk4Rca6jK/hTpfAqxMtioe99xAa7qZBpzJVArpC+ky QKi2xgTL/PC+0rvOjRNg1O31sc2byuYdsbBhVRj9VlRJmRFQCbEdZDewnH+YDp+greLlCE wpBEQhGRACjFpxiNRv4m7lhgu+NI2mSt8w+e8/Kv1LIpNg188w8dJVA1tLW8LQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267435 Bug ID: 267435 Summary: www/apache24 core dumps when mod_perl, mod_php7, mod_dbd, and GD active Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: apache@FreeBSD.org Reporter: papowell@astart.com Flags: maintainer-feedback?(apache@FreeBSD.org) Assignee: apache@FreeBSD.org Created attachment 237724 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237724&action= =3Dedit details and how to reproduce problem Apache core dumps when mod_perl, mod_php and mod_dbd with MySQL support are active. The Perl CGI scripts which use GD to generate images now fail with a core d= ump. But only if the mod_php or mod_dbd modules are active. It appears that there are some problems with the Apache DSO support for mod_dbd, mod_perl and/or mod_php. See description.txt and SIM95.tar files for details and how to reproduce th= is problem. Details: FreeBSD 13.1-RELEASE FreeBSD 12.3-RELEASE ports Oct 26, 2022 apache Apache/2.4.54 (FreeBSD) mod_perl ap24-mod_perl2-2.0.12,3 mod_php mod_php74-7.4.32_1 See attached file SIM95_WEB.tar for details and how to reproduce problem I have a web based application which uses: mod_perl - to run perl based CGI scripts. Some of these use the Perl GD module to generate graphics. mod_php7 - to run PHP74 based php scripts mod_dbd - Authentication and password are done by the mod_dbd using a MySQL database (details below). I have been downloading binaries from the PKG server: FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly", } I last downloaded a set of packages on Sept 14 2022. This was done with a set of scripts and downloads and installs the packages and package dependencies. They were basically mod_perl, mod_php and their dependencies. I also compiled devel/apr1, setting MYSQL with the 'make config'. I installed the compiled devel/apr1 and the installed application passed my tests. This was installed on server sim97 and there were no problems. On Oct 10 2022 I set up a sim95, a new server (identical hardware to sim97), installed FreeBSD 12.3-RELEASE, and repeated the package downloads and installs. Much to my surprise there was a problem with the Apache server. As noted above, the application uses mod_perl, mod_php, and mod_dbd. The httpd.conf file has the following entries which load these modules into the Apache server. (There is also a startup.pl file used to set up mod_perl) The Perl CGI scripts which use GD to generate images now fail with a core d= ump. But only if the mod_php or mod_dbd modules are active. httpd.conf pertinent entries: LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so # TEST LoadModule dbd_module libexec/apache24/mod_dbd.so Virtual Host Entry DBDriver mysql # Line 920 in httpd.conf file DBDParams "host=3D127.0.0.1 dbname=3Dpassword user=3Dpwd pass=3Dpwd" # TEST LoadModule perl_module libexec/apache24/mod_perl.so LoadModule php7_module libexec/apache24/libphp7.so If the mod_dbd, perl_module, and php7_module lines are all present THEN a web page which uses GD will cause apache to segment fault. This message will be present in the /var/log/apache/httpd-error.log file: [Tue Oct 25 05:37:28.327954 2022] [core:notice] [pid 27255] AH00052: child pid 27371 exit signal Segmentation fault (11) This message will be present in the /var/log/messages file: Oct 25 06:02:28 sim95 kernel: pid 27583 (httpd), jid 0, uid 80: exited on signal 11 --=20 You are receiving this mail because: You are the assignee for the bug.=