php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19496 Apache 2.40 Core Dump
Submitted: 2002-09-19 06:12 UTC Modified: 2002-09-20 21:00 UTC
From: neil dot doody at talk21 dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4CVS-2002-09-19 OS: FreeBSD 4.7-PRERELEASE #2
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: neil dot doody at talk21 dot com
New email:
PHP Version: OS:

 

 [2002-09-19 06:12 UTC] neil dot doody at talk21 dot com
Sep 19 12:02:12 admin /kernel: pid 86191 (httpd), uid 0: exited on signal 11 (core dumped)

I am getting a core dump from apache 2.40 when using the latest CVS, lookily I have a backup of the CVS I was laready using.

This old CVS works fine, I have reinstalled/uninstalled many times and eery time ocre dump with the latest CVS.

Both configure lines are identical in the installs.  Which was :-

./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs

I noticed the message of supplying the path to pth on the latest CVS, so I tried this also :-

./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --with-tsrm-pth=/usr/local/bin/pth-config

The current working CVS I have is dated 2002-09-06.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-19 06:21 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2002-09-19 06:40 UTC] neil dot doody at talk21 dot com
at /home/admin/cvs/b/php4/sapi/apache2filter/sapi_apache2.c:126
#1  0x283d79b3 in sapi_send_headers ()
    at /home/admin/cvs/b/php4/main/SAPI.c:696
#2  0x283819a8 in php_header ()
    at /home/admin/cvs/b/php4/ext/standard/head.c:62
#3  0x283dfbab in php_ub_body_write (
    str=0x81a100c "<br />\n<b>Warning</b>:  Function registration failed - duplicate name - apache_lookup_uri in <b>Unknown</b> on line <b>0</b><br />\n",
    str_length=131) at /home/admin/cvs/b/php4/main/output.c:686
#4  0x283debc2 in php_body_write (
    str=0x81a100c "<br />\n<b>Warning</b>:  Function registration failed - duplicate name - apache_lookup_uri in <b>Unknown</b> on line <b>0</b><br />\n",
    str_length=131) at /home/admin/cvs/b/php4/main/output.c:104
#5  0x283d135a in php_printf (
    format=0x2843d700 "<br />\n<b>%s</b>:  %s in <b>%s</b> on line <b>%d</b><br />\n") at /home/admin/cvs/b/php4/main/main.c:388
#6  0x283d1a41 in php_error_cb (type=32, error_filename=0x2845104b "Unknown",
    error_lineno=0,
    format=0x284512a0 "Function registration failed - duplicate name - %s",
    args=0xbfbff994 "?*E(>??(\2343F(@2F(@2F(?(=(\2343F(?0F((4\016\b%\017\"(?*E( ") at /home/admin/cvs/b/php4/main/main.c:609
#7  0x283f8cd6 in zend_error (type=32,
    format=0x284512a0 "Function registration failed - duplicate name - %s")
    at /home/admin/cvs/b/php4/Zend/zend.c:710
#8  0x283fb42e in zend_register_functions (functions=0x28463200,
    function_table=0x0, type=1) at /home/admin/cvs/b/php4/Zend/zend_API.c:1060
#9  0x283fb52f in zend_register_module (module=0x28463240)
    at /home/admin/cvs/b/php4/Zend/zend_API.c:1103
#10 0x283fb325 in zend_startup_module (module=0x28463240)
    at /home/admin/cvs/b/php4/Zend/zend_API.c:1014
#11 0x2841289d in php_apache_register_module ()
    at /home/admin/cvs/b/php4/sapi/apache2filter/php_functions.c:172
#12 0x28411ca5 in php_apache_server_startup (pconf=0x80e0018, plog=0x8118018,
    ptemp=0x811e018, s=0x80e3428)
    at /home/admin/cvs/b/php4/sapi/apache2filter/sapi_apache2.c:505
#13 0x8097ec1 in ap_run_post_config (pconf=0x80e0018, plog=0x8118018,
    ptemp=0x811e018, s=0x80e3428) at config.c:129
#14 0x809c47c in main (argc=3, argv=0xbfbffbd8) at main.c:634
#15 0x8065301 in _start ()
 [2002-09-19 06:42 UTC] neil dot doody at talk21 dot com
I just noticed, I forgot to compile with the --enable-debug, does that matter, is the info supplied sufficient?  Ill do it again if needs be.
 [2002-09-19 20:30 UTC] sniper@php.net
Yes, --enable-debug should be used. But please get a fresh
snapshot, there have been couple of fixes just recently.

 [2002-09-20 04:13 UTC] neil dot doody at talk21 dot com
Okay,I got the latest version and I enabled the debugging.

[LATEST CORE DUMP DEBUG AT THE BOTTOM]

Firstly can I say that this newer version is worse in that configure fails.

HEres some of the errors when running buildconf :-

