ID:               50057
 Updated by:       scott...@php.net
 Reported By:      proforg at maloletka dot ru
 Status:           Feedback
 Bug Type:         PostgreSQL related
 Operating System: Debian Lenny 2.6.26-2-amd64
 PHP Version:      5.2SVN-2009-11-02 (snap)
 New Comment:

Can you provide a reproduce script and also would it be possible to run
what you have through valgrind to get a better memory trace.


Previous Comments:
------------------------------------------------------------------------

[2009-11-04 00:55:39] proforg at maloletka dot ru

php5.2-200911032130
configure options: --enable-fastcgi --enable-force-cgi-redirect
--with-pgsql --with-pear=/usr/share/php/ --enable-debug  --with-imap
--with-
kerberos --with-imap-ssl --with-gettext

run options: /usr/local/bin/php-cgi -b 127.0.0.1:9919 -c
/etc/php5/fpm/

backtrace:

[New process 4752]
#0  0x00000000006fc288 in zend_mm_check_ptr (heap=0xcd8390, ptr=0x1,
silent=1, __zend_filename=0x830c38 "/usr/local/src/php5.2-
200911032130/ext/pgsql/pgsql.c", 
    __zend_lineno=379, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at /usr/local/src/php5.2-200911032130/Zend/zend_alloc.c:1304
1304            if (p->info._size != ZEND_MM_NEXT_BLOCK(p)->info._prev)
{

(gdb) bt
#0  0x00000000006fc288 in zend_mm_check_ptr (heap=0xcd8390, ptr=0x1,
silent=1, __zend_filename=0x830c38 "/usr/local/src/php5.2-
200911032130/ext/pgsql/pgsql.c", 
    __zend_lineno=379, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at /usr/local/src/php5.2-200911032130/Zend/zend_alloc.c:1304
#1  0x00000000006fdd2e in _zend_mm_free_int (heap=0xcd8390, p=0x1,
__zend_filename=0x830c38 "/usr/local/src/php5.2-
200911032130/ext/pgsql/pgsql.c", __zend_lineno=379, 
    __zend_orig_filename=0x0, __zend_orig_lineno=0) at
/usr/local/src/php5.2-200911032130/Zend/zend_alloc.c:1943
#2  0x00000000006ff2ca in _efree (ptr=0x1, __zend_filename=0x830c38
"/usr/local/src/php5.2-200911032130/ext/pgsql/pgsql.c",
__zend_lineno=379, 
__zend_orig_filename=0x0, 
    __zend_orig_lineno=0) at
/usr/local/src/php5.2-200911032130/Zend/zend_alloc.c:2311
#3  0x000000000056e2f0 in _php_pgsql_notice_ptr_dtor (ptr=0x134b848) at
/usr/local/src/php5.2-200911032130/ext/pgsql/pgsql.c:379
#4  0x000000000072c591 in zend_hash_clean (ht=0xb12388) at
/usr/local/src/php5.2-200911032130/Zend/zend_hash.c:552
#5  0x000000000056eb8e in zm_deactivate_pgsql (type=1,
module_number=14) at
/usr/local/src/php5.2-200911032130/ext/pgsql/pgsql.c:578
#6  0x0000000000726f19 in module_registry_cleanup (module=0xd041d0) at
/usr/local/src/php5.2-200911032130/Zend/zend_API.c:1976
#7  0x000000000072cdf9 in zend_hash_reverse_apply (ht=0xb16760,
apply_func=0x726ede <module_registry_cleanup>) at
/usr/local/src/php5.2-
200911032130/Zend/zend_hash.c:755
#8  0x000000000071e481 in zend_deactivate_modules () at
/usr/local/src/php5.2-200911032130/Zend/zend.c:838
#9  0x00000000006c6258 in php_request_shutdown (dummy=0x0) at
/usr/local/src/php5.2-200911032130/main/main.c:1474
#10 0x00000000007a6ce5 in main (argc=5, argv=0x7fff3f4b5eb8) at
/usr/local/src/php5.2-200911032130/sapi/cgi/cgi_main.c:2057

------------------------------------------------------------------------

[2009-11-03 12:33:45] proforg at maloletka dot ru

Yes, definitely, same result at least with apache2 sapi.
I'll try to have some more tests and backtraces with clear cgi-fcgi
sapi 
later today,

------------------------------------------------------------------------

[2009-11-03 10:45:38] j...@php.net

Can you reproduce this without the 3rd party patches? (no, we do not
support this FPM thing!)

------------------------------------------------------------------------

[2009-11-03 02:22:59] proforg at maloletka dot ru

the same for 5.2.10 and 5.2.11
but 5.2.9 works fine

------------------------------------------------------------------------

[2009-11-02 23:10:30] proforg at maloletka dot ru

Description:
------------
php5.2-200911021930 + apache2 / fpm sapi frequently crashes on debian 
horde3 + imp4 installation.

Reproduce code:
---------------
Current debian horde and imp packages.

Actual result:
--------------
fpm log output:

