|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1260 Variable memory corrupted when using PostgreSQL
Submitted: 1999-03-23 01:18 UTC Modified: 1999-06-20 12:32 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 3.0.7 OS: Linux 2.0.34
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mlemos at acm dot org
New email:
PHP Version: OS:


 [1999-03-23 01:18 UTC] mlemos at acm dot org
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

Block 0x081DEEB8 status at variables.c:89:                                         
Beginning:      Cached (allocated on variables.c:148, 3 bytes)                     
      End:      OK                                                                 
Allocated from variables.c:148:                                                    


Block 0x082346D0 status at variables.c:89:                                         
Beginning:      Overrun (magic=0x08234510, expected=0x7312F8DC)                    
      End:      Unknown                                                            


[Mon Mar 22 23:59:31 1999] [error] Possible PHP3 memory leak detected (harmless):  
3 bytes from control_structures_inline.h:459


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 12:32 UTC] sas at cvs dot php dot net
(Hopefully) fixed in CVS. You might try the CVS version and report back to us.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Sep 25 14:01:25 2023 UTC