Bug #67959 [NEW]: Segfault when calling phpversion('spl');
| From: | arjen at react dot com | Date: | Thu, 04 Sep 2014 07:48:14 +0000 |
| Subject: | Bug #67959 [NEW]: Segfault when calling phpversion('spl'); | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-187409@lists.php.net to get a copy of this message | ||
From: arjen at react dot com
Operating system:
PHP version: master-Git-2014-09-04 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Segfault when calling phpversion('spl');
Description:
------------
Crash when calling phpversion('spl') or any other module.
Test script:
---------------
--TEST--
phpversion() module version test
--CREDITS--
Arjen Schol arjen@react.com
--FILE--
<?php
var_dump(phpversion('spl'));
?>
--DONE--
--EXPECT--
string(3) "0.2"
Actual result:
--------------
#0 0x00007ffff36e3d0a in strlen () from /usr/lib/libc.so.6
#1 0x00000000007c70dc in zend_get_module_version
(module_name=0x7fff00000000 <error: Cannot access memory at address
0x7fff00000000>) at /home/arjen/phpng/php-src/Zend/zend_API.c:3611
#2 0x00000000006f706a in zif_phpversion (param_count=<optimized out>,
return_value=0x7ffff0c18860) at
/home/arjen/phpng/php-src/ext/standard/info.c:1200
#3 0x0000000000862cf2 in ZEND_DO_FCALL_SPEC_HANDLER
(execute_data=0x7ffff0c185f0) at
/home/arjen/phpng/php-src/Zend/zend_vm_execute.h:593
#4 0x00000000007ee8e0 in execute_ex (execute_data=0x7ffff0c185f0) at
/home/arjen/phpng/php-src/Zend/zend_vm_execute.h:352
#5 0x00000000007ab28d in zend_call_function
(fci=fci@entry=0x7fffffffa940, fci_cache=fci_cache@entry=0x7fffffffa910)
at /home/arjen/phpng/php-src/Zend/zend_execute_API.c:850
#6 0x00000000007d7af7 in zend_call_method (object=object@entry=0x0,
obj_ce=<optimized out>, obj_ce@entry=0x7ffff0c040e8,
fn_proxy=fn_proxy@entry=0x7ffff0c04210,
function_name=function_name@entry=0xcf4bf5 "__callstatic",
function_name_len=function_name_len@entry=12,
retval_ptr=retval_ptr@entry=0x7fffffffaa10, param_count=2,
arg1=0x7fffffffa9f0,
arg2=0x7fffffffaa00) at
/home/arjen/phpng/php-src/Zend/zend_interfaces.c:101
#7 0x00000000007e9a13 in zend_std_callstatic_user_call
(param_count=<optimized out>, return_value=0x7ffff0c14570) at
/home/arjen/phpng/php-src/Zend/zend_object_handlers.c:1159
#8 0x0000000000862cf2 in ZEND_DO_FCALL_SPEC_HANDLER
(execute_data=0x7ffff0c140e0) at
/home/arjen/phpng/php-src/Zend/zend_vm_execute.h:593
#9 0x00000000007ee8e0 in execute_ex (execute_data=0x7ffff0c140e0) at
/home/arjen/phpng/php-src/Zend/zend_vm_execute.h:352
#10 0x00000000007bd1a2 in zend_execute_scripts (type=0, type@entry=8,
retval=0x18, retval@entry=0x0, file_count=-5457978, file_count@entry=3)
at /home/arjen/phpng/php-src/Zend/zend.c:1317
#11 0x000000000075b071 in php_execute_script
(primary_file=0x7fffffffcf60) at
/home/arjen/phpng/php-src/main/main.c:2560
#12 0x0000000000866482 in do_cli (argc=0, argv=0x18) at
/home/arjen/phpng/php-src/sapi/cli/php_cli.c:978
#13 0x00000000004393f7 in main (argc=0, argv=0x18) at
/home/arjen/phpng/php-src/sapi/cli/php_cli.c:1356
--
Edit bug report at https://bugs.php.net/bug.php?id=67959&edit=1
--