php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26968 Segmentation fault
Submitted: 2004-01-19 14:32 UTC Modified: 2004-01-21 05:10 UTC
From: voev at hotmail dot com Assigned: abies (profile)
Status: Closed Package: InterBase related
PHP Version: 4CVS-2004-01-20 OS: RedHat 7.2
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:
MUST BE VALID
Solve the problem:
46 + 47 = ?
Subscribe to this entry?

 
 [2004-01-19 14:32 UTC] voev at hotmail dot com
Description:
------------
My Firebird (SS) or Interbase server chrash very often when I test it with php.
If work with Kylix cgi page I haven't sql server problems.

When start php from console and run any php that connect to InterBase/Firebird  the last row is 
"Segmentation fault" always.

I've tested it with php 4.3.4, php 4.3.5 RC2, Firebird SS 1.03 and Interbase 7.1 as well.

Php is ./configure --with-interbase=shared,/opt/interbase --with-apxs
--enable-track-vars --enable-debug


Reproduce code:
---------------
<? $dbh = ibase_connect('localhost:/opt/interbase/examples/employee.gdb', 'SYSDBA', 'masterkey');
 $stmt = 'SELECT * FROM COUNTRY';
 $sth = ibase_query($dbh,$stmt);?>
<html>
<head>
</head>
<body>
<table>
<?php  while ($row = ibase_fetch_object($sth)) { ?>
  <tr><td><? echo $row->COUNTRY;?></td></tr> 
<?}
ibase_free_result($sth);
ibase_close($dbh);?>
</table></body></html>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-20 06:43 UTC] abies@php.net
It appears that libgds.so uses atexit() to register a call to gds__cleanup() at process shutdown. As the library is unloaded before the process shuts down, the pointer to gds__cleanup() has become invalid at that time and causes a segfault. 

I'm currently looking for a way to fix this. Any suggestions are highly appreciated.

 [2004-01-21 05:10 UTC] abies@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC