php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56968 Segmentation Fault in Apache when calling ingres_error
Submitted: 2006-04-20 15:54 UTC Modified: 2006-04-28 15:03 UTC
From: kurt at scitechsys dot com Assigned: grantc (profile)
Status: Closed Package: ingres (PECL)
PHP Version: 5.1.2 OS: CentOS Linux 2.6.9-22.0.2.EL
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kurt at scitechsys dot com
New email:
PHP Version: OS:

 

 [2006-04-20 15:54 UTC] kurt at scitechsys dot com
Description:
------------
Segmentation Fault in Apache on two different systems when calling ingres_error().

[notice] child pid 6320 exit signal Segmentation fault (11)
Linux skylane.scitechsys.com 2.6.9-22.0.2.EL #1 Tue Jan 17 06:51:40 CST 2006 i686 athlon i386 GNU/Linux
PHP Version 4.3.9
Apache/2.0.52 (CentOS)
Ingres Extension Version  1.2.1
Revision  $Revision: 1.67 $
Ingres version II 9.0.4 (int.lnx/103)NPTL
 
Faulting application Apache.exe, version 2.0.55.0, faulting module php_ingres.dll, version 5.1.2.2, fault address 0x00005652.
Windows NT LAPTOP-HOWERTON 5.1 build 2600
Apache/2.0.55 (Win32) PHP/5.1.2
Ingres Extension Version  1.3.0-dev
Revision  $Revision: 1.69 $
Ingres Version II 3.0.3 (int.w32/103)

Reproduce code:
---------------
<html>

<head>

</head>

<body>

<?php



	$link = ingres_connect("iidbdb", "ingres", "grabstein")

		or die("Connection to db failed");

    

	$query = "SELECT table_name, table_owner FROM iitables ORDER BY table_owner, table_name";

	

	echo "<p>" . $query . "</p>";

   

	ingres_query($query, $link);

	echo "<table>";



	while ($row = ingres_fetch_row()) {

		echo "<tr><td>" . $row[0] . "</td><td>" . $row[1] . "</td></tr>";

	}

	echo "</table>";

	echo ingres_error();

	ingres_close();

?>

</body>



Expected result:
----------------
No errors.

Actual result:
--------------
[notice] child pid 6320 exit signal Segmentation fault (11)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-21 05:39 UTC] grantc@php.net
Hi Kurt,

I have found the problem and implemented a quick fix, (not in CVS). There is some more testing to do but I hope to release the code to CVS soon.

regards

grant
 [2006-04-28 15:03 UTC] grantc@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC