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 4N0d516vCrz4gxZg for ; Sun, 30 Oct 2022 13:52:21 +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 4N0d513v88z3pPS 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 4N0d512zPnz105T 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 29UDqLnA027009 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 29UDqLhK027008 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: apache@FreeBSD.org Subject: maintainer-feedback requested: [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-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@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-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: in-reply-to:in-reply-to:references:references; bh=q8c60MvHJl1oYI6WDtmXWQMUgqTeIwz3iaiYD3Q8j7c=; b=AgZkcI/kb/D03IbyN4o6+/TPNjOEOUc1wW5LId4jeLcMytuXKnIOApl89eiOWlN3QuQfgv rppBptBRJf5Q/aYOI9+Na8eHE5W+U8LcoxCRxAjCiZ0MBUxzQE4to6EZgB3g1aIX86xFUh XY4zSu8O/+9F3IBdQ4DiYq9eDLRmuHFoIdr+zLzoPfFp9uRrTzPHPWLl1MEZnYH4u8ebXP 7myY0EVVeuW1B7tjHky0yjgeBKnvIBjH+N7o+YA7J9Kh/owEN0UKBHzfNs6LmvMjOqqNvn +mGLJwAWXuLcO9NQEvfF+ButVxje3GP48IEkTGlEjaOlwM+NMyoRTcJIVQgYZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667137941; a=rsa-sha256; cv=none; b=P9X3LlJqkOSRX86BLwduq9fRXGk1NG238Pr7+xMZGzpxYnk5nQzsl2E8tNJB92sZTD57oH HTLwMXCyTZn+taCZWWzfA7WLCHksz5IDzmLcEFg2uH3ErbkPs7PryUnafjd3IZKQTjTKhH NRYuX0DiJ4rfz3B96656Aq4+oOdDx/TKSkbxHo5bNRq73N4OAwdoGIhqSKg5tDisMjJxCL gG6PAlrEemipl6A0QzLjjTMfXmyg5+I8yTPkf+rx4iskDpCTmZCtBRRBLj/heT3Lcl2961 ptXJJ/6KjHXW+WfFiB0cZRI6B2RlPnjHuegV88nhqdGIRJSaitH46OX6ZXCy9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-apache (Nobody) for maintainer-feedback: Bug 267435: www/apache24 core dumps when mod_perl, mod_php7, mod_dbd, and GD active https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267435 --- Description --- 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