php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6357 SIGSEGV in send_php() on Apache-1.3.12
Submitted: 2000-08-25 12:52 UTC Modified: 2000-10-02 22:54 UTC
From: ged-php at FaerieMUD dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.2 OS: GNU/Linux 2.2.14
Private report: No CVE-ID: None
 [2000-08-25 12:52 UTC] ged-php at FaerieMUD dot org
Running Apache/1.3.12 (Unix) PHP/4.0.1pl2 mod_perl/1.24:

Compiled PHP with:

  configure  --with-mysql=/usr/local --with-apxs

Php.ini unmodified from php.ini-dist.

A document called 'index.php' at the docroot with the single line:

  <?phpinfo()?>

Causes server to segfault:

oberon [~]
3 # gdb /www/httpd/sbin/httpd 
GNU gdb 5.0
Copyright 2000 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 "i586-pc-linux-gnu"...
(gdb) run -X
Starting program: /www/httpd/sbin/httpd -X
[Fri Aug 25 11:13:35 2000] [info] mod_unique_id: using ip addr 206.247.195.65
[Fri Aug 25 11:13:40 2000] [warn] pid file /www/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Aug 25 11:13:52 2000] [info] mod_unique_id: using ip addr 206.247.195.65
[Fri Aug 25 11:13:53 2000] [info] created shared memory segment #1792

Program received signal SIGSEGV, Segmentation fault.
0x404caab7 in send_php (r=0x94c48e4, display_source_mode=0, filename=0x0) at mod_php4.c:450
450             per_dir_conf = (HashTable *) get_module_config(r->per_dir_config, &php4_module);
(gdb) where
#0  0x404caab7 in send_php (r=0x94c48e4, display_source_mode=0, filename=0x0) at mod_php4.c:450
#1  0x404cacae in send_parsed_php (r=0x94c48e4) at mod_php4.c:527
#2  0x8075ed9 in ap_invoke_handler ()
#3  0x808a39f in process_request_internal ()
#4  0x808a40a in ap_process_request ()
#5  0x80815f6 in child_main ()
#6  0x80817b1 in make_child ()
#7  0x808192c in startup_children ()
#8  0x8081f8d in standalone_main ()
#9  0x80827bc in main ()
#10 0x4015da81 in __libc_start_main (main=0x8082424 <main>, argc=2, argv=0xbffff934, init=0x80541b8 <_init>, 
    fini=0x80a01d4 <_fini>, rtld_fini=0x40009c64 <_dl_fini>, stack_end=0xbffff92c) at ../sysdeps/generic/libc-start.c:90
(gdb)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-02 07:05 UTC] ged-php at FaerieMUD dot org
Just re-tested using PHP 4.0.2, and the exact same crash happens.
 [2000-09-02 07:07 UTC] ged-php at FaerieMUD dot org
Just re-tested using PHP 4.0.2, and the exact same crash happens.
 [2000-09-02 18:48 UTC] sniper@php.net
Are you using any other modules with apache than php4 and mod_perl ??

--Jani
 [2000-10-02 22:54 UTC] sniper@php.net
Please try php4.0.3 when it is released (real soon now)
and reopen this bug report if problem still exists.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 09:00:02 2026 UTC