From:             [EMAIL PROTECTED]
Operating system: Linux 2.4
PHP version:      4.0.6
PHP Bug Type:     Unknown/Other Function
Bug description:  Segfaults due to possible memory leak??

Under 4.0.6, my apache processes start segfaulting with 
the following problem after running (stable) for a period 
of time:
   
    [Tue Aug  7 16:53:30 2001] [notice] child pid 7139 
exit signal Segmentation fault (11)


Once this starts happening, it continues until i kill and 
restart the server.  It will then run fine for some time, 
then happen again.  The period of time that it runs stable 
decreases as hits increase .. 

Running with --enable-debug I get the following in the 
apache error log (I had issues generating a gdb backtrace, 
but if needed I can attempt again):

/usr/www/thinkquest/common/nav_menu.inc(330) : Fatal error 
- Allowed memory size of 12582912 bytes exhausted at 
../../Zend/zend_opcode.c:48 (tried to allocate 184320 
bytes)
/usr/www/thinkquest/common/scripts.inc(3062) : Fatal error 
- Allowed memory size of 12582912 bytes exhausted at 
../../Zend/zend_opcode.c:48 (tried to allocate 11520 bytes)
[Tue Aug  7 16:53:23 2001]  Script:  
'/usr/www/thinkquest/index.html'
---------------------------------------
../../Zend/zend_opcode.c(172) : Block 0x08138E90 status:
Beginning:      Overrun (magic=0x401E8080, 
expected=0x7312F8DC)
      End:      Unknown
---------------------------------------
/usr/www/thinkquest/common/nav_menu.inc(330) : Fatal error 
- Allowed memory size of 12582912 bytes exhausted at 
../../Zend/zend_opcode.c:48 (tried to allocate 184320 
bytes)
/usr/www/thinkquest/common/scripts.inc(1870) : Fatal error 
- Allowed memory size of 12582912 bytes exhausted at 
../../Zend/zend_opcode.c:48 (tried to allocate 184320 
bytes)

... and similar, over and over again.. however the script 
that it occurs in, and the line, are always different..   
I tried increasing the amount of memory allowed per 
script, but it just uses all that up too.. 

As a note... everything runs fine under 4.0.5 .... 

I have cvs updates up to July 20.. The configuration 
parameters I used are:

"../configure" \
"--prefix=/usr" \
"--with-apxs=/usr/bin/apxs" \
"--with-regex=system" \
"--with-config-file-path=/etc/php4/apache" \
"--disable-rpath" \
"--enable-debug" \
"--enable-memory-limit" \
"--enable-calendar" \
"--enable-sysvsem" \
"--enable-sysvshm" \
"--enable-track-vars" \
"--enable-trans-sid" \
"--enable-bcmath" \
"--with-bz2" \
"--enable-ctype" \
"--with-db2" \
"--with-ndbm" \
"--with-ldap=/usr" \
"--with-oci8=/usr/oracle/product/8.1.6" \
"--enable-sigchild" \
"--enable-exif" \
"--enable-filepro" \
"--enable-ftp" \
"--with-gettext" \
"--enable-mbstring" \
"--enable-mbstr-enc-trans" \
"--with-pcre-regex=/usr" \
"--enable-shmop" \
"--enable-sockets" \
"--enable-wddx" \
"--with-xml=/usr" \
"--with-expat-dir=/usr" \
"--enable-yp" \
"--with-zlib" \
"--without-pgsql" \
"--disable-static" \
"--with-layout=GNU" \
"--with-curl=shared,/usr" \
"--with-dom=shared,/usr" \
"--with-gd=shared,/usr" \
"--with-jpeg-dir=shared,/usr" \
"--with-xpm-dir=shared,/usr/X11R6" \
"--with-png-dir=shared,/usr" \
"--with-freetype-dir=shared,/usr" \
"--with-imap=shared,/usr" \
"--with-mcal=shared,/usr" \
"--with-mhash=shared,/usr" \
"--with-mysql=shared,/usr" \
"--with-sablot=shared,/usr" \
"--with-snmp=shared" \
"--with-sybase-ct=shared,/usr" \
"--with-ttf=shared,/usr" \
"--with-t1lib=shared,/usr"

The extension order i use is:

gd.so
imap.so
mhash.so
domxml.so
mysql.so
curl.so

( I tried removing domxml, mhash and curl and the problems 
were still there ) ... 

Also to throw in, I have OCI8 configured with Oracle 8.1.6 
(as seen above) .. linked with pthreads and using Apache 
1.3.20...

Any more info if needed can be provided.

-- 
Edit bug report at: http://bugs.php.net/?id=12634&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to