From:             fel...@php.net
Operating system: Linux
PHP version:      5.3CVS-2009-06-24 (CVS)
PHP Bug Type:     SQLite related
Bug description:  SQLiteUnbuffered::count() SIGSEGV

Description:
------------
See below:

Reproduce code:
---------------
$x = new sqliteunbuffered;
count($x);

Expected result:
----------------
No SIGSEGV.

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c696c0 (LWP 30884)]
0x082783ca in sqlite_count_elements (object=0x9a31940, count=0x9a325e0,
tsrm_ls=0x98f1050) at /home/felipe/dev/php5/ext/sqlite/sqlite.c:2822
2822            if (obj->u.res->buffered) {
(gdb) bt
#0  0x082783ca in sqlite_count_elements (object=0x9a31940,
count=0x9a325e0, tsrm_ls=0x98f1050) at
/home/felipe/dev/php5/ext/sqlite/sqlite.c:2822
#1  0x082ca6ab in zif_count (ht=1, return_value=0x9a325e0,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=0,
tsrm_ls=0x98f1050)
    at /home/felipe/dev/php5/ext/standard/array.c:323
#2  0x08436a24 in zend_do_fcall_common_helper_SPEC
(execute_data=0x9a60a94, tsrm_ls=0x98f1050) at
/home/felipe/dev/php5/Zend/zend_vm_execute.h:313
#3  0x0843cb8b in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x9a60a94, tsrm_ls=0x98f1050) at
/home/felipe/dev/php5/Zend/zend_vm_execute.h:1601
#4  0x084357eb in execute (op_array=0x9a31fc8, tsrm_ls=0x98f1050) at
/home/felipe/dev/php5/Zend/zend_vm_execute.h:104
#5  0x083f4ef4 in zend_eval_stringl (str=0xbfef97f4 "$x = new
sqliteunbuffered; count($x);", str_len=37, retval_ptr=0x0, 
    string_name=0x87a08b4 "Command line code", tsrm_ls=0x98f1050) at
/home/felipe/dev/php5/Zend/zend_execute_API.c:1159
#6  0x083f517b in zend_eval_stringl_ex (str=0xbfef97f4 "$x = new
sqliteunbuffered; count($x);", str_len=37, retval_ptr=0x0, 
    string_name=0x87a08b4 "Command line code", handle_exceptions=1,
tsrm_ls=0x98f1050) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1200
#7  0x083f522f in zend_eval_string_ex (str=0xbfef97f4 "$x = new
sqliteunbuffered; count($x);", retval_ptr=0x0, string_name=0x87a08b4
"Command line code", 
    handle_exceptions=1, tsrm_ls=0x98f1050) at
/home/felipe/dev/php5/Zend/zend_execute_API.c:1211
#8  0x084e6ca2 in main (argc=3, argv=0xbfef7d94) at
/home/felipe/dev/php5/sapi/cli/php_cli.c:1227


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

Reply via email to