Nov 03 01:51:13.738647 [WARNING] fpm_children_bury(), line 217: child 
19892 (pool www-data) exited on signal 11 SIGSEGV (core 
dumped) after 2377.432524 seconds from start
Nov 03 01:51:13.738687 [WARNING] fpm_stdio_child_said(), line 167: 
child 19892 (pool www-data) said into stderr: "[Tue Nov  3 
01:36:48 2009]  Script:  '/usr/share/horde3//index.php'"
Nov 03 01:51:13.738716 [WARNING] fpm_stdio_child_said(), line 167: 
child 19892 (pool www-data) said into stderr: 
"/usr/local/src/php5.2-200911021930/ext/pgsql/pgsql.c(289) :  Freeing 
0x029A97C0 (46 bytes), 
script=/usr/share/horde3//index.php", pipe is closed
Nov 03 01:51:13.738738 [WARNING] fpm_stdio_child_said(), line 167: 
child 19892 (pool www-data) said into stderr: "[Tue Nov  3 
01:36:48 2009]  Script:  '/usr/share/horde3//index.php'", pipe is 
closed
Nov 03 01:51:13.738758 [WARNING] fpm_stdio_child_said(), line 167: 
child 19892 (pool www-data) said into stderr: 
"/usr/local/src/php5.2-200911021930/ext/pgsql/pgsql.c(361) :  Freeing 
0x02540370 (16 bytes), 
script=/usr/share/horde3//index.php", pipe is closed
Nov 03 01:51:13.738779 [WARNING] fpm_stdio_child_said(), line 167: 
child 19892 (pool www-data) said into stderr: "=== Total 2 
memory leaks detected ===", pipe is closed



backtrace:

[New process 19892]
#0  0x0000000000734d34 in zend_mm_check_ptr (heap=0x1e392a0, 
ptr=0x69766f7270207469, silent=1, 
    __zend_filename=0x8913f8 "/usr/local/src/php5.2-
200911021930/ext/pgsql/pgsql.c", __zend_lineno=379, 
__zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/local/src/php5.2-200911021930/Zend/zend_alloc.c:1304
1304            if (p->info._size != ZEND_MM_NEXT_BLOCK(p)-
>info._prev) {
(gdb) bt
#0  0x0000000000734d34 in zend_mm_check_ptr (heap=0x1e392a0, 
ptr=0x69766f7270207469, silent=1, 
    __zend_filename=0x8913f8 "/usr/local/src/php5.2-
200911021930/ext/pgsql/pgsql.c", __zend_lineno=379, 
__zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/local/src/php5.2-200911021930/Zend/zend_alloc.c:1304
#1  0x00000000007367da in _zend_mm_free_int (heap=0x1e392a0, 
p=0x69766f7270207469, __zend_filename=0x8913f8 
"/usr/local/src/php5.2-200911021930/ext/pgsql/pgsql.c", 
    __zend_lineno=379, __zend_orig_filename=0x0, __zend_orig_lineno=0)

at /usr/local/src/php5.2-
200911021930/Zend/zend_alloc.c:1943
#2  0x0000000000737d76 in _efree (ptr=0x69766f7270207469, 
__zend_filename=0x8913f8 "/usr/local/src/php5.2-
200911021930/ext/pgsql/pgsql.c", __zend_lineno=379, 
    __zend_orig_filename=0x0, __zend_orig_lineno=0) at 
/usr/local/src/php5.2-200911021930/Zend/zend_alloc.c:2311
#3  0x00000000005a7ba0 in _php_pgsql_notice_ptr_dtor (ptr=0x1fe2928) 
at /usr/local/src/php5.2-
200911021930/ext/pgsql/pgsql.c:379
#4  0x000000000076503d in zend_hash_clean (ht=0xb83a88) at 
/usr/local/src/php5.2-200911021930/Zend/zend_hash.c:552
#5  0x00000000005a843e in zm_deactivate_pgsql (type=1, 
module_number=18) at /usr/local/src/php5.2-
200911021930/ext/pgsql/pgsql.c:578
#6  0x000000000075f9c5 in module_registry_cleanup (module=0x1e70e80) 
at /usr/local/src/php5.2-
200911021930/Zend/zend_API.c:1976
#7  0x00000000007658a5 in zend_hash_reverse_apply (ht=0xb87e60, 
apply_func=0x75f98a <module_registry_cleanup>) at 
/usr/local/src/php5.2-200911021930/Zend/zend_hash.c:755
#8  0x0000000000756f2d in zend_deactivate_modules () at 
/usr/local/src/php5.2-200911021930/Zend/zend.c:838
#9  0x00000000006fed04 in php_request_shutdown (dummy=0x0) at 
/usr/local/src/php5.2-200911021930/main/main.c:1474
#10 0x00000000007de90f in main (argc=6, argv=0x7fff4f59af58) at 
/usr/local/src/php5.2-
200911021930/sapi/fpm/cgi/cgi_main.c:1589                

php build options:
--with-fpm --with-libevent=shared,/usr --with-pgsql --with-gd --with-
mhash --with-mcrypt --with-pear=/usr/share/php/ --enable-
debug  --with-imap --with-kerberos --with-imap-ssl --with-gettext

same result with apache2 sapi


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50057&edit=1

Reply via email to