php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2782 Apache 1.3.9 crashes when trying to load PHP4b3 module
Submitted: 1999-11-20 20:57 UTC Modified: 1999-11-23 10:41 UTC
From: andri at marknet dot ee Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 3 OS: Linux 2.2.13
Private report: No CVE-ID: None
 [1999-11-20 20:57 UTC] andri at marknet dot ee
Apache crashes when trying to load PHP4 module, regardless of what I compile in to php4. Note that I have not had any success with b1 or b2 either, too.
Apache is self-compiled 1.3.9, with EAPI (mod_ssl), PHP3.0.12 and Apache/Jserv. Sources from RH SRPM, (created a EAPI patch).

A little copy from my console:
-----
[root@grumpy php-4.0b3]# /usr/sbin/httpd
[Sat Nov 20 21:56:18 1999] [warn] Loaded DSO lib/apache/mod_jserv.so uses plain
Apache 1.3 DSO, this module might crash under EAPI!
[Sat Nov 20 21:56:19 1999] [warn] Loaded DSO lib/apache/libphp3.so uses plain Apache 1.3 DSO, this module might crash under EAPI!
Segmentation fault
[root@grumpy php-4.0b3]# gdb /usr/sbin/httpd
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...
(gdb) run
Starting program: /usr/sbin/httpd
[Sat Nov 20 21:56:26 1999] [warn] Loaded DSO lib/apache/mod_jserv.so uses plain
Apache 1.3 DSO, this module might crash under EAPI!
[Sat Nov 20 21:56:28 1999] [warn] Loaded DSO lib/apache/libphp3.so uses plain Apache 1.3 DSO, this module might crash under EAPI!
 
Program received signal SIGSEGV, Segmentation fault.
0x20636973 in ?? ()
(gdb) bt
#0  0x20636973 in ?? ()
#1  0x404ae9a8 in sapi_startup (sf=0x405515c0) at SAPI.c:79
#2  0x404f1402 in php_init_handler (s=0x8093af4, p=0x8093acc) at mod_php4.c:503
#3  0x8054b21 in ap_init_modules ()
#4  0x805c25e in main ()
#5  0x400b91eb in __libc_start_main (main=0x805bff0 <main>, argc=1,
    argv=0xbffffd04, init=0x804efc8 <_init>, fini=0x807b35c <_fini>,
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffcfc)
    at ../sysdeps/generic/libc-start.c:90
(gdb)
-----

Dunno. EAPI trouble? Maybe.

PHP4 was configured with: ./configure --with-apxs=/usr/sbin/apxs

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-23 10:41 UTC] sas at cvs dot php dot net
Compile PHP against the patched Apache. As the warning message says, it was compiled against unpatched headers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 00:01:32 2024 UTC