|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-03-27 13:45 UTC] as at netoholic dot de
Description: ------------ any time kill -1 at the httpd for configuration reload crashes httpd, log entry "[notice] seg fault or similar nasty error detected in the parent process" php built as module against apache 2.0.49 with gcc 3.3.3 on SuSE 8.2 Distibution configure line: './configure' '--prefix=/opt/php-httpd' '--enable-magic-quotes' '--enable-bcmath' '--enable-ftp' '--enable-inline-optimizations' '--enable-memory-limit' '--enable-exif' '--with-apxs2=/opt/apache2/bin/apxs' '--with-openssl' '--with-bz2' '--with-zlib' '--with-mysql' '--enable-calendar' '--enable-dbx' '--with-gd' '--with-gd-native-ttf' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-zlib' '--with-freetype-dir=/usr/lib' '--enable-dba' 4.3.4 with identical config runs fine... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
This nasty bug also is being reproduced under FreeBSD 4.8 RELEASE when I try linuxthreads for apache worker thread model. Either HUP or graceful restart of apache 2.0.49 causes log entry like "[notice] seg fault or similar nasty error detected in the parent process" CFLAGS='-O -pipe -march=pentiumpro -DZTS -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -DHAVE_BROKEN_REALPATH -I/usr/local /include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r' \ LIBS='-L/usr/local/lib -llthread -llgcc_r' \ ./configure \ --prefix=/usr/local/php \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-openssl \ --with-mysql=/usr/local/mysql \ --with-zlib \ --with-gd \ --with-jpeg-dir=/usr/local/lib \ --with-png-dir=/usr/local/lib \ --with-imap=/usr/local/src/imap-2002d \ --with-imap-ssl=/usr \ --with-gettext \ --with-xml \ --with-tsrm-pthreads 4.3.4 with identical config runs fine... PS: Native FreeBSD 4.8 pthreads run also fine.This is not bogus. Don't you have a classification of "Duplicate", like Bugzilla? Apache 2.0.49, php 4.3.6. <defiant> [2004-05-02@12:30:29] /var/www -> httpd -k restart <defiant> [2004-05-02@12:30:45] /var/www -> [Sun May 02 12:30:45 2004] [notice] SIGHUP received. Attempting to restart [Sun May 02 12:30:45 2004] [notice] seg fault or similar nasty error detected in the parent process When I comment out the php4 module, it restarts fine! BUILD_apache script: #! /bin/bash CC=gcc \ CFLAGS="-O3 \ -mcpu=k6-2" \ CXX=gcc \ CXXFLAGS="-O3 \ -mcpu=k6-2 \ -felide-constructors \ -ffixed-ebp \ -fno-exceptions \ -fno-rtti" \ \ ./configure \ \ --enable-layout=Apache \ --enable-v4-mapped \ --enable-mods-shared=all \ --enable-cgid \ --enable-deflate \ --enable-cache \ --enable-file-cache \ --enable-disk-cache \ --enable-mem-cache \ --enable-logio \ --enable-unique-id \ --enable-ssl \ --with-gdbm \ --enable-suexec \ --with-suexec-caller=www \ --with-suexec-docroot=/var/www \ --with-suexec-gidmin=1000 \ --with-suexec-uidmin=1000 \ --with-suexec-userdir=cgi-bin BUILD_php4 script: #! /bin/bash CC=gcc \ CFLAGS="-O3 \ -mcpu=k6-2" \ CXX=gcc \ CXXFLAGS="-O3 \ -mcpu=k6-2 \ -felide-constructors \ -ffixed-ebp \ -fno-exceptions \ -fno-rtti" \ \ ./configure \ --with-mysql=/usr/local/mysql \ --with-apxs2 Apache2 using PreFork MPM, so not a thread issue. As I read on other bug listings, the bug has been isolated to pcre code. There are reports that it's fixed in CVS. I'm going to try that momentarily. There's some reports that those fixes didn't work. There is also the issue of rolling out development code into production use, when all that is requested from the PHP developers is a set of patch files for 4.3.6 for this specific issue, without potentially introducting more new bugs to the system.