Re: bcompiler crash

From: Date: Mon, 28 Mar 2005 12:47:36 +0000
Subject: Re: bcompiler crash
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2226@lists.php.net to get a copy of this message
> MG> I've encountered a crash while using bcompiler (version 0.6). Here goes > a MG> backtrace: > fixed. please update from cvs Works. But now I've encountered another crash:) Backtrace: #0 0x0000002a96144e60 in strcmp () from /usr/local/lib/libc.so.6 (gdb) bt #0 0x0000002a96144e60 in strcmp () from /usr/local/lib/libc.so.6 #1 0x0000002a98e199d5 in zif_bcompiler_write_file (ht=8285176, return_value=0x81f2d8, this_ptr=0x81f720, return_value_used=8538608) at /home/sh/pecl/bcompiler/bcompiler.c:895 #2 0x00000000005838c0 in zend_do_fcall_common_helper (execute_data=0x7fbfffc530, opline=0x824458, op_array=0x81efb0) at /home/sh/php-5.0.3/Zend/zend_execute.c:2711 #3 0x0000000000583b55 in zend_do_fcall_handler (execute_data=0x7fbfffc530, opline=0x824458, op_array=0x81efb0) at /home/sh/php-5.0.3/Zend/zend_execute.c:2843 #4 0x0000000000571bee in execute (op_array=0x81efb0) at /home/sh/php-5.0.3/Zend/zend_execute.c:1400 #5 0x00000000005833e2 in zend_do_fcall_common_helper (execute_data=0x7fbfffc710, opline=0x821f30, op_array=0x81f1a8) at /home/sh/php-5.0.3/Zend/zend_execute.c:2740 #6 0x0000000000583b55 in zend_do_fcall_handler (execute_data=0x7fbfffc710, opline=0x821f30, op_array=0x81f1a8) at /home/sh/php-5.0.3/Zend/zend_execute.c:2843 #7 0x0000000000571bee in execute (op_array=0x81f1a8) at /home/sh/php-5.0.3/Zend/zend_execute.c:1400 #8 0x00000000005887ce in zend_include_or_eval_handler (execute_data=0x7fbfffcb90, opline=0x824890, op_array=0x81efb0) at /home/sh/php-5.0.3/Zend/zend_execute.c:3565 #9 0x0000000000571bee in execute (op_array=0x81efb0) at /home/sh/php-5.0.3/Zend/zend_execute.c:1400 #10 0x00000000005833e2 in zend_do_fcall_common_helper (execute_data=0x7fbfffcdd0, opline=0x81e288, op_array=0x819c68) at /home/sh/php-5.0.3/Zend/zend_execute.c:2740 #11 0x0000000000571bee in execute (op_array=0x819c68) at /home/sh/php-5.0.3/Zend/zend_execute.c:1400 #12 0x000000000054e069 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/sh/php-5.0.3/Zend/zend.c:1069 #13 0x000000000051408c in php_execute_script (primary_file=0x7fbffff4f0) at /home/sh/php-5.0.3/main/main.c:1628 #14 0x000000000058d2a1 in main (argc=2, argv=0x7fbffff638) at /home/sh/php-5.0.3/sapi/cli/php_cli.c:943 Test case (again multiple files): File index.php: <?php include_once('compiler.php'); include_file('config.php'); ?> File compiler.php: <?php function include_file($file) { $fp = fopen($file.".phb", 'w'); bcompiler_write_header($fp); bcompiler_write_file($fp, $file); bcompiler_write_footer($fp); fclose($fp); include_once($file.".phb"); } ?> File config.php: <?php include_file('exception.php'); class Config { } ?> File exception.php: <?php ?> -- mg

« previous php.pecl.dev (#2226) next »