From:             dmitry dot revenko at businessmedia dot ru
Operating system: Linux Fedora Core 6  2.6.22
PHP version:      5.2SVN-2009-10-08 (snap)
PHP Bug Type:     Reproducible crash
Bug description:  Segfault (11) on PHP shutdown

Description:
------------
This error occures both in CLI and Apache PHP module. If I use SoapClient
with client certificate I get segmentation fault. Soap call(s) and all the
script logic behaves as expected, but during PHP shutdown there's
segmentation fault occured.
I reproduced this on two workstations with the same Fedora Core 6 and
tried PHP versions 5.2.6 - 5.2.11 and 5.2.current.

Reproduce code:
---------------
<?php
// Program requires client certificate (I can send the one)
try
{
        $soap = new SoapClient('https://host/soap/?wsdl', array(
                'exceptions' => 1,
                'wsdl_cache' => WSDL_CACHE_NONE,
                'local_cert' => dirname(__FILE__) . '/client-cert.pem',
                'passphrase' => 'piglet'
        ));
        
        $res = $soap->userLogin(array('login' => 'bugonek', 'password' =>
md5('000'), 'save_session' => false));
        if ($res !== false && $res->errorCode == 0)
                echo "SID: {$res->sid}\n";
        else
                echo "Login error: {$res->errorMessage}\n";
}
catch (Exception $e)
{
        echo 'Exception [' . $e->getCode() . '] ' . $e->getMessage() . "\n";
}
?>

Expected result:
----------------
SID: 3092b3e454a6f4c9bb8ccab01adce34c (this value is generated at runtime
and not exactly should be the one)

Actual result:
--------------
SID: 3092b3e454a6f4c9bb8ccab01adce34c
Segmentation fault (core dumped)

gdb backtrace
-------------------------------------
Core was generated by `/usr/local/bin/php index-simple.php'.
Program terminated with signal 11, Segmentation fault.
#0  0x08412c9d in php_stream_context_del_link (context=0x88a06bc,
stream=0x88a1078) at
/usr/src/Software/php5.2-200910081030/main/streams/streams.c:2044
2044           
for(zend_hash_internal_pointer_reset(Z_ARRVAL_P(context->links));

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

Reply via email to