Bug #1260: Variable memory corrupted when using PostgreSQL

From: Date: Tue, 23 Mar 1999 06:18:11 +0000
Subject: Bug #1260: Variable memory corrupted when using PostgreSQL
Groups: php.dev 
Request: Send a blank email to php-dev+get-4735@lists.php.net to get a copy of this message
From: mlemos@acm.org Operating system: Linux 2.0.34 PHP version: 3.0.7 PHP Bug Type: PostgreSQL related Bug description: Variable memory corrupted when using PostgreSQL I built PHP with debug code enabled and I have noticed that my Apache error log is full of memory fault warnings like as follows below. This only started happening when started using transactions with PostgreSQL 6.4.2. So it might not be PHP fault. However it only shows under Linux and not under SunOS. If I disable the debug code it leads to segmentation fault errors which usually leads to "Document contains no data" warnings in the browser. This might not be of a great help but I believe the information of the warnings could be more helpful if the code in variables.c passed the file and the line number of the functions in variables.c (pval_copy_constructor() and pval_copy_destructor()) that calls the memory allocations. --------------------------------------- Block 0x081DEEB8 status at variables.c:89: Beginning: Cached (allocated on variables.c:148, 3 bytes) End: OK Allocated from variables.c:148: --------------------------------------- and --------------------------------------- Block 0x082346D0 status at variables.c:89: Beginning: Overrun (magic=0x08234510, expected=0x7312F8DC) End: Unknown --------------------------------------- and --------------------------------------- [Mon Mar 22 23:59:31 1999] [error] Possible PHP3 memory leak detected (harmless): 3 bytes from control_structures_inline.h:459 --------------------------------------- -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4735) next »