php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11718 Apache core dumps with PHP4 and IMAP && LDAP modules loaded
Submitted: 2001-06-26 23:52 UTC Modified: 2001-07-01 04:42 UTC
From: bruder at conectiva dot com dot br Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Conectiva Linux (kernel 2.2.x/GL
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bruder at conectiva dot com dot br
New email:
PHP Version: OS:

 

 [2001-06-26 23:52 UTC] bruder at conectiva dot com dot br
I have a linux 2.2.x with the following configuration:
GLIBC 2.2.3
OpenLDAP 2.0.11 (with SSL)
imap-2000c (with SSL)
Apache 1.3.19 (with SSL enabled by default)

When I load imap and ldap modules of PHP4, Apache coredumps.

PHP4's configure:
./configure \
        --prefix=%{_prefix} --disable-debug --enable-pic
--enable-inline-optimization \
        --with-apxs=%{_sbindir}/apxs --enable-shared 
--disable-static \
        --with-config-file-path=%{_sysconfdir}/php4/apache
        --with-exec-dir=%{_bindir} --with-regex=system
--with-gettext --with-freetype-dir=%{_prefix} \
        --with-gd --with-jpeg-dir=%{_prefix} --with-png
--with-zlib --with-db2 --with-db3 \
        --with-gdbm --enable-debugger --enable-openssl
--enable-magic-quotes --enable-safe-mode \
        --enable-sockets  --enable-sysvsem --enable-sysvshm
--enable-track-vars \
        --enable-yp --enable-wddx --enable-snmp --enable-dbf \
        --enable-ftp --enable-mcrypt --enable-bcmath
--without-mysql \
        --without-unixODBC --enable-debug --with-xml

imap and ldap runtime modules are build with:
build_ext() {
%{__cc} -fPIC -shared %{optflags} \
        -DCOMPILE_DL_`echo $1 | tr '[a-z]' '[A-Z]'` \
        -DHAVE_`echo $1 | tr '[a-z]' '[A-Z]'` \
        -I. -I./main -I`%{_sbindir}/apxs -q INCLUDEDIR`
-I./Zend \
        -I%{_includedir}/freetype -I%{_includedir}/$1 \
        -I./ext/$1 -I./ext/$1/lib$1 \
        -I./ext/xml/expat/xmltok -I./ext/xml/expat/xmlparse \
        -I./TSRM \
        `grep ^CPPFLAGS Zend/Makefile | cut -f2- -d=` \
        $4 $2 -o $1.so -L.libs $3 -lc
    }

build_ext imap ext/imap/php_imap.c "-limap" "-DHAVE_IMAP2000
-DHAVE_IMAP_SSL"
build_ext ldap ext/ldap/ldap.c "-lldap -llber"

Apache doesnt coredumps if I load only php4-imap or only
php4-ldap
modules (php4 cgi version works).

Anybody have any clue for that?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 12:27 UTC] sniper@php.net
Is your apache linked with libpthread?

 [2001-07-01 03:32 UTC] bruder at conectiva dot com dot br
nope. It's necessary?
 [2001-07-01 04:42 UTC] sniper@php.net
Yes it is. If any of the libraries PHP is linked with
is linked with libpthread, then Apache has to be linked 
with libpthread too. This is a glibc bug actually.

Information how to do this can be found on this manual
page:

http://www.php.net/oci8

If this doesn't help you, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC