Hello everybody,
I'm testing the last CVS version (again and again ;o), and I got sometimes a
segfault on a file, but only the first 2 times the file is called with
another id ($_GEt['id'] ...), in fact the file generate some "template"
files, and re-include these after the first call, so no seg fault after the
2nd parsing. So here's only the BT, as I've spend 2 hours to dump it :o) And
I can't tell where the code is seg faulting, so may be you can find your
needs in a single backtrace.
PHP : 5.1.2, Debian Sarge, linux 2.4.32. with --enable-debug
Apache 2.0.55
EA, with only :
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
PHP.ini : shm_only = 1, compress=1, optimizer=1
May be I should try without the optimizer ? Here the BT anyway :
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object,
consider re-linking
GNU gdb 2002-04-01-cvs
Copyright 2002 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-linux"...
Core was generated by `httpd -X -f /home/www/conf/httpd8080.conf'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/httpd/lib/libaprutil-0.so.0...done.
Loaded symbols for /usr/local/httpd/lib/libaprutil-0.so.0
Reading symbols from /usr/lib/libdb-4.2.so...done.
Loaded symbols for /usr/lib/libdb-4.2.so
Reading symbols from /usr/local/httpd/lib/libexpat.so.0...done.
Loaded symbols for /usr/local/httpd/lib/libexpat.so.0
Reading symbols from /usr/local/httpd/lib/libapr-0.so.0...done.
Loaded symbols for /usr/local/httpd/lib/libapr-0.so.0
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /usr/local/httpd/modules/libphp5.so...done.
Loaded symbols for /usr/local/httpd/modules/libphp5.so
Reading symbols from /lib/libpam.so.0...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/local/lib/libz.so.1...done.
Loaded symbols for /usr/local/lib/libz.so.1
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/local/lib/libcurl.so.3...done.
Loaded symbols for /usr/local/lib/libcurl.so.3
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.7
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.7
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /usr/local/lib/libxml2.so.2...done.
Loaded symbols for /usr/local/lib/libxml2.so.2
Reading symbols from
/usr/local/lib/php/extensions/no-debug-non-zts-20050922/eaccelerator.so...done.
Loaded symbols for
/usr/local/lib/php/extensions/no-debug-non-zts-20050922/eaccelerator.so
#0 0x405fa476 in _efree (ptr=0x82ea854) at
/usr/local/src/php-5.1.2/Zend/zend_alloc.c:303
303 REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0 0x405fa476 in _efree (ptr=0x82ea854) at
/usr/local/src/php-5.1.2/Zend/zend_alloc.c:303
#1 0x40604a38 in _zval_ptr_dtor (zval_ptr=0x82ea848) at zend_variables.h:35
#2 0x40616ce8 in zend_hash_destroy (ht=0x83638dc) at
/usr/local/src/php-5.1.2/Zend/zend_hash.c:519
#3 0x4060da75 in _zval_dtor_func (zvalue=0x827e514) at
/usr/local/src/php-5.1.2/Zend/zend_variables.c:43
#4 0x40604a38 in _zval_ptr_dtor (zval_ptr=0x827e514) at zend_variables.h:35
#5 0x40616ec8 in zend_hash_apply_deleter (ht=0x40a78850, p=0x827e514) at
/usr/local/src/php-5.1.2/Zend/zend_hash.c:574
#6 0x40616f6c in zend_hash_graceful_reverse_destroy (ht=0x40a78850) at
/usr/local/src/php-5.1.2/Zend/zend_hash.c:640
#7 0x406048c1 in shutdown_executor () at
/usr/local/src/php-5.1.2/Zend/zend_execute_API.c:217
#8 0x4060edb4 in zend_deactivate () at
/usr/local/src/php-5.1.2/Zend/zend.c:846
#9 0x405d5866 in php_request_shutdown (dummy=0x0) at
/usr/local/src/php-5.1.2/main/main.c:1284
#10 0x406733ad in php_handler (r=0x8271450) at
/usr/local/src/php-5.1.2/sapi/apache2handler/sapi_apache2.c:601
#11 0x080921f5 in ap_run_handler (r=0xbfffee5c) at config.c:152
#12 0x08092800 in ap_invoke_handler (r=0x40a7893c) at config.c:364
#13 0x0807734a in ap_process_request (r=0x40a788a0) at http_request.c:249
#14 0x0807262d in ap_process_http_connection (c=0x40a7893c) at
http_core.c:251
#15 0x0809d4e5 in ap_run_process_connection (c=0xbfffee5c) at
connection.c:43
#16 0x080907f4 in child_main (child_num_arg=136886560) at prefork.c:610
#17 0x08090a0b in make_child (s=0x5f6c7074, slot=1084721468) at
prefork.c:650
#18 0x08090a68 in startup_children (number_to_start=80) at prefork.c:722
#19 0x080912da in ap_mpm_run (_pconf=0x80d6038, plog=0x8112128, s=0x80dab48)
at prefork.c:941
#20 0x0809798d in main (argc=4, argv=0xbffffb74) at main.c:618
(gdb)
Best regards,
Yvan, waiting for the final 0.9.5 release, and still testing :) Good work
Bart & Hans !
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|