php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13139 apache rpoert many crashes of children
Submitted: 2001-09-04 13:25 UTC Modified: 2001-09-04 20:11 UTC
From: vincent at xaymaca dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.0.6 OS: redhat linux 6.2 i386
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: vincent at xaymaca dot com
New email:
PHP Version: OS:

 

 [2001-09-04 13:25 UTC] vincent at xaymaca dot com
This GDB was configured as "i386-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x2ac57f51 in ?? () from /usr/local/apache/libexec/libphp4.so
(gdb) bt
#0  0x2ac57f51 in ?? () from /usr/local/apache/libexec/libphp4.so
#1  0x2ac6fee6 in ?? () from /usr/local/apache/libexec/libphp4.so
#2  0x2ac6f0ca in ?? () from /usr/local/apache/libexec/libphp4.so
#3  0x2ac6e99d in ?? () from /usr/local/apache/libexec/libphp4.so
#4  0x2afacadd in ?? () from /usr/local/apache/libexec/libphp4.so
#5  0x2af82115 in ?? () from /usr/local/apache/libexec/libphp4.so
#6  0x2af85417 in ?? () from /usr/local/apache/libexec/libphp4.so
#7  0x2af81229 in ?? () from /usr/local/apache/libexec/libphp4.so
#8  0x2af92c26 in ?? () from /usr/local/apache/libexec/libphp4.so
#9  0x2af90786 in ?? () from /usr/local/apache/libexec/libphp4.so
#10 0x8071cce in run_cleanups ()
#11 0x80704fd in ap_clear_pool ()
#12 0x8070571 in ap_destroy_pool ()
#13 0x80704ec in ap_clear_pool ()
#14 0x807fcff in child_main ()
#15 0x80802bc in make_child ()
#16 0x8080419 in startup_children ()
#17 0x8080a56 in standalone_main ()
#18 0x80811e3 in main ()
#19 0x2ab649cb in __libc_start_main (main=0x8080e9c <main>, argc=2, argv=0x7ffffb04, init=0x804ef6c <_init>, fini=0x80b59ec <_fini>, rtld_fini=0x2aab5e60 <_dl_fini>, 
    stack_end=0x7ffffafc) at ../sysdeps/generic/libc-start.c:92
(gdb) quit
The program is running.  Exit anyway? (y or n) y

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-04 13:31 UTC] vincent at xaymaca dot com
also php was configured in this manner: 

./configure  --disable-xml --with-mysql=/usr/local --with-apxs=/usr/local/apache/bin/apxs --with-midgard=/usr/local --with-imap  --enable-debug


and a sample of the apache log:

preparser-scanner.l(450) :  Freeing 0x0821DBFC (425 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 29 times
midgard.c(441) :  Freeing 0x0816E514 (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
[Tue Sep  4 13:27:59 2001] [notice] child pid 10548 exit signal Segmentation fault (11)
preparser-scanner.l(450) :  Freeing 0x0816F73C (329 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 4 times
midgard.c(441) :  Freeing 0x0816E2D4 (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
community-list-5(2) : Warning - file("community.inc") - No such file or directory
community-list-5(2) : Warning - Bad arguments to implode()
preparser-scanner.l(450) :  Freeing 0x0821BFA4 (425 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 29 times
midgard.c(441) :  Freeing 0x0816E53C (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
preparser-scanner.l(450) :  Freeing 0x081BD1BC (329 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 4 times
midgard.c(441) :  Freeing 0x0816F784 (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
preparser-scanner.l(450) :  Freeing 0x081FA55C (425 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 29 times
midgard.c(441) :  Freeing 0x0816E3DC (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
preparser-scanner.l(450) :  Freeing 0x0816F85C (329 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 4 times
midgard.c(441) :  Freeing 0x0816E424 (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
community-list-5(2) : Warning - file("community.inc") - No such file or directory
community-list-5(2) : Warning - Bad arguments to implode()
community-list-5(2) : Warning - file("community.inc") - No such file or directory
community-list-5(2) : Warning - Bad arguments to implode()
/web/sites/hitlist.com/phpAds/view.inc.php3(5) : Fatal error - Cannot redeclare get_banner()
preparser-scanner.l(450) :  Freeing 0x0822BAC4 (425 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 29 times
midgard.c(441) :  Freeing 0x081664FC (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
preparser-scanner.l(450) :  Freeing 0x082140EC (425 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 29 times
midgard.c(441) :  Freeing 0x08173344 (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
[Tue Sep  4 13:28:01 2001] [notice] child pid 10562 exit signal Segmentation fault (11)
preparser-scanner.l(450) :  Freeing 0x081CF7CC (329 bytes), script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 4 times
midgard.c(441) :  Freeing 0x08181174 (12 bytes), script=/usr/local/apache/libexec/midgard-root.php
/web/sites/hitlist.com/phpAds/view.inc.php3(5) : Fatal error - Cannot redeclare get_banner()


appears to be a memory leakage problem
 [2001-09-04 13:47 UTC] derick@php.net
This looks like a bug in midgard, can you please file them
a bugreport too, and report back if you got answer from them?

(You get better backtraces with a static module BTW, please try that too)

Derick
 [2001-09-04 14:21 UTC] vincent at xaymaca dot com
here is the back trace from static compile:
sending to the midgard group.

(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x2aad8f51 in mysql_free_result () from /usr/local/lib/mysql/libmysqlclient.so.10
(gdb) bt
#0  0x2aad8f51 in mysql_free_result () from /usr/local/lib/mysql/libmysqlclient.so.10
#1  0x2aaf0ee6 in mgd_release (res=0x81f1024) at midgard.c:1203
#2  0x2aaf00ca in mgd_clear (mgd=0x82ab5f0) at midgard.c:520
#3  0x2aaef99d in mgd_close (mgd=0x82ab5f0) at midgard.c:201
#4  0x80a3dd8 in php_rshutdown_midgard (type=1, module_number=14) at midgard.c:455
#5  0x81233ae in module_registry_cleanup (module=0x82ef458) at zend_API.c:785
#6  0x8125fe1 in zend_hash_apply (ht=0x82906c0, apply_func=0x8123388 <module_registry_cleanup>) at zend_hash.c:688
#7  0x8122737 in zend_deactivate_modules () at zend.c:526
#8  0x8091c5d in php_request_shutdown (dummy=0x0) at main.c:657
#9  0x808fc61 in php_apache_request_shutdown ()
#10 0x81498ae in run_cleanups ()
#11 0x81480dd in ap_clear_pool ()
#12 0x8148151 in ap_destroy_pool ()
#13 0x8157d5d in child_main ()
#14 0x8157e9c in make_child ()
#15 0x8157ff9 in startup_children ()
#16 0x8158636 in standalone_main ()
#17 0x8158dc3 in main ()
#18 0x2ac109cb in __libc_start_main (main=0x8158a7c <main>, argc=2, argv=0x7ffffb04, init=0x806d6c0 <_init>, fini=0x81cf68c <_fini>, rtld_fini=0x2aab5e60 <_dl_fini>, 
    stack_end=0x7ffffafc) at ../sysdeps/generic/libc-start.c:92


 [2001-09-04 20:11 UTC] sniper@php.net
This is the PHP bug database. Just report it to Midgard
folks since it clearly is a crash in their extension.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC