From:             kenorb at gmail dot com
Operating system: Linux
PHP version:      5.2.9
PHP Bug Type:     *General Issues
Bug description:  crash in zif_file_put_contents

Description:
------------
See backtrace above.

Reproduce code:
---------------
.(gdb) backtrace
#0  0x08202f0b in zif_file_put_contents (ht=147657200, 
return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, 
return_value_used=4)
    at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697
#1  0x0820368a in zif_tempnam (ht=32, return_value=0x4, 
return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200)
    at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45
#2  0x08203884 in zif_popen (ht=8, return_value=0x4, 
return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=-
1084251860)
    at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011
#3  0x0821d9f7 in zif_strtolower (ht=-1344080132, 
return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, 
return_value_used=0)
    at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349
#4  0x0822aa0a in zif_is_callable (ht=-1344080156, 
return_value=0x8d88788, return_value_ptr=0xbf5fa128, 
this_ptr=0x8202ebc, return_value_used=147657200)
    at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380
#5  0x0809de50 in is_counted_repeat (p=0x20 <Address 0x20 out of 
bounds>) at /home/redmine/php5/php-
5.2.9/ext/pcre/pcrelib/pcre_compile.c:887
#6  0x0809bb2d in verify_callback (preverify_ok=-1084251808, 
ctx=0xafe2f6e4) at /home/redmine/php5/php-
5.2.9/ext/openssl/openssl.c:3759


Expected result:
----------------
working

Actual result:
--------------
crashing
(gdb) backtrace
#0  0x08202f0b in zif_file_put_contents (ht=147657200, 
return_value=0x20, return_value_ptr=0x0, this_ptr=0xafe2f6fc, 
return_value_used=4)
    at /home/redmine/php5/php-5.2.9/ext/standard/file.c:697
#1  0x0820368a in zif_tempnam (ht=32, return_value=0x4, 
return_value_ptr=0x0, this_ptr=0x8202ebc, return_value_used=147657200)
    at /home/redmine/php5/php-5.2.9/Zend/zend_variables.h:45
#2  0x08203884 in zif_popen (ht=8, return_value=0x4, 
return_value_ptr=0x0, this_ptr=0xafe2f6e4, return_value_used=-
1084251860)
    at /home/redmine/php5/php-5.2.9/ext/standard/file.c:1011
#3  0x0821d9f7 in zif_strtolower (ht=-1344080132, 
return_value=0xb5a74b40, return_value_ptr=0x0, this_ptr=0x820ca70, 
return_value_used=0)
    at /home/redmine/php5/php-5.2.9/ext/standard/string.c:1349
#4  0x0822aa0a in zif_is_callable (ht=-1344080156, 
return_value=0x8d88788, return_value_ptr=0xbf5fa128, 
this_ptr=0x8202ebc, return_value_used=147657200)
    at /home/redmine/php5/php-5.2.9/ext/standard/type.c:380
#5  0x0809de50 in is_counted_repeat (p=0x20 <Address 0x20 out of 
bounds>) at /home/redmine/php5/php-
5.2.9/ext/pcre/pcrelib/pcre_compile.c:887
#6  0x0809bb2d in verify_callback (preverify_ok=-1084251808, 
ctx=0xafe2f6e4) at /home/redmine/php5/php-
5.2.9/ext/openssl/openssl.c:3759
#7  0x08d88788 in ?? ()
#8  0xbf5fa12c in ?? ()
#9  0xb5a74b20 in ?? ()
#10 0xb5b21ddc in ?? ()
#11 0xafe2f6a4 in ?? ()
#12 0xb5b09044 in ?? ()
#13 0xafe2f6e4 in ?? ()
#14 0x08cd11f0 in ?? ()
#15 0x00000010 in ?? ()
#16 0x00000009 in ?? ()
#17 0xafe2f6cc in ?? ()
#18 0xb5b21ddc in ?? ()
#19 0xb5a74b40 in ?? ()
#20 0xbf5fa178 in ?? ()


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

Reply via email to