Re: [PHP4BETA] crash in lastest CVS (patch included)

From: Date: Mon, 09 Aug 1999 17:24:07 +0000
Subject: Re: [PHP4BETA] crash in lastest CVS (patch included)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3242@lists.php.net to get a copy of this message
Thanks. That patch is correct. I fixed it in the CVS. Andi At 03:14 PM 8/9/99 +0200, Thies C. Arntzen wrote:
hi, the script that crashes is pretty complicated (zeev knows). the actual script snippet is:
          switch ($mymimetype)
            {
              default:
                $mysize = false;
                $mytag  = false;
                break;
            }
changing this to
        switch ($mymimetype)
            {
              default:
                $mysize = 0;
                $mytag  = 0;
                break;
            }
fixes the crash. also reverting to zend_execute.c to 1.68 fixes the problem! the attached patch is my "best guess" for the problem. gdb says: Program received signal SIGSEGV, Segmentation fault. 0x31e98 in _efree (ptr=0x9af964) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_alloc.c:180
180             REMOVE_POINTER_FROM_LIST(p);
(gdb) where #0 0x31e98 in _efree (ptr=0x9af964) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_alloc.c:180 #1 0x3c38c in zval_dtor (zvalue=0x9af974) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_variables.c:62 #2 0x47360 in execute (op_array=0x7eb2b8) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_execute.c:1695 #3 0x461cc in execute (op_array=0x12b0e8) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_execute.c:1448 #4 0x461cc in execute (op_array=0x5d0d38) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_execute.c:1448 #5 0x461cc in execute (op_array=0x10c0e0) at /dot/dc4/zend/cgi-debug/../php4/libzend/zend_execute.c:1448 #6 0x26490 in php_execute_script (primary_file=0xeffff7e8) at ../php4/main.c:1138 #7 0x2bf6c in main (argc=2, argv=0xeffff86c) at ../php4/cgi_main.c:448 regards, tc
Thies C. Arntzen                 "One Big-Mac, Small Fries and a Coke!"
Digital Collections             Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93                              20097 Hamburg / Germany
-- PHP 4 Beta
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#3242) next »