#35815 [NEW]: Segmentation fault when the first page is be looked up

From: Date: Tue, 27 Dec 2005 08:04:14 +0000
Subject: #35815 [NEW]: Segmentation fault when the first page is be looked up
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91096@lists.php.net to get a copy of this message
From:             nyama152 at yahoo dot com
Operating system: Solaris 9 
PHP version:      5.1.1
PHP Bug Type:     Reproducible crash
Bug description:  Segmentation fault when the first page is be looked up

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

-- 
Edit bug report at http://bugs.php.net/?id=35815&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35815&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35815&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35815&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35815&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35815&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35815&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35815&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35815&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35815&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35815&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35815&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35815&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35815&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35815&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35815&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35815&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35815&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35815&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35815&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35815&r=mysqlcfg


Thread (13 messages)

« previous php.bugs (#91096) next »