Bug #69154 [NEW]: Access violation in php7.dll!_emalloc

From: Date: Sun, 01 Mar 2015 22:09:26 +0000
Subject: Bug #69154 [NEW]: Access violation in php7.dll!_emalloc
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191029@lists.php.net to get a copy of this message
From:             mberchtold at gmail dot com
Operating system: Windows Server 2012 R2
PHP version:      master-Git-2015-03-01 (snap)
Package:          *General Issues
Bug Type:         Bug
Bug description:Access violation in php7.dll!_emalloc

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=69154&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69154&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69154&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69154&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69154&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69154&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69154&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69154&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69154&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69154&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69154&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69154&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69154&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69154&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69154&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69154&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69154&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69154&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69154&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69154&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69154&r=mysqlcfg



Thread (11 messages)

« previous php.bugs (#191029) next »