Re: libzend/zend_compile.c:1438 crasher
| From: | Zeev Suraski | Date: | Thu, 08 Apr 1999 03:25:09 +0000 |
| Subject: | Re: libzend/zend_compile.c:1438 crasher | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6@lists.php.net to get a copy of this message | ||
At 01:59 08/04/99 +0200, Stig Bakken wrote:
>Do we have a proper way of reporting bugs in libzend yet?
Bugs? :)
> Anyway, here's
>the first I found. libzend configured with --enable-debug, php4
>configured with --with-apache=... Backtrace:
>
>#0 0x80bb4a9 in do_fetch_global_or_static_variable (varname=0xbfffeaa0,
> static_assignment=0x0, fetch_type=2) at zend_compile.c:1438
>#1 0x80cad12 in zendparse () at zend-parser.y:298
>#2 0x80c0183 in compile_files (mark_as_ref=0, file_count=1)
> at zend-scanner.l:201
>#3 0x80c022d in compile_filename (filename=0x8130720) at
>zend-scanner.l:237
>#4 0x80c9523 in execute (op_array=0x8130670) at zend_execute.c:1669
>#5 0x80709af in php3_parse (primary_file=0xbffff9dc) at main.c:1294
>#6 0x8070a06 in apache_php3_module_main (r=0x8129f6c, fd=20,
> display_source_mode=0) at main.c:1620
>#7 0x806e5fa in send_php3 ()
>#8 0x806e63c in send_parsed_php3 ()
>#9 0x809508f in ap_invoke_handler ()
>#10 0x80a7889 in process_request_internal ()
>#11 0x80a7c94 in ap_internal_redirect ()
>#12 0x80684e5 in handle_dir ()
>#13 0x809508f in ap_invoke_handler ()
>#14 0x80a7889 in process_request_internal ()
>#15 0x80a78e8 in ap_process_request ()
>#16 0x809f7d5 in child_main ()
>#17 0x809fa0c in make_child ()
>#18 0x809fd66 in perform_idle_server_maintenance ()
>#19 0x80a025d in standalone_main ()
>#20 0x80a08cb in main ()
>
>(gdb) down
>#0 0x80bb4a9 in do_fetch_global_or_static_variable (varname=0xbfffeaa0,
> static_assignment=0x0, fetch_type=2) at zend_compile.c:1438
>1438 *tmp = static_assignment->u.constant;
>(gdb) print static_assignment
>$4 = (znode *) 0x0
>(gdb) up
>#1 0x80cad12 in zendparse () at zend-parser.y:298
>298 | VARIABLE {
>do_fetch_global_or_static_variable(&$1, NULL, ZEND_FETCH_STATIC CLS_CC); }
That was quick:)
A quick fix as well, committed in the CVS.
I'll look into copying the bugs.php.net mechanism to bugs.zend.com tomorrow :)
Zeev
--
Zeev Suraski <zeev@zend.com> http://www.zend.com/
For a PGP public key, finger bourbon@netvision.net.il