Emiliano wrote:

> Vincent Stoessel wrote:
> 
> 
>>(gdb) run -X
>>Starting program: /usr/local/apache/bin/httpd -X
>>
>>Program received signal SIGSEGV, Segmentation fault.
>>0x2ac73f51 in execute (op_array=0xd) at ./zend_execute.c:1120
>>1120                                                            
>AI_USE_PTR(Ts[opline->result.u.var].var);
>>(gdb) bt
>>#0  0x2ac73f51 in execute (op_array=0xd) at ./zend_execute.c:1120
>>#1  0x2acbb4f0 in php_if_mgd_oop_parameter_search (ht=135725600, 
>return_value=0x2acbb4f0, this_ptr=0x81701e0, return_value_used=2147481928)
>>    at parameter.c:237
>>#2  0x2acb0ec6 in php_if_mgd_get_midgard (ht=135725600, return_value=0x2acbb4f0, 
>this_ptr=0x81701e0, return_value_used=2147481928) at midgard.c:601
>>
> 
> Ehm, OK. Does anyone know how to get reliable backtraces from gdb?
> Because the above (mgd_get_midgard calling mgd_oop_parameter_search
> calling execute) simply is not possible.
> 
> Maybe this (http://www.php.net/bugs-generating-backtrace.php) page is
> right but most binary installs won't have this.
> 
> Emile


I recompiled php 4.0.6 with enable-debug. Now I see this in logs:


preparser-scanner.l(450) :  Freeing 0x0820547C (249 bytes), 
script=/usr/local/apache/libexec/midgard-root.php
Last leak repeated 14 times
midgard.c(440) :  Freeing 0x081624C4 (12 bytes), 
script=/usr/local/apache/libexec/midgard-root.php


ran gdb again and got this when I hit the nadmin page



  gdb /usr/local/apache/bin/httpd
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x2ac69f51 in zendparse () at zend_language_parser.c:2465
2465    { yyvsp[-1].u.constant.value.lval=0; 
yyvsp[-1].u.constant.type=IS_LONG; yyvsp[-1].op_type = IS_CONST; 
INIT_PZVAL(&yyvsp[-1].u.constant); zend_do_binary_op(ZEND_ADD, &yyval, 
&yyvsp[-1], &yyvsp[0] CLS_CC); ;
(gdb) bt
#0  0x2ac69f51 in zendparse () at zend_language_parser.c:2465
#1  0x2ac5f530 in ?? () from /usr/local/apache/libexec/libphp4.so
#2  0x2ac54ee6 in ?? () from /usr/local/apache/libexec/libphp4.so
#3  0x2ac540ca in ?? () from /usr/local/apache/libexec/libphp4.so
#4  0x2ac5399d in ?? () from /usr/local/apache/libexec/libphp4.so
#5  0x2aec9329 in ?? () from /usr/local/apache/libexec/libphp4.so
#6  0x2ae9e4c5 in ?? () from /usr/local/apache/libexec/libphp4.so
#7  0x2aea17c7 in ?? () from /usr/local/apache/libexec/libphp4.so
#8  0x2ae9d5d9 in ?? () from /usr/local/apache/libexec/libphp4.so
#9  0x2aeaefd6 in ?? () from /usr/local/apache/libexec/libphp4.so
#10 0x2aeacb36 in ?? () from /usr/local/apache/libexec/libphp4.so
#11 0x8071cce in run_cleanups ()
#12 0x80704fd in ap_clear_pool ()
#13 0x8070571 in ap_destroy_pool ()
#14 0x808017d in child_main ()
#15 0x80802bc in make_child ()
#16 0x8080419 in startup_children ()
#17 0x8080a56 in standalone_main ()
#18 0x80811e3 in main ()
#19 0x2ab649cb in __libc_start_main (main=0x8080e9c <main>, argc=2, 
argv=0x7ffffb14, init=0x804ef6c <_init>, fini=0x80b59ec <_fini>, 
rtld_fini=0x2aab5e60 <_dl_fini>,
     stack_end=0x7ffffb0c) at ../sysdeps/generic/libc-start.c:92



(gdb) where
#0  0x2ac69f51 in zendparse () at zend_language_parser.c:2465
#1  0x2ac5f530 in ?? () from /usr/local/apache/libexec/libphp4.so
#2  0x2ac54ee6 in ?? () from /usr/local/apache/libexec/libphp4.so
#3  0x2ac540ca in ?? () from /usr/local/apache/libexec/libphp4.so
#4  0x2ac5399d in ?? () from /usr/local/apache/libexec/libphp4.so
#5  0x2aec9329 in ?? () from /usr/local/apache/libexec/libphp4.so
#6  0x2ae9e4c5 in ?? () from /usr/local/apache/libexec/libphp4.so
#7  0x2aea17c7 in ?? () from /usr/local/apache/libexec/libphp4.so
#8  0x2ae9d5d9 in ?? () from /usr/local/apache/libexec/libphp4.so
#9  0x2aeaefd6 in ?? () from /usr/local/apache/libexec/libphp4.so
#10 0x2aeacb36 in ?? () from /usr/local/apache/libexec/libphp4.so
#11 0x8071cce in run_cleanups ()
#12 0x80704fd in ap_clear_pool ()
#13 0x8070571 in ap_destroy_pool ()
#14 0x808017d in child_main ()
#15 0x80802bc in make_child ()
#16 0x8080419 in startup_children ()
#17 0x8080a56 in standalone_main ()
#18 0x80811e3 in main ()
#19 0x2ab649cb in __libc_start_main (main=0x8080e9c <main>, argc=2, 
argv=0x7ffffb14, init=0x804ef6c <_init>, fini=0x80b59ec <_fini>, 
rtld_fini=0x2aab5e60 <_dl_fini>,
     stack_end=0x7ffffb0c) at ../sysdeps/generic/libc-start.c:92








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to