ibase_query causes segfault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-interbase (Ubuntu) |
Fix Released
|
Undecided
|
Popa Adrian Marius |
Bug Description
Binary package hint: php5-interbase
Description: Ubuntu 8.04
Release: 8.04
php5-interbase:
Geïnstalleerd: 5.2.5-0ubuntu1
Kandidaat: 5.2.5-0ubuntu1
Versietabel:
*** 5.2.5-0ubuntu1 0
500 http://
100 /var/lib/
Running the following script in php5 (in cli or from apache2) with php5-interbase extension loaded, consistently triggers a segfault.
<?php
$host = '/path/
$user = 'sysdba';
$pass = 'masterkey';
$dbh = ibase_connect(
$sql = 'SELECT * FROM SOMETABLE WHERE SOMEKEY = ?'; // only one parameter
$sth = ibase_query($dbh, $sql, $user, $pass); // too many parameters given
while ($row = ibase_fetch_
print $row;
}
ibase_free_
ibase_close($dbh);
?>
Note that you need to adjust $host and $sql to meaningful values for your environment.
I see the following error messages in /var/log/messages:
Apr 30 21:22:51 arno kernel: [192039.261209] php[31511]: segfault at 00000008 eip b77669bc esp bfae9c90 error 4
Apr 30 21:23:15 arno kernel: [192063.399181] fb_lock_mgr[31081]: segfault at 00002d46 eip 0804dabc esp bfcc9180 error 4
Apr 30 21:24:13 arno kernel: [192121.052755] php[31548]: segfault at 00000008 eip b7ed69bc esp bfae5a40 error 4
Apr 30 21:24:55 arno kernel: [192163.208674] php[31572]: segfault at 00000008 eip b7ed79bc esp bf8de040 error 4
Apr 30 21:25:31 arno kernel: [192199.693415] php[32040]: segfault at 00000008 eip b7f539bc esp bffabf10 error 4
Apr 30 21:29:13 arno kernel: [192420.872480] fb_lock_mgr[31552]: segfault at 00002d46 eip 0804dabc esp bfd59a10 error 4
Changed in php-interbase: | |
assignee: | nobody → mapopa |
Changed in php-interbase: | |
assignee: | nobody → mapopa |
status: | New → In Progress |
I'm assigning this bug report to Nobody as it is in a New state and their is no clear indication that anyone is working on fixing the bug or triaging it.