Re: [PHP4BETA] Segmentation fault
| From: | Zeev Suraski | Date: | Sat, 15 Jan 2000 22:58:27 +0000 |
| Subject: | Re: [PHP4BETA] Segmentation fault | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9163@lists.php.net to get a copy of this message | ||
There's no way this backtrace corresponds to the script your enclosed. However, I was able to reproduce the problem using your test case (thanks!), and fixed it.
Zeev
At 21:42 14/01/2000 , Vadim Tkachenko wrote:
I have simple script. <? class one { var $variab; function one($val){ $varib=$val; } } $testclas=new one(); echo "Starting $testclas"; ?> In result - segmentation fault; (Latest CVS ) Program received signal SIGSEGV, Segmentation fault. 0x4018b2e0 in zend_highlight (syntax_highlighter_ini=0x0) at zend_highlight.c:160-- Zeev Suraski <zeev@zend.com> http://www.zend.com/160 zend_printf("</font>\n");(gdb) bt #0 0x4018b2e0 in zend_highlight (syntax_highlighter_ini=0x0) at zend_highlight.c:160 #1 0x4020c128 in yy_state_buf () from /usr/apache-php4/libexec/libphp4.so #2 0x401914d1 in module_destructor (module=0x812af60) at zend_API.c:797 #3 0x401848d3 in execute (op_array=0x8127598) at ./zend_execute.c:1648 #4 0x40171116 in cfgparse () at configuration-parser.y:471 #5 0x4019d333 in php_if_apache_note (ht=135340188, return_value=0x13, list=0x0, plist=0x4020c128, this_ptr=0x4020c128,return_value_used=1073784336) at apache.c:138 #6 0x4019da1a in php_if_virtual (ht=135340188, return_value=0x0, list=0x8112adc, plist=0x4020c128, this_ptr=0x4019da54, return_value_used=135340956) at apache.c:293 #7 0x4019da74 in php_if_virtual (ht=135340188, return_value=0x401fc7bf, list=0x0, plist=0x80ddf04, this_ptr=0x4015248c, return_value_used=21) at apache.c:301#8 0x8075c87 in ap_invoke_handler () #9 0x808a58c in process_request_internal () #10 0x808a602 in ap_process_request () #11 0x8081790 in child_main () #12 0x8081945 in make_child () #13 0x8081ac4 in startup_children () #14 0x808212d in standalone_main () #15 0x808294c in main () #16 0x4007c1eb in __libc_start_main (main=0x80825d0 <main>, argc=2, argv=0xbffffc44, init=0x804fb88 <_init>,fini=0x80b6f9c <_fini>, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffc3c) at ../sysdeps/generic/libc-start.c:90