Edit report at https://bugs.php.net/bug.php?id=52389&edit=1
ID: 52389
Comment by: ecrist at claimlynx dot com
Reported by: miroslav dot zacek at skype dot net
Summary: Memory (de)allocation problem for pgsql notices
Status: Open
Type: Bug
Package: PostgreSQL related
Operating System: Linux (Kubuntu)
PHP Version: 5.3.2
Block user comment: N
Private report: N
New Comment:
The backtrace for this we were able to come up with was as follows:
#0 0x000000080571f741 in _zend_mm_free_canary_int () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#1 0x0000000808b9bc81 in _php_pgsql_notice_ptr_dtor () from
/usr/local/lib/php/20090626/pgsql.so
No symbol table info available.
#2 0x000000080570da48 in zend_hash_clean () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#3 0x0000000808ba2474 in zm_deactivate_pgsql () from
/usr/local/lib/php/20090626/pgsql.so
No symbol table info available.
#4 0x00000008057029ac in module_registry_cleanup () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#5 0x000000080570d544 in zend_hash_reverse_apply () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#6 0x00000008057009dc in zend_deactivate_modules () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#7 0x00000008056acbe5 in php_request_shutdown () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#8 0x000000080578c245 in php_handler () from
/usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#9 0x00000000004361fa in ap_run_handler (r=0x809ffa0a0) at config.c:157
n = 2
rv = Variable "rv" is not available.
(gdb)
Previous Comments:
------------------------------------------------------------------------
[2011-11-10 19:06:09] ecrist at claimlynx dot com
Tried the patch attached to this report against 5.3.8 and we get more segfaults
than before. Additionally, we've added a call session_write_close() to every
page and that also doesn't solve the problem for us. I can provide backtraces
or
anything else needed to aid a solution to this bug.
------------------------------------------------------------------------
[2011-11-09 21:49:37] ecrist at claimlynx dot com
This bug is seen on FreeBSD 8.2-STABLE as of Nov 4, 2011 with PHP 5.3.8 on
Apache
2.2.21 and Postgres 8.4.9.
------------------------------------------------------------------------
[2011-07-12 14:00:25] me at dzonder dot net
This bug still exists on PHP 5.3.6 (FreeBSD 8.2 official port).
My workaround is to explicitly call session_write_close() in scripts where
sessions with pgsql are used.
------------------------------------------------------------------------
[2010-11-20 01:58:58] [email protected]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2010-10-25 23:51:58] php at maxnet dot eu
Oops, didn't notice the patch was for 5.3
Applied it to 5.2.14
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=52389
--
Edit this bug report at https://bugs.php.net/bug.php?id=52389&edit=1