#26968 [Fbk->Asn]: Segmentation fault
| From: | abies@php.net | Date: | Tue, 20 Jan 2004 11:43:32 +0000 |
| Subject: | #26968 [Fbk->Asn]: Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53636@lists.php.net to get a copy of this message | ||
ID: 26968
Updated by: abies@php.net
Reported By: voev at hotmail dot com
-Status: Feedback
+Status: Assigned
Bug Type: InterBase related
Operating System: RedHat 7.2
PHP Version: 4CVS-2004-01-20
-Assigned To:
+Assigned To: abies
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-01-19 18:52:46] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2004-01-19 14:32:41] 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>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26968&edit=1