----------------------------

buildconf: automake version 1.6.3 (ok)
buildconf: libtool version 1.4.1 (ok)
rebuilding configure
ext/yaz/config.m4:32: /usr/local/bin/gm4: Warning: Excess arguments to built-in `m4_if' ignored
configure:88216: error: possibly undefined macro: AS_ESCAPE
configure:88217: error: possibly undefined macro: m4_warn
configure:88219: error: possibly undefined macro: _AS_ECHO
rebuilding acconfig.h
rebuilding main/php_config.h.in

ext/yaz/config.m4:32: /usr/local/bin/gm4: Warning: Excess arguments to built-in `m4_if' ignored
autoheader: `main/php_config.h.in' is created

-------------------------------

Heres the error of configure :-

./configure: line 88207: syntax error near unexpected token `&6]))'
./configure: line 88207: `echo \"" >&6]))],'

--------------------------------


I fixed up the configure script and installed php.  I found that the errors where only for outputting messages to me, which I cared not about.

HEre is the output of the core dump :-

#0  0x28412740 in execute (op_array=0x28478090)
    at /home/admin/cvs/php4/Zend/zend_execute.c:318
#1  0x283d8d03 in sslow (m=0x284647bc, start=0x0,
    stop=0xbfbff844 "t???\022?=(\f\020\032\b\203", startst=675107865,
    stopst=675694524) at /usr/include/ctype.h:152
#2  0x28381b08 in zif_proc_open (ht=675694524, return_value=0x28477ee0,
    this_ptr=0xbfbff874, return_value_used=675111183)
    at /home/admin/cvs/php4/ext/standard/exec.c:939
#3  0x283e0efb in php_ini_displayer (ini_entry=0x81a100c, module_number=131)
    at /home/admin/cvs/php4/main/php_ini.c:112
#4  0x283dff12 in php_checkuid (
    filename=0x1953 <Address 0x1953 out of bounds>,
    fopen_mode=0x83 <Address 0x83 out of bounds>, mode=675539712)
    at /home/admin/cvs/php4/main/safe_mode.c:123
#5  0x283d267e in big2_scanPercent (enc=0x2843eb00,
    ptr=0x2843eab8 "ted, use the call_user_func variety with the array(&$obj, \"method\") syntax instead",
    end=0x812640c "Function registration failed - duplicate name - apache_lookup_uri", nextTokPtr=0x284523cb)
    at /home/admin/cvs/php4/ext/xml/expat/xmltok_impl.c:897
#6  0x283d2d65 in big2_prologTok (enc=0x20,
    ptr=0x284523cb "\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005a\005`\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005b\005a\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005F\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005P\005c\005b\005F\005F\005F\005F\005F\005F"..., end=0x0, nextTokPtr=0x28452620)
    at /home/admin/cvs/php4/ext/xml/expat/xmltok_impl.c:995
#7  0x283fa04e in zend_do_qm_false (result=0x20, false_value=0x28452620,
    qm_token=0x28453e79, colon_token=0x283fc6b6)
    at /home/admin/cvs/php4/Zend/zend_compile.c:2355
#8  0x283fc7a6 in zend_strip ()
    at /home/admin/cvs/php4/Zend/zend_highlight.c:240
#9  0x283fc8a7 in zend_llist_prepend_element (l=0x28464660, element=0x284647bc)
    at /home/admin/cvs/php4/Zend/zend_llist.c:56
#10 0x283fc69d in zend_strip () at /usr/include/stdio.h:363
#11 0x28413c15 in execute (op_array=0x80e0018)
    at /home/admin/cvs/php4/Zend/zend_execute.c:71
#12 0x2841301d in execute (op_array=0x80e0018)
    at /home/admin/cvs/php4/Zend/zend_execute.c:72
#13 0x8097ec1 in ap_run_post_config (pconf=0x80e0018, plog=0x8118018,
    ptemp=0x811e018, s=0x80e3428) at config.c:129
#14 0x809c47c in main (argc=3, argv=0xbfbffbd8) at main.c:634
#15 0x8065301 in _start ()
 [2002-09-20 12:35 UTC] neil dot doody at talk21 dot com
Can you tell me this ?


Why is this :-

/home/admin/cvs/php4/ext/standard/exec.c

Being called ?

The latest install comes from the directory /home/admin/cvs/c/php4 [this is the source directory]

Surely it should never try to have any referrence to the file "/home/admin/cvs/php4/ext/standard/exec.c" ?  Plus once it is installed it shoulndt be calling to the source any more any how ?
 [2002-09-20 20:07 UTC] neil dot doody at talk21 dot com
Just to keep you informed, I just deleted my apache build and source, recompiled it from fresh and got the latest cvs again [the configure script now works at least] and rebuilt that too.

Total clean install and same core dump.
 [2002-09-20 21:00 UTC] zeev@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC