php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14689 apache fails to load php due to mmap failure
Submitted: 2001-12-25 03:36 UTC Modified: 2002-06-13 17:44 UTC
From: dxy at acm dot org Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.0 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dxy at acm dot org
New email:
PHP Version: OS:

 

 [2001-12-25 03:36 UTC] dxy at acm dot org
Apache-1.3.22 fails to load libphp4.so and apachectl, 
therefore, does not complete to "start" or "configtest".

sting:/usr/local/apache[4:20pm] apachectl configtest
Syntax error on line 236 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/loca
l/apache/bin/httpd: fatal: /usr/local/apache/libexec/libphp4.so: mmap failed: No
 such device
sting:/usr/local/apache[4:21pm]

It's Solaris 2.6 for SPARC (105181-30) with 
gcc-2.95.3, Solaris bundled /usr/ccs/bin/ld.

- PHP configure option

LDFLAGS="-L/usr/local/lib -L/usr/local/ssl/lib 
-L/usr/local/pgsql/lib -R/usr/local/lib 
-R/usr/local/ssl/lib -R/usr/local/pgsql/lib" \
./configure --with-apxs=/usr/local/apache/bin/apxs \
--enable-mbstring --enable-mbstr-enc-trans \
--with-ldap=/usr/local --with-openssl \
--with-pgsql=/usr/local/pgsql --without-mysql

'configure' and 'make' appears to complete 
without a problem and generates libphp4.so somehow.

sting:/usr/local/apache/libexec[4:28pm] file lib*
libdav.so:      ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked,
not stripped
libphp4.so:     ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked,
not stripped
libproxy.so:    ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked,
not stripped
sting:/usr/local/apache/libexec[4:28pm] ldd lib*
libdav.so:
libphp4.so:
ld.so.1: /usr/lib/lddstub: fatal: ./libphp4.so: mmap failed: No such device
libproxy.so:
sting:/usr/local/apache/libexec[4:28pm]

With PHP enabled with LoadModule and AddModule entries,
apache fails to start. Disabling PHP by commenting out
those lines brings Apache back to normal.

- Apache configure option

OPTIM="-O2" LDFLAGS="-L/usr/local/lib 
-L/usr/local/pgsql/lib -L/usr/local/ssl/lib 
-R/usr/local/lib -R/usr/local/pgsql/lib 
-R/usr/local/ssl/lib" \
./configure --enable-shared=max --enable-module=most \
--server-uid=www --server-gid=www

I applied the latest linker patch 107733-09 but it didn't 
make any difference.

Do you have any idea why the corrupted shared 
library was produced?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-13 17:44 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 22:01:29 2024 UTC