Bug #64564 [NEW]: pg_trace corrupts memory and crashes server
| From: | php at compressedtime dot com | Date: | Tue, 02 Apr 2013 10:48:08 +0000 |
| Subject: | Bug #64564 [NEW]: pg_trace corrupts memory and crashes server | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-178230@lists.php.net to get a copy of this message | ||
From: php at compressedtime dot com
Operating system: Linux
PHP version: 5.3.23
Package: PostgreSQL related
Bug Type: Bug
Bug description:pg_trace corrupts memory and crashes server
Description:
------------
When I use pg_trace on my Linux server I got a lot of segmentation faults
in the
error_log.
PHP 5.3.3 (cli) (built: Feb 22 2013 02:37:06)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Here's a backtrace from a core file:
#0 0x00007f3f608ad59c in free () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f3f608a5d69 in _IO_free_backup_area ()
from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007f3f608a52e5 in _IO_file_overflow ()
from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007f3f608a4025 in _IO_file_xsputn ()
from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00007f3f60872aa1 in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x00007f3f609330cb in __fprintf_chk () from
/lib/x86_64-linux-gnu/libc.so.6
#6 0x00007f3f5ac10404 in ?? () from /usr/lib/libpq.so.5
#7 0x00007f3f5ac08257 in ?? () from /usr/lib/libpq.so.5
#8 0x00007f3f5ac0860e in PQfinish () from /usr/lib/libpq.so.5
#9 0x00007f3f573f4c4d in ?? () from /usr/lib/php5/20090626/pgsql.so
#10 0x00007f3f5da3ffde in ?? () from /usr/lib/apache2/modules/libphp5.so
#11 0x00007f3f5da3c81e in ?? () from /usr/lib/apache2/modules/libphp5.so
#12 0x00007f3f5da3e0a8 in zend_hash_graceful_reverse_destroy ()
from /usr/lib/apache2/modules/libphp5.so
#13 0x00007f3f5da3032c in ?? () from /usr/lib/apache2/modules/libphp5.so
#14 0x00007f3f5d9dd030 in php_request_shutdown ()
from /usr/lib/apache2/modules/libphp5.so
#15 0x00007f3f5dac0d67 in ?? () from /usr/lib/apache2/modules/libphp5.so
#16 0x00007f3f61705508 in ap_run_handler ()
#17 0x00007f3f6170597e in ap_invoke_handler ()
#18 0x00007f3f61715570 in ap_process_request ()
#19 0x00007f3f61712398 in ?? ()
#20 0x00007f3f6170bfa8 in ap_run_process_connection ()
#21 0x00007f3f6171a1d0 in ?? ()
--
Edit bug report at https://bugs.php.net/bug.php?id=64564&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64564&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64564&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64564&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64564&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64564&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64564&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64564&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64564&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64564&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64564&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64564&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64564&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64564&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64564&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64564&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64564&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64564&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64564&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64564&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64564&r=mysqlcfg