ID:               44685
 User updated by:  andrea dot granata at starnetsrl dot it
 Reported By:      andrea dot granata at starnetsrl dot it
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: freebsd
 PHP Version:      5.2.5
 New Comment:

Hi, 

same problem with 5.2.6 RC6. compiled with

./configure --with-layout=GNU
--with-config-file-scan-dir=/usr/local/etc/php --disable-all
--enable-libxml --with-libxml-dir=/usr/local --enable-reflection
--program-prefix= --disable-cgi --with-regex=php --with-zend-vm=CALL
--enable-debug --prefix=/usr/local --mandir=/usr/local/man
--infodir=/usr/local/info/ --with-pdo-pgsql


Starting program: /usr/src/php5.2-200804110430/sapi/cli/php index.php
[New LWP 100142]
[New Thread 0x28759400 (LWP 100142)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x28759400 (LWP 100142)]
0x081a2849 in _zend_is_inconsistent (ht=0x0, file=0x8297af0
"/usr/src/php5.2-200804110430/Zend/zend_hash.c", line=1015)
    at /usr/src/php5.2-200804110430/Zend/zend_hash.c:53
53              if (ht->inconsistent==HT_OK) {


Previous Comments:
------------------------------------------------------------------------

[2008-04-10 22:47:49] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi



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

[2008-04-10 22:36:04] andrea dot granata at starnetsrl dot it

Description:
------------
Same bug on freebsd 7.0 and ubuntu 7.10 with php 5.2.3.
tested with php-cli and mod_php.


Reproduce code:
---------------
<?php
//tested with Zend Framework 1.5.1

set_include_path('../library' . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Db.php';

$db = Zend_Db::factory('Pdo_Pgsql', array(
    'host'     => '127.0.0.1',
    'username' => 'postgres',
    'password' => '*****',
    'dbname'   => 'test'
));

$db->getConnection();
$data = $db->fetchRow('SELECT * FROM actions', 2);
var_dump($data);


Expected result:
----------------
The var_dump of $data variable.

Actual result:
--------------
faure# gdb php
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run index.php
Starting program: /usr/local/bin/php index.php
[New LWP 100190]
[New Thread 0x28759300 (LWP 100190)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x28759300 (LWP 100190)]
0x081a40e9 in _zend_is_inconsistent (ht=0x0, file=0x8295be8
"/usr/ports/lang/php5/work/php-5.2.5/Zend/zend_hash.c", line=1209)
    at /usr/ports/lang/php5/work/php-5.2.5/Zend/zend_hash.c:54
54      /usr/ports/lang/php5/work/php-5.2.5/Zend/zend_hash.c: No such
file or directory.
        in /usr/ports/lang/php5/work/php-5.2.5/Zend/zend_hash.c
(gdb) 



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


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

Reply via email to