|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
11 + 39 = ?
Subscribe to this entry?

 [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: Sat Sep 30 17:01:24 2023 UTC