php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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
---------------------------------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2018 The PHP Group
All rights reserved.
Last updated: Tue Dec 18 20:01:26 2018 UTC