php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52841 php crash on phpinfo(); using php_enchant
Submitted: 2010-09-14 18:35 UTC Modified: 2010-11-30 12:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: raulsalitrero at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.3SVN-2010-09-14 (SVN) OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: raulsalitrero at gmail dot com
New email:
PHP Version: OS:

 

 [2010-09-14 18:35 UTC] raulsalitrero at gmail dot com
Description:
------------
php svn crashes when calling phpinfo() and having php_enchant loaded.

apparently an uninitialñized pointer is passed around while invoking php_info_print_table_start();


 the problem occurs only using php_enchant, any other extension, i havent seen this crash on any other extension, in fact im using 
php.ini-production modified only to load php_enchant and no other extension.

i am using the lates sources from php 5.3 branch in svn.
this bug started to happen recently, code from about one or two weeks ago
doesn't crash.


the following stack trace was obtained using vc2008

	


Test script:
---------------
<?php
    phpinfo();
?>


Expected result:
----------------
phpinfo page shown.

Actual result:
--------------
php5ts.dll!_erealloc(void * ptr=0x00000000, unsigned int size=79, int allow_failure=0)  Línea 2359 + 0x4 bytes	C
 	php5ts.dll!xbuf_format_converter(smart_str * xbuf=0x037cf93c, const char * fmt=0x00000000, char * ap=0x00000000)  Línea 234 + 0x3f bytes	C
 	php5ts.dll!vspprintf(char * * pbuf=0x037cf968, unsigned int max_len=0, const char * format=0x022c6fe8, char * ap=0x037cf974)  Línea 799	C
 	php5ts.dll!php_printf(const char * format=0x022c6fe8, ...)  Línea 626	C
 	php5ts.dll!php_info_print_table_start()  Línea 1040 + 0xa bytes	C
 	php_enchant.dll!zm_info_enchant(_zend_module_entry * zend_module=0x0266de20, void * * * tsrm_ls=0x025433f0)  Línea 323	C
 	php5ts.dll!php_info_print_module(_zend_module_entry * zend_module=0x0266de20, void * * * tsrm_ls=0x025433f0)  Línea 103 + 0x8 bytes	C
 	php5ts.dll!_display_module_info_func(_zend_module_entry * module=0x0266de20, void * * * tsrm_ls=0x025433f0)  Línea 123 + 0xb bytes	C
 	php5ts.dll!zend_hash_apply(_hashtable * ht=0x037cfa38, int (void *, void * * *)* apply_func=0x020b5fc0, void * * * tsrm_ls=0x025433f0)  Línea 676 + 0x9 bytes	C
 	php5ts.dll!php_print_info(int flag=-1, void * * * tsrm_ls=0x025433f0)  Línea 939 + 0x10 bytes	C
 	php5ts.dll!zif_phpinfo(int ht=0, _zval_struct * return_value=0x0389dfc8, _zval_struct * * return_value_ptr=0x00000000, _zval_struct * this_ptr=0x00000000, int return_value_used=0, void * * * tsrm_ls=0x025433f0)  Línea 1254	C
 	php5ts.dll!zend_do_fcall_common_helper_SPEC(_zend_execute_data * execute_data=0x038d0080, void * * * tsrm_ls=0x02543300)  Línea 316 + 0x41 bytes	C
 	php5ts.dll!ZEND_DO_FCALL_SPEC_CONST_HANDLER(_zend_execute_data * execute_data=0x00000000, void * * * tsrm_ls=0x00000000)  Línea 1606 + 0xe bytes	C
 	php5ts.dll!execute(_zend_op_array * op_array=0x0389db10, void * * * tsrm_ls=0x02543300)  Línea 107 + 0xa bytes	C
 	php5ts.dll!zend_execute_scripts(int type=8, void * * * tsrm_ls=0x025433f0, _zval_struct * * retval=0x00000000, int file_count=3, ...)  Línea 1195	C
 	php5ts.dll!php_execute_script(_zend_file_handle * primary_file=0x037cfe5c, void * * * tsrm_ls=0x025433f0)  Línea 2260 + 0x12 bytes	C
 	php5apache2_2.dll!php_handler(request_rec * r=0x025d34e8)  Línea 669 + 0xe bytes	C
 	libhttpd.dll!ap_run_handler(request_rec * r=0x025d34e8)  Línea 158 + 0x28 bytes	C
 	libhttpd.dll!ap_invoke_handler(request_rec * r=0x01596640)  Línea 376 + 0x6 bytes	C
 	libhttpd.dll!ap_process_request(request_rec * r=0x025d34e8)  Línea 286	C
 	libhttpd.dll!ap_process_http_connection(conn_rec * c=0x025ce488)  Línea 190 + 0x6 bytes	C
 	libhttpd.dll!ap_run_process_connection(conn_rec * c=0x025ce488)  Línea 43 + 0x28 bytes	C
 	libhttpd.dll!ap_process_connection(conn_rec * c=0x025ce488, void * csd=0x025c7460)  Línea 178 + 0x6 bytes	C
 	libhttpd.dll!worker_main(void * thread_num_val=0x025ce480)  Línea 778	C

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-14 18:37 UTC] raulsalitrero at gmail dot com
the exception i get is:
0xC0000005: Infracción de acceso al leer la ubicación 0x00030005.
(Read Access Infracion. Address:0x00030005)
 [2010-09-14 18:48 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-09-14 18:48 UTC] aharvey@php.net
Bugs for PECL packages should be reported on the PECL bug tracker. Please report it using the "report new bug" link at http://pecl.php.net/package/enchant.
 [2010-09-14 18:56 UTC] pajoye@php.net
-Status: Bogus +Status: Open
 [2010-09-14 18:56 UTC] pajoye@php.net
it is part of php....
 [2010-09-14 19:00 UTC] aharvey@php.net
It is too. Sorry about that. I'll file a doc bug to remind myself to change the manual, then, because the manual still lists it as a PECL extension.
 [2010-09-14 19:39 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-09-14 19:39 UTC] pajoye@php.net
Can you replace the libenchant.dll with libenchant_52841.zip, restart apache and try again please?
 [2010-09-14 21:11 UTC] raulsalitrero at gmail dot com
sorry. but.
where can i download libenchant_52841.zip?
 [2010-09-14 21:24 UTC] pajoye@php.net
Sorry :)

http://windows.php.net/downloads/qa/test/libenchant_52841.zip

Also please try using the CLI as well.
 [2010-09-14 21:31 UTC] raulsalitrero at gmail dot com
yes, its working now with that version of enchant.
both CLI and WEB...

what caused the problem?
 [2010-09-14 22:44 UTC] pajoye@php.net
It was attempting to load DLLs that were not enchant backends.
 [2010-09-15 00:28 UTC] pajoye@php.net
-Status: Feedback +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2010-11-27 13:25 UTC] pajoye@php.net
-Status: Assigned +Status: Feedback
 [2010-11-27 13:25 UTC] pajoye@php.net
Please try using 5.3.4RC1
 [2010-11-29 22:47 UTC] raulsalitrero at gmail dot com
i've just tried it with 5.3.4 Rc1 and also by building php-svn,
putting the included libenchant.dll in 
my deps/bin folder; its working without any noticeable problems,
i think the sources and binaries of that libenchant.dll
should be updated in http://pecl2.php.net/downloads/php-windows-builds/source/
and in http://pecl2.php.net/downloads/php-windows-builds/php-libs/VCX/x(86|64)/
thanks a lot.
 [2010-11-29 22:57 UTC] pajoye@php.net
-Status: Feedback +Status: Closed
 [2010-11-30 12:25 UTC] pajoye@php.net
Devs file updated as well. Thanks for your report and feedback!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 21:01:32 2024 UTC