From:             mateusz dot goik at aliantsoft dot pl
Operating system: Backtrack 5r2
PHP version:      5.4Git-2012-08-21 (snap)
Package:          MySQLi related
Bug Type:         Bug
Bug description:mysqli_poll - Segmentation fault

Description:
------------
mysqli_poll - Segmentation fault

PHP 5.4.7-dev (cli) (built: Aug 22 2012 00:48:06) 

Program received signal SIGSEGV, Segmentation fault.
0x00000000009051a1 in mysqlnd_stream_array_check_for_readiness
(conn_array=0x0) at
/home/test/php-trunk-201208212130/ext/mysqlnd/mysqlnd.c:1113
1113            while (*p) {

Test script:
---------------
<?php
error_reporting(E_ALL);
$tablica = array();
$test1 = mysqli_poll($test2, $test3, $tablica, null);
?>

Actual result:
--------------
#0  0x00000000009051a1 in mysqlnd_stream_array_check_for_readiness
(conn_array=0x0) at
/home/test/php-trunk-201208212130/ext/mysqlnd/mysqlnd.c:1113
#1  0x0000000000905533 in _mysqlnd_poll (r_array=0x0, e_array=0x0,
dont_poll=0x7fff82480080, sec=0, usec=0, desc_num=0x7fff8248006c) at
/home/test/php-trunk-201208212130/ext/mysqlnd/mysqlnd.c:1223
#2  0x00000000006e6012 in zif_mysqli_poll (ht=4,
return_value=0x7fb217b8b370, return_value_ptr=0x0, this_ptr=0x0,
return_value_used=1) at
/home/test/php-trunk-201208212130/ext/mysqli/mysqli_nonapi.c:791
#3  0x00000000009fe45c in zend_do_fcall_common_helper_SPEC
(execute_data=0x7fb217b57060) at
/home/test/php-trunk-201208212130/Zend/zend_vm_execute.h:642
#4  0x0000000000a05075 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x7fb217b57060) at
/home/test/php-trunk-201208212130/Zend/zend_vm_execute.h:2219
#5  0x00000000009fcefd in execute (op_array=0x7fb217b8ac50) at
/home/test/php-trunk-201208212130/Zend/zend_vm_execute.h:410
#6  0x00000000009c38e3 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/test/php-trunk-201208212130/Zend/zend.c:1286
#7  0x00000000009413a4 in php_execute_script (primary_file=0x7fff82483940)
at /home/test/php-trunk-201208212130/main/main.c:2473
#8  0x0000000000af847d in do_cli (argc=2, argv=0x7fff82483cf8) at
/home/test/php-trunk-201208212130/sapi/cli/php_cli.c:988
#9  0x0000000000af92a3 in main (argc=2, argv=0x7fff82483cf8) at
/home/test/php-trunk-201208212130/sapi/cli/php_cli.c:1364


-- 
Edit bug report at https://bugs.php.net/bug.php?id=62885&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62885&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62885&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62885&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62885&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62885&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62885&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62885&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62885&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62885&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62885&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62885&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62885&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62885&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62885&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62885&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62885&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62885&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62885&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62885&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62885&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62885&r=mysqlcfg

Reply via email to