Bug #12634 Updated: Segfaults due to possible memory leak??

From: Date: Sun, 19 Aug 2001 09:05:03 +0000
Subject: Bug #12634 Updated: Segfaults due to possible memory leak??
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63708@lists.php.net to get a copy of this message
ID: 12634 Updated by: sniper Reported By: katz@advanced.org Old Status: Open Status: Feedback Old Bug Type: Unknown/Other Function Bug Type: Reproducible crash Operating System: Linux 2.4 PHP Version: 4.0.6 New Comment: Does this happen with specific script? Previous Comments: ------------------------------------------------------------------------ [2001-08-07 17:13:46] katz@advanced.org 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 this bug report at http://bugs.php.net/?id=12634&edit=1

« previous php.dev (#63708) next »