|
From: Hans R. <ha...@pa...> - 2005-12-27 11:56:10
|
Bart Vanbrabant wrote: >Sönke Ruempler wrote: > > >>eac...@li... <> wrote on : >> >> >> >> >>>See http://httpd.apache.org/dev/debugging.html >>> >>>The way i do it is with gdb, running apache in single thread >>>mode (run >>>-X in gdb) >>> >>>You will probably need to isolate your development/debugging >>>work on a >>>webserver that does not serve any other reqs at that time. >>> >>> >>> >>Thx for instructions. >> >>Here the first output: >> >>(gdb) file /usr/sbin/httpd >>Reading symbols from /usr/sbin/httpd...done. >>Using host libthread_db library "/lib/libthread_db.so.1". >>(gdb) set args -X >>(gdb) run >>Starting program: /usr/sbin/httpd -X >>Reading symbols from shared object read from target memory...done. >>Loaded system supplied DSO at 0xffffe000 >>[Thread debugging using libthread_db enabled] >>[New Thread -1213249856 (LWP 18670)] >> >>Program received signal SIGSEGV, Segmentation fault. >>[Switching to Thread -1213249856 (LWP 18670)] >>_efree (ptr=0x0) at /usr/src/php-5.1.1/Zend/zend_alloc.c:286 >>286 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size); >>(gdb) >> >> >> > >When you get here, please type bt. It will generate a backtrace. > >g, > >Bart > > > Its exactly the same point where it crashes here. I already have a backtrace of this particular case. This one is from eaccelerator.php?dump= with Smarty classes in the cache. Looks to me like the class entries get screwed somewhere. Program received signal SIGSEGV, Segmentation fault. _efree (ptr=0x0) at /usr/src/php-5.1.1/Zend/zend_alloc.c:286 286 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size); (gdb) bt #0 _efree (ptr=0x0) at /usr/src/php-5.1.1/Zend/zend_alloc.c:286 #1 0xb7429450 in dump_op_array (p=0xb640c8b8) at /usr/src/eaccelerator-cvs/eaccelerator/webui.c:801 #2 0xb742afb7 in eaccelerator_dump_all () at /usr/src/eaccelerator-cvs/eaccelerator/webui.c:1173 #3 0xb742c534 in zif_eaccelerator (ht=0, return_value=0x81b1854, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0) at /usr/src/eaccelerator-cvs/eaccelerator/webui.c:1651 #4 0xb7b68b33 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfaa4dc0) at zend_vm_execute.h:188 #5 0xb7b68389 in execute (op_array=0x81b16a4) at zend_vm_execute.h:88 #6 0xb7b43f7c in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php-5.1.1/Zend/zend.c:1090 #7 0xb7b0977f in php_execute_script (primary_file=0xbfaa7140) at /usr/src/php-5.1.1/main/main.c:1704 #8 0xb7bc56be in apache_php_module_main (r=0x81a708c, display_source_mode=0) at /usr/src/php-5.1.1/sapi/apache/sapi_apache.c:53 #9 0xb7bc6237 in send_php (r=0x81a708c, display_source_mode=0, filename=0x0) at /usr/src/php-5.1.1/sapi/apache/mod_php5.c:644 #10 0xb7bc63f2 in send_parsed_php (r=0x81a708c) at /usr/src/php-5.1.1/sapi/apache/mod_php5.c:659 #11 0x0805411f in ap_invoke_handler () #12 0x080691c7 in process_request_internal () #13 0x08069226 in ap_process_request () #14 0x08060236 in child_main () #15 0x080603de in make_child () #16 0x08060544 in startup_children () #17 0x08060be4 in standalone_main () #18 0x08061402 in main () |