|  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
Status: Closed Package: InterBase related
PHP Version: 4CVS-2004-01-20 OS: RedHat 7.2
Private report: No CVE-ID:
 [2004-01-19 14:32 UTC] voev at hotmail dot com
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');
 $sth = ibase_query($dbh,$stmt);?>
<?php  while ($row = ibase_fetch_object($sth)) { ?>
  <tr><td><? echo $row->COUNTRY;?></td></tr> 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-20 06:43 UTC]
It appears that 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]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 00:01:32 2015 UTC