Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [CRASH] Segmentation Fault in Phalcon\DI\Injectable::__get() #1983

Closed
ghost opened this issue Feb 6, 2014 · 1 comment
Closed

[BUG] [CRASH] Segmentation Fault in Phalcon\DI\Injectable::__get() #1983

ghost opened this issue Feb 6, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 6, 2014

Test code:

<?php

class Test extends \Phalcon\DI\Injectable
{
        public function test()
        {
                $a = $this->__get(1);
        }
}

new \Phalcon\DI;
$x = new Test();
$x->test();

Backtrace:

Program terminated with signal 11, Segmentation fault.
#0  __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
31      ../sysdeps/x86_64/multiarch/../strlen.S: Немає такого файла або каталогу.
(gdb) bt
#0  __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#1  0x0000000000974776 in xbuf_format_converter (xbuf=0x7fff684b2740, fmt=0x7f0f3af0b7b6 "s", ap=0x7fff684b2898) at /tmp/php-build/source/5.5.4/main/spprintf.c:576
#2  0x00000000009756fe in vspprintf (pbuf=0x7fff684b27d8, max_len=0, format=0x7f0f3af0b798 "Access to undefined property %s", ap=0x7fff684b2898) at /tmp/php-build/source/5.5.4/main/spprintf.c:799
#3  0x00000000009695d1 in php_verror (docref=0x0, params=0xf8cfc0 "", type=2, format=0x7f0f3af0b798 "Access to undefined property %s", args=0x7fff684b2898, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/main/main.c:716
#4  0x000000000096a1e4 in php_error_docref0 (docref=0x0, tsrm_ls=0x21feaa0, type=2, format=0x7f0f3af0b798 "Access to undefined property %s") at /tmp/php-build/source/5.5.4/main/main.c:882
#5  0x00007f0f3ae55ea3 in zim_Phalcon_DI_Injectable___get (ht=1, return_value=0x7f0f44e53970, return_value_ptr=0x7f0f44e17330, this_ptr=0x7f0f44e54728, return_value_used=1, tsrm_ls=0x21feaa0)
    at /home/vladimir/workspace/cphalcon/ext/di/injectable.c:201
#6  0x00007f0f3ac1e3e8 in phalcon_execute_internal (execute_data_ptr=0x7f0f44e17368, fci=0x0, return_value_used=1, tsrm_ls=0x21feaa0) at /home/vladimir/workspace/cphalcon/ext/phalcon.c:56
#7  0x0000000000a74f4f in zend_do_fcall_common_helper_SPEC (execute_data=0x7f0f44e17368, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/Zend/zend_vm_execute.h:552
#8  0x0000000000a759b2 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7f0f44e17368, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/Zend/zend_vm_execute.h:685
#9  0x0000000000a7424e in execute_ex (execute_data=0x7f0f44e17368, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/Zend/zend_vm_execute.h:363
#10 0x0000000000a74333 in zend_execute (op_array=0x7f0f44e53100, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/Zend/zend_vm_execute.h:388
#11 0x0000000000a2ec68 in zend_execute_scripts (type=8, tsrm_ls=0x21feaa0, retval=0x0, file_count=3) at /tmp/php-build/source/5.5.4/Zend/zend.c:1318
#12 0x000000000096f9ec in php_execute_script (primary_file=0x7fff684b50a0, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/main/main.c:2489
#13 0x0000000000aef369 in do_cli (argc=2, argv=0x21fe9c0, tsrm_ls=0x21feaa0) at /tmp/php-build/source/5.5.4/sapi/cli/php_cli.c:994
#14 0x0000000000af09a0 in main (argc=2, argv=0x21fe9c0) at /tmp/php-build/source/5.5.4/sapi/cli/php_cli.c:1378
@ghost
Copy link
Author

ghost commented Feb 6, 2014

The bug was introduced in 5537438

phalcon pushed a commit that referenced this issue Feb 7, 2014
@ghost ghost closed this as completed Feb 9, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant