php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19130 Program received signal SIGSEGV, Segmentation fault.
Submitted: 2002-08-27 15:59 UTC Modified: 2002-10-20 23:19 UTC
From: wahibn at hotmail dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.2.2 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wahibn at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-08-27 15:59 UTC] wahibn at hotmail dot com
Running Apache 2.0.40 or previous versions work fine as long as I'm not adding PHP support with it. If module "libphp4.so" is compiled and added into the 
Apache configuration file, then nothing work and Apache refuse to start (no process). Here is the output of the command "gdb httpd":

Program received signal SIGSEGV, Segmentation fault.
0x005434bd in virtual_file_ex () from /etc/httpd/modules/libphp4.so
(gdb) where
#0  0x005434bd in virtual_file_ex () from /etc/httpd/modules/libphp4.so
#1  0x004a0052 in expand_filepath () from /etc/httpd/modules/libphp4.so
#2  0x0049f346 in php_fopen_and_set_opened_path () from /etc/httpd/modules/libphp4.so
#3  0x0049fbcf in php_fopen_with_path () from /etc/httpd/modules/libphp4.so
#4  0x004a069b in php_init_config () from /etc/httpd/modules/libphp4.so
#5  0x0049ceb1 in php_module_startup () from /etc/httpd/modules/libphp4.so
#6  0x0049a068 in php_apache_server_startup () from /etc/httpd/modules/libphp4.so
#7  0x0806616a in ap_run_post_config ()
#8  0x0806b4b8 in main ()
#9  0x002cd3b2 in __libc_start_main () from /lib/libc.so.6


The compile/configure options lines used to build PHP are:
./configure \
        --prefix=/usr \
        --with-layout=GNU \
        --with-config-file-path=/etc \
        --with-exec-dir=/usr/bin \
        --with-openssl \
        --with-zlib \
        --with-bz2 \
        --with-gd \
        --with-ttf \
        --with-png \
        --with-jpeg-dir=/usr \
        --with-png-dir=/usr \
        --with-freetype-dir=/usr \
        --with-expat-dir=/usr \
        --with-gmp \
        --with-xml \
        --with-imap=shared \
        --with-imap-ssl \
        --with-mysql=shared,/usr \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-pgsql=shared \
        --with-ldap=shared \
        --with-pspell \
        --without-pic \
        --disable-debug \
        --disable-rpath \
        --disable-posix \
        --enable-force-cgi-redirect \
        --enable-discard-path \
        --enable-safe-mode \
        --enable-magic-quotes \
        --enable-pic \
        --enable-dmalloc \
        --enable-bcmath \
        --enable-dio \
        --enable-gd-native-ttf \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-track-vars \
        --enable-wddx \
        --enable-inline-optimization \
        --enable-memory-limit

Regards,

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-27 22:14 UTC] sniper@php.net
There's no '--with-apxs2' in your configure line..so is that really the one you used? Also note that Apache2 support in any released version of PHP is experimental and not supposed to be used for any production yet.

 [2002-08-28 12:47 UTC] kalowsky@php.net
setting to feedback
 [2002-09-21 02:12 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2002-09-21 13:15 UTC] wahibn at hotmail dot com
> There's no '--with-apxs2' in your configure line.
There is one, I just forget to put it on the pasted texts of the message. By the way, the same problem is available with PHP 4.2.3. Nothing work and I don't know any body being able to make it work with Apache2 since the begining. PHP compile without error but refuse to work when enable inside the apache configuration file. The only way to make it work is to directly compile it inside the httpd daemon. As a DSO module, it simply *not* work at all.
 [2002-09-21 17:38 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

There were a number of fixes pertaining to crashes in Apache2  in the 4.3.0-dev tree. Please try the snapshot and see if it fixes the problem you are seeing.
 [2002-09-23 14:06 UTC] wahibn at hotmail dot com
> Please try the snapshot and see if it fixes the problem
you are seeing.
Sorry but it doesn't fix the problem at all. The same problem is there at the same place, etc... Any other idea??

Cheer,
 [2002-09-23 14:24 UTC] iliaa@php.net
What mpm model are you using?
 [2002-09-23 15:51 UTC] wahibn at hotmail dot com
> What mpm model are you using?
I use the prefork model here.
 [2002-10-03 22:22 UTC] iliaa@php.net
Are you using virtual() function to include other PHP files into a PHP script?
 [2002-10-20 23:19 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC