ID:               36906
 Comment by:       keochb at hotmail dot com
 Reported By:      sqchen at citiz dot net
 Status:           Feedback
 Bug Type:         Streams related
 Operating System: *nix
 PHP Version:      5.2-CVS
 Assigned To:      pollita
 New Comment:

In php5.1.2, the segmentation fault appears after the function of
'stream_context_set_option';
But in php5.2 the segmentation fault appears in the function of
'stream_context_set_option'.

Why & How?
(God smiles!)


Previous Comments:
------------------------------------------------------------------------

[2006-05-11 11:46:13] keochb at hotmail dot com

From:  http://snaps.php.net/php5.2-latest.tar.gz


(gdb) backtrace
#0  0x08203f63 in php_stream_context_set_option (context=0x2,
    wrappername=0x8456964 "path", optionname=0x8455a0c "pathname",
    optionvalue=0x78f)
    at
/home/spring/p52/php5.2-200605100830/main/streams/streams.c:1936
#1  0x081deb50 in zif_stream_context_set_option (ht=4,
return_value=0x8455acc,
    return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at
/home/spring/p52/php5.2-200605100830/ext/standard/streamsfuncs.c:984
#2  0x08255d4e in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfcc3190)
    at zend_vm_execute.h:200
#3  0x08255598 in execute (op_array=0x845126c) at zend_vm_execute.h:92
#4  0x082358b0 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /home/spring/p52/php5.2-200605100830/Zend/zend.c:1102
#5  0x081f0e77 in php_execute_script (primary_file=0xbfcc56c0)
    at /home/spring/p52/php5.2-200605100830/main/main.c:1732
#6  0x082d8edf in main (argc=2, argv=0xbfcc5754)
    at /home/spring/p52/php5.2-200605100830/sapi/cli/php_cli.c:1092

------------------------------------------------------------------------

[2006-05-11 11:41:50] keochb at hotmail dot com

sqchen at citiz dot net 
and I are in the same team.

------------------------------------------------------------------------

[2006-05-11 11:38:49] keochb at hotmail dot com

(gdb) backtrace
#0  0x0823cdfb in php_stream_context_del_link (context=0x847f3f4,
    stream=0x846d304) at
/home/spring/php-5.1.2/main/streams/streams.c:1988
#1  0x0823d127 in _php_stream_free (stream=0x846d304,
close_options=11)
    at /home/spring/php-5.1.2/main/streams/streams.c:326
#2  0x0823d81c in stream_resource_regular_dtor (rsrc=0x5a5a5a5a)
    at /home/spring/php-5.1.2/main/streams/streams.c:1373
#3  0x0827a3bf in list_entry_destructor (ptr=0x847f104)
    at /home/spring/php-5.1.2/Zend/zend_list.c:184
#4  0x08278d88 in zend_hash_apply_deleter (ht=0x83c7800, p=0x847f0ac)
    at /home/spring/php-5.1.2/Zend/zend_hash.c:574
#5  0x08278e57 in zend_hash_graceful_reverse_destroy (ht=0x83c7800)
    at /home/spring/php-5.1.2/Zend/zend_hash.c:640
#6  0x0826d46e in zend_deactivate () at
/home/spring/php-5.1.2/Zend/zend.c:860
#7  0x08228455 in php_request_shutdown (dummy=0x0)
    at /home/spring/php-5.1.2/main/main.c:1284
#8  0x082eea4b in main (argc=2, argv=0xbf9a6ed4)
    at /home/spring/php-5.1.2/sapi/cli/php_cli.c:1230

------------------------------------------------------------------------

[2006-05-11 09:17:06] [EMAIL PROTECTED]

I can't reproduce it in current CVS.

Mind posting backtrace?

------------------------------------------------------------------------

[2006-05-10 09:14:16] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/36906

-- 
Edit this bug report at http://bugs.php.net/?id=36906&edit=1

Reply via email to