|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-03-01 22:09 UTC] mberchtold at gmail dot com
Description: ------------ The crash happens in a call to the mail function stack trace: > php7.dll!_emalloc(unsigned __int64 size) Line 2200 C php7.dll!zend_objects_new(_zend_class_entry * ce) Line 142 C php7.dll!_object_and_properties_init(_zval_struct * arg, _zend_class_entry * class_type, _zend_array * properties) Line 1106 C php7.dll!ZEND_NEW_SPEC_CONST_HANDLER(_zend_execute_data * execute_data) Line 2885 C php7.dll!execute_ex(_zend_execute_data * execute_data) Line 352 C php7.dll!zend_call_function(_zend_fcall_info * fci, _zend_fcall_info_cache * fci_cache) Line 848 C php7.dll!zif_call_user_func(_zend_execute_data * execute_data, _zval_struct * return_value) Line 4725 C php7.dll!ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER(_zend_execute_data * execute_data) Line 649 C php7.dll!execute_ex(_zend_execute_data * execute_data) Line 352 C php7.dll!zend_call_function(_zend_fcall_info * fci, _zend_fcall_info_cache * fci_cache) Line 848 C php7.dll!zif_call_user_func(_zend_execute_data * execute_data, _zval_struct * return_value) Line 4725 C php7.dll!ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER(_zend_execute_data * execute_data) Line 649 C php7.dll!execute_ex(_zend_execute_data * execute_data) Line 352 C php7.dll!zend_call_function(_zend_fcall_info * fci, _zend_fcall_info_cache * fci_cache) Line 848 C php7.dll!zif_call_user_func(_zend_execute_data * execute_data, _zval_struct * return_value) Line 4725 C php7.dll!ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER(_zend_execute_data * execute_data) Line 649 C php7.dll!execute_ex(_zend_execute_data * execute_data) Line 352 C php7.dll!zend_call_function(_zend_fcall_info * fci, _zend_fcall_info_cache * fci_cache) Line 848 C php7.dll!zif_call_user_func(_zend_execute_data * execute_data, _zval_struct * return_value) Line 4725 C php7.dll!ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER(_zend_execute_data * execute_data) Line 649 C php7.dll!execute_ex(_zend_execute_data * execute_data) Line 352 C php7.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Line 381 C php7.dll!zend_execute_scripts(int type, _zval_struct * retval, int file_count, ...) Line 1283 C php7.dll!php_execute_script(_zend_file_handle * primary_file) Line 2527 C php-cgi.exe!main(int argc, char * * argv) Line 2488 C php-cgi.exe!__tmainCRTStartup() Line 536 C kernel32.dll!BaseThreadInitThunk() Unknown ntdll.dll!RtlUserThreadStart() Unknown The full crash dump is available on request by email. Snapshot: php-master-nts-windows-vc11-x64-r9dac923 The access violation also happens with the php x86 snapshot as well but the debug symbols are not matching. Test script: --------------- unable to provide a test script. But crash is reproducible. Crash happens in a call to mail Expected result: ---------------- no access violation? Actual result: -------------- access violation PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 16:00:01 2025 UTC |
mail is configured and mails are sent despite the crash. In other parts of the code a call to mail does not trigger the crash. I already performed the following tests: - Wrote arguments of mail to log and tried to recreate the crash on the same system/php configuration. I wasn't able reproduce the crash with the same mail arguments. - Called mail like this: mail('valid@host.com', '', '') this still caused the crash The email is sent Conclusion: mail arguments seem to be irrelevant. - On the production system, I have commented out the following in php.ini ; For Win32 only. ;SMTP = localhost ;smtp_port = 25 This triggers the crash for other calls to mail as well. - Disabled opcache by commenting out the zend_extension: ;zend_extension = php_opcache.dll -> No crash