|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-27 09:04 UTC] nyama152 at yahoo dot com
Description:
------------
When we include php5 module in httpd.conf, httpd crashes as
[Tue Dec 27 16:17:40 2005] [notice] Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.
9.8a PHP/5.1.1 configured -- resuming normal operations
[Tue Dec 27 16:18:00 2005] [notice] child pid 6203 exit signal Segmentation faul
t (11)
when the first page is looked up (even if it is not php page). php was compiled by
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--enable-trans-sid \
--enable-zend-multibyte --enable-mbstring --enable-mbstr-enc-trans \
--enable-track-vars --enable-force-cgi-redirect --with-iconv=/usr/local --enable-debug?@--without-pdo-sqlite
Actual result:
--------------
# gdb httpd ../core
GNU gdb 6.4
Copyright 2005 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-pc-solaris2.9"...
Core was generated by `/usr/local/apache2/bin/httpd -k restart'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/ssl/lib/libssl.so.0.9.8...done.
Loaded symbols for /usr/local/ssl/lib/libssl.so.0.9.8
Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/local/apr/lib/libaprutil-1.so.0...done.
Loaded symbols for /usr/local/apr/lib/libaprutil-1.so.0
Reading symbols from /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.so...done.
Loaded symbols for /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.so
Reading symbols from /usr/local/apache2/lib/libexpat.so.0...done.
Loaded symbols for /usr/local/apache2/lib/libexpat.so.0
Reading symbols from /usr/local/lib/libiconv.so.2...done.
Loaded symbols for /usr/local/lib/libiconv.so.2
Reading symbols from /usr/local/apr/lib/libapr-1.so.0...done.
Loaded symbols for /usr/local/apr/lib/libapr-1.so.0
Reading symbols from /usr/lib/libsendfile.so.1...done.
Loaded symbols for /usr/lib/libsendfile.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/local/apache2/modules/libphp5.so...done.
Loaded symbols for /usr/local/apache2/modules/libphp5.so
Reading symbols from /usr/local/lib/libz.so...done.
Loaded symbols for /usr/local/lib/libz.so
Reading symbols from /usr/local/lib/libxml2.so.2...done.
Loaded symbols for /usr/local/lib/libxml2.so.2
Reading symbols from /usr/lib/locale/ja/ja.so.2...done.
Loaded symbols for /usr/lib/locale/ja/ja.so.2
Reading symbols from /usr/lib/locale/ja_JP.eucJP/methods_ja_JP.eucJP.so.2...done.
Loaded symbols for /usr/lib/locale/ja_JP.eucJP/methods_ja_JP.eucJP.so.2
#0 0xd06ec097 in ucs_i_jis_table ()
from /usr/local/apache2/modules/libphp5.so
(gdb) bt
#0 0xd06ec097 in ucs_i_jis_table ()
from /usr/local/apache2/modules/libphp5.so
#1 0x08047cb4 in ?? ()
#2 0x08047c08 in ?? ()
#3 0xd0fb5215 in apr_pool_destroy (pool=0x80e1438)
at memory/unix/apr_pools.c:724
#4 0xd0fb522d in apr_pool_destroy (pool=0x80e1438)
at memory/unix/apr_pools.c:727
#5 0xd0fb5215 in apr_pool_destroy (pool=0x80df430)
at memory/unix/apr_pools.c:724
#6 0x080665f4 in destroy_and_exit_process (process=0x7b2275a,
process_exit_value=1744830663) at main.c:254
#7 0x08066fd9 in main (argc=3, argv=0x8047cf8) at main.c:719
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
Thank you for the reply. There was a multi-byte character as you said. I tried again ater the fix. 5.1.1 or the snapshot, and ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --enable-trans-sid \ --enable-zend-multibyte --enable-mbstring --enable-mbstr-enc-trans \ --enable-track-vars --enable-force-cgi-redirect --with-iconv=/usr/local --enable-debug --without-pdo-sqlite give almost the same backtrace results. The snapshot with ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug --without-pdo-sqlite (--without-pdo-sqlite was used to circumvent the following error: /hoge/php5.1200512270930/ext/pdo_sqlite/sqlite/src/os_unix.c:834: undefined reference to `fdatasync' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1) gives rise to # !172 gdb httpd ../core5 GNU gdb 6.4 Copyright 2005 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-pc-solaris2.9"... Core was generated by `/usr/local/apache2/bin/httpd -k restart'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/ssl/lib/libssl.so.0.9.8...done. Loaded symbols for /usr/local/ssl/lib/libssl.so.0.9.8 Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.8...done. Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.8 Reading symbols from /usr/lib/libm.so.1...done. Loaded symbols for /usr/lib/libm.so.1 Reading symbols from /usr/local/apr/lib/libaprutil-1.so.0...done. Loaded symbols for /usr/local/apr/lib/libaprutil-1.so.0 Reading symbols from /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.so...done. Loaded symbols for /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.so Reading symbols from /usr/local/apache2/lib/libexpat.so.0...done. Loaded symbols for /usr/local/apache2/lib/libexpat.so.0 Reading symbols from /usr/local/lib/libiconv.so.2...done. Loaded symbols for /usr/local/lib/libiconv.so.2 Reading symbols from /usr/local/apr/lib/libapr-1.so.0...done. Loaded symbols for /usr/local/apr/lib/libapr-1.so.0 Reading symbols from /usr/lib/libsendfile.so.1...done. Loaded symbols for /usr/lib/libsendfile.so.1 Reading symbols from /usr/lib/librt.so.1...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /usr/lib/libsocket.so.1...done. Loaded symbols for /usr/lib/libsocket.so.1 Reading symbols from /usr/lib/libnsl.so.1...done. Loaded symbols for /usr/lib/libnsl.so.1 Reading symbols from /usr/lib/libpthread.so.1...done. Loaded symbols for /usr/lib/libpthread.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 Reading symbols from /usr/local/lib/libgcc_s.so.1...done. Loaded symbols for /usr/local/lib/libgcc_s.so.1 Reading symbols from /usr/lib/libdl.so.1...done. Loaded symbols for /usr/lib/libdl.so.1 Reading symbols from /usr/lib/libaio.so.1...done. Loaded symbols for /usr/lib/libaio.so.1 Reading symbols from /usr/lib/libmd5.so.1...done. Loaded symbols for /usr/lib/libmd5.so.1 Reading symbols from /usr/lib/libmp.so.2...done. Loaded symbols for /usr/lib/libmp.so.2 Reading symbols from /usr/lib/libthread.so.1...done. Loaded symbols for /usr/lib/libthread.so.1 Reading symbols from /usr/lib/libresolv.so.2...done. Loaded symbols for /usr/lib/libresolv.so.2 Reading symbols from /usr/local/apache2/modules/libphp5.so...done. Loaded symbols for /usr/local/apache2/modules/libphp5.so Reading symbols from /usr/local/lib/libz.so...done. Loaded symbols for /usr/local/lib/libz.so Reading symbols from /usr/local/lib/libxml2.so.2...done. Loaded symbols for /usr/local/lib/libxml2.so.2 Reading symbols from /usr/lib/locale/ja/ja.so.2...done. Loaded symbols for /usr/lib/locale/ja/ja.so.2 Reading symbols from /usr/lib/locale/ja_JP.eucJP/methods_ja_JP.eucJP.so.2...done. Loaded symbols for /usr/lib/locale/ja_JP.eucJP/methods_ja_JP.eucJP.so.2 #0 0xd07163fe in yy_chk () from /usr/local/apache2/modules/libphp5.so (gdb) bt #0 0xd07163fe in yy_chk () from /usr/local/apache2/modules/libphp5.so #1 0xd0fb5423 in apr_pool_clear (pool=0xd0fb4801) at memory/unix/apr_pools.c:689 #2 0x00000000 in ?? ()