Edit report at https://bugs.php.net/bug.php?id=52389&edit=1

 ID:                 52389
 Updated by:         yohg...@php.net
 Reported by:        miroslav dot zacek at skype dot net
 Summary:            Memory (de)allocation problem for pgsql notices
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            PostgreSQL related
 Operating System:   Linux (Kubuntu)
 PHP Version:        5.3.2
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Could you try current master and report?


Previous Comments:
------------------------------------------------------------------------
[2011-11-18 20:34:47] fel...@php.net

Try disabling suhosin.

------------------------------------------------------------------------
[2011-11-18 20:30:44] ecrist at claimlynx dot com

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)

------------------------------------------------------------------------
[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.

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


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

Reply via email to