From:             andrea dot granata at starnetsrl dot it
Operating system: freebsd
PHP version:      5.2.5
PHP Bug Type:     Reproducible crash
Bug description:  SIGSEGV in _zend_is_inconsistent

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 bug report at http://bugs.php.net/?id=44685&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44685&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44685&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44685&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44685&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44685&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44685&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44685&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44685&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44685&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44685&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44685&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44685&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44685&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44685&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44685&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44685&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44685&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44685&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44685&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44685&r=mysqlcfg

Reply via email to