#42305 [Opn->Fbk]: Segmentation fault after php script proccessing end
| From: | jani@php.net | Date: | Wed, 15 Aug 2007 11:05:03 +0000 |
| Subject: | #42305 [Opn->Fbk]: Segmentation fault after php script proccessing end | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116107@lists.php.net to get a copy of this message | ||
ID: 42305
Updated by: jani@php.net
Reported By: danil dot megrabjan at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: SLES10
PHP Version: 5.2.3
New Comment:
You do have disabled ALL shared extensions, including Zend extensions
prior to getting that GDB backtrace? If you haven't please do so.
Previous Comments:
------------------------------------------------------------------------
[2007-08-15 10:56:14] danil dot megrabjan at gmail dot com
I use remote debug with ZendDebugger. I need in
--disable-debug.
I try it for experiment only.
------------------------------------------------------------------------
[2007-08-15 10:35:13] jani@php.net
I would also try compiling without using these:
--enable-inline-optimization
--enable-zend-multibyte
--disable-rpath
--disable-static
--enable-shared
--with-pic
--disable-debug
And change last to --enable-debug to get sane GDB backtrace.
------------------------------------------------------------------------
[2007-08-15 10:14:25] danil dot megrabjan at gmail dot com
OS: SLES 10 on VM Ware under Win2003Server. Now i go to try compile
5.2-dev from cvs.
current php build:
PHP Version 5.2.3
System Linux 2.6.16.21-0.8-default #1 Mon Jul 3 18:25:39 UTC 2006
i686
'../configure' '--prefix=/usr' '--datadir=/usr/share/php5'
'--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib'
'--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2'
'--with-config-file-path=/etc/php5/apache2'
'--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml'
'--enable-session' '--with-mm' '--with-pcre-regex'
'--enable-xml'
'--enable-simplexml' '--enable-spl' '--enable-filter'
'--disable-debug'
'--enable-memory-limit' '--enable-inline-optimization'
'--enable-zend-multibyte' '--disable-rpath' '--disable-static'
'--enable-shared' '--program-suffix=5' '--with-pic'
'--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'
------------------------------------------------------------------------
[2007-08-15 09:35:51] jani@php.net
What OS do you have? How did you build PHP? Have you tried latest CVS
snapshot found at http://snaps.php.net/ ?
------------------------------------------------------------------------
[2007-08-15 08:47:28] danil dot megrabjan at gmail dot com
Description:
------------
After proccessing php-script i have my total result in browser, but in
apache logs i see that "[Wed Aug 15 11:16:11 2007] [notice] child pid
8922 exit signal Segmentation fault (11)"
I use gdb so that i have any details about this problem.
I think, that main problem consist in php garbage collector whe it try
to free...
Reproduce code:
---------------
Very many code... i dont`n now how i may send this big code. Just as i
don't know how i can this code made is shorten in 20 lines.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213375712 (LWP 9388)]
0xb7cc7f49 in free () from /lib/libc.so.6
(gdb) bt
#0 0xb7cc7f49 in free () from /lib/libc.so.6
#1 0xb79302c1 in free_zend_constant (c=0x804a9bd7) at
/usr/src/debug/php-5.2.3/Zend/zend_constants.c:35
#2 0xb7949ae5 in zend_hash_apply_deleter (ht=0x4ab08800, p=0x804a9ba0)
at /usr/src/debug/php-5.2.3/Zend/zend_hash.c:805
#3 0xb7949bee in zend_hash_reverse_apply (ht=0x800b7068,
apply_func=0xb792f240 <clean_non_persistent_constant>)
at /usr/src/debug/php-5.2.3/Zend/zend_hash.c:954
#4 0xb7930138 in clean_non_persistent_constants () at
/usr/src/debug/php-5.2.3/Zend/zend_constants.c:231
#5 0xb7931ab4 in shutdown_executor () at
/usr/src/debug/php-5.2.3/Zend/zend_execute_API.c:303
#6 0xb793eecf in zend_deactivate () at
/usr/src/debug/php-5.2.3/Zend/zend.c:941
#7 0xb78f579d in php_request_shutdown (dummy=0x0) at
/usr/src/debug/php-5.2.3/main/main.c:1323
#8 0xb79c541c in php_handler (r=0x8048fd38) at
/usr/src/debug/php-5.2.3/sapi/apache2handler/sapi_apache2.c:467
#9 0x8002f94d in ap_run_handler (r=0x8048fd38) at config.c:157
#10 0x80033227 in ap_invoke_handler (r=0x8048fd38) at config.c:372
#11 0x8003f084 in ap_internal_redirect (new_uri=0x8048fd18
"/infin.php?query=start/1/666666", r=0x80486f48)
at http_request.c:477
#12 0xb756ec10 in ?? () from /usr/lib/apache2-prefork/mod_rewrite.so
#13 0x8048fd18 in ?? ()
#14 0x80486f48 in ?? ()
#15 0xb757367f in ?? () from /usr/lib/apache2-prefork/mod_rewrite.so
#16 0x8048fc50 in ?? ()
#17 0x00000000 in ?? ()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42305&edit=1