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

Phalcon 1.3.2 segfault #2351

Closed
viktoras25 opened this issue Apr 15, 2014 · 1 comment
Closed

Phalcon 1.3.2 segfault #2351

viktoras25 opened this issue Apr 15, 2014 · 1 comment

Comments

@viktoras25
Copy link
Contributor

<?php

$di = new Phalcon\DI\FactoryDefault();

class A extends Phalcon\Mvc\Model {
}

class B extends Phalcon\Mvc\Model {
    public function initialize() {
        $this->hasMany('id', 'A', 'a_id', array('alias' => 'a'));
    }
}

$b = new B();
$b->assign(array('a' => array(1, 2, 3)));

produces

Variable 0x7fff497fd388 is already observed#0  0x7fb87e7cd592 [/usr/lib64/php/modules/phalcon.so(phalcon_print_backtrace+0x22) [0x7fb87e7cd592]]
#1  0x7fb87e7df902 [/usr/lib64/php/modules/phalcon.so(+0x97902) [0x7fb87e7df902]]
#2  0x7fb87e7dfcfa [/usr/lib64/php/modules/phalcon.so(phalcon_memory_alloc+0x2a) [0x7fb87e7dfcfa]]
#3  0x7fb87e868761 [/usr/lib64/php/modules/phalcon.so(zim_Phalcon_Mvc_Model___set+0x581) [0x7fb87e868761]]
#4  0x5aa339 [php(dtrace_execute_internal+0x39) [0x5aa339]]
#5  0x7fb8858395d2 [/usr/lib64/php/modules/xdebug.so(xdebug_execute_internal+0x142) [0x7fb8858395d2]]
#6  0x5ad725 [php(zend_call_function+0xc85) [0x5ad725]]
#7  0x5d2517 [php(zend_call_method+0x1c7) [0x5d2517]]
#8  0x5e27a9 [php(zend_std_write_property+0x5f9) [0x5e27a9]]
#9  0x7fb87e7cf317 [/usr/lib64/php/modules/phalcon.so(phalcon_update_property_zval+0x1c7) [0x7fb87e7cf317]]
#10  0x7fb87e866fdd [/usr/lib64/php/modules/phalcon.so(zim_Phalcon_Mvc_Model_assign+0x12d) [0x7fb87e866fdd]]
#11  0x5aa339 [php(dtrace_execute_internal+0x39) [0x5aa339]]
#12  0x7fb8858395d2 [/usr/lib64/php/modules/xdebug.so(xdebug_execute_internal+0x142) [0x7fb8858395d2]]
#13  0x63c462 [php() [0x63c462]]
#14  0x62df58 [php(execute_ex+0x38) [0x62df58]]
#15  0x5aa46e [php(dtrace_execute_ex+0x8e) [0x5aa46e]]
#16  0x7fb885839bab [/usr/lib64/php/modules/xdebug.so(xdebug_execute_ex+0x32b) [0x7fb885839bab]]
#17  0x5b92dc [php(zend_execute_scripts+0x18c) [0x5b92dc]]
#18  0x559a60 [php(php_execute_script+0x1f0) [0x559a60]]
#19  0x66a9e3 [php() [0x66a9e3]]
#20  0x66b1e8 [php() [0x66b1e8]]
#21  0x7fb886fa7d1d [/lib64/libc.so.6(__libc_start_main+0xfd) [0x7fb886fa7d1d]]
#22  0x4212c9 [php() [0x4212c9]]

Phalcon 1.3.2 compiled from /ext
PHP 5.5.11

phalcon pushed a commit that referenced this issue Jun 14, 2014
Fix #2351 \Phalcon\Mvc\Model::__set
@phalcon
Copy link
Collaborator

phalcon commented Sep 2, 2014

Fixed in 1.3.3

@phalcon phalcon closed this as completed Sep 2, 2014
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

2 participants