php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14196 segmentation fault committing nothing
Submitted: 2001-11-23 08:13 UTC Modified: 2001-11-24 14:52 UTC
From: hegyvari at ardents dot hu Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.6 OS: Redhat 6.2
Private report: No CVE-ID: None
 [2001-11-23 08:13 UTC] hegyvari at ardents dot hu
Write something which makes an explicit commit before disconnecting from postgres, but do not make any transactions. A notice is going to appear in the postgresql log saying that a commit without transactions is made and the same notice is going to appear in the apache error log as well. The problem is that 5 times out of 10 Apache is also going to segfault. We had this kind of "commit if no sql_error was recognized" in our system and noticed the segfaults in the apache log. We removed the commit and all the segfaults are gone from then on.

Postgresql 7.1.3. and PHP4.0.6.

 './configure' '--with-oci8' '--with-apache=/coca/install/apache_1.3.22/' '--enable-sigchild' '--enable-track-vars' '--with-mysql' '--with-pgsql=/usr/local/pgsql'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-23 08:26 UTC] mfischer@php.net
an you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.

 [2001-11-23 09:42 UTC] hegyvari at ardents dot hu
To be clear, this is not a perfectly legal use of commit or rollback because a begin work statement should precede them. If begin work is used everything is fine.
 [2001-11-24 14:52 UTC] sniper@php.net
This should be fixed in PHP 4.1.0. Please try the
RC like Markus asked already and if it segfaults too,
reopen this bug report.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 21:01:31 2024 UTC