Edit report at http://bugs.php.net/bug.php?id=51726&edit=1

 ID:               51726
 Updated by:       paj...@php.net
 Reported by:      l dot iania at sintrade dot org
 Summary:          Segmentation fault: 11 (core dumped)
 Status:           Bogus
 Type:             Bug
 Package:          InterBase related
 Operating System: FreeBSD 7.2 and 8.0
 PHP Version:      5.3.2

 New Comment:

Does it work or not? Using the sources available at www.php.net?



We do not maintain the FreeBSD (or any other packages), if you are
experiencing issues only with the FreeBSD packages, then please report a
bug to freebsd.


Previous Comments:
------------------------------------------------------------------------
[2010-05-03 17:37:56] l dot iania at sintrade dot org

Yes, it's true, but I tried to rebuild the port from the port tree
excluding 

Suhosin-Patch and the resulting code was always wrong. So probably the
fact is 

that the scripts for building PHP in FreeBSD ports are wrong. The bogus
is not in 

Suhosin-Patch but elsewhere.

------------------------------------------------------------------------
[2010-05-03 17:09:08] paj...@php.net

Not a php bug > bogus.

------------------------------------------------------------------------
[2010-05-03 17:06:04] l dot iania at sintrade dot org

Solved. I have compiled it outside the ports without Suhosin and now it
seems OK.

Thank you!

So I think that the FreeBSD ports tree should be updated.

------------------------------------------------------------------------
[2010-05-03 16:04:50] ka...@php.net

Could you compile PHP without Suhosin and compile with --enable-debug to
export the symbols and then post a backtrace from gdb here?

------------------------------------------------------------------------
[2010-05-03 13:20:33] l dot iania at sintrade dot org

Description:
------------
The bug appears everywhere using interbase extension, also running make
test in 

the build directory, producing a core dump php.core. The valgrind output
is:



==94843== Jump to the invalid address stated on the next line

==94843==    at 0x1243810: ???

==94843==    by 0x375079: exit (in /lib/libc.so.7)

==94843==    by 0x81FE1FE: main (in /usr/local/bin/php)

==94843==  Address 0x1243810 is not stack'd, malloc'd or (recently)
free'd



Further more, running make test, the test #7 FAILS.



Firebird installed from ports is:

firebird-client-2.0.3_3 Firebird-2 database client

firebird-server-2.0.3_3 Firebird-2 relational database (server)



# php -v

PHP 5.3.2 with Suhosin-Patch (cli) (built: May  3 2010 11:02:58)

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies





Test script:
---------------
Every script involving interbase. i.e.



<?php

$user = 'SYSDBA';

$password = 'masterkey';

ini_set('ibase.default_user',$user);

ini_set('ibase.default_password',$password);

$dbname = '/tmp/example.fdb';

$res = ibase_connect($dbname) or die(ibase_errmsg());

ibase_close($res) or die(ibase_errmsg());

?>





------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51726&edit=1

Reply via email to