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] SEGFAULT with Phalcon 1.3.1 and Xdebug #2239

Closed
vladimmi opened this issue Mar 26, 2014 · 7 comments
Closed

[BUG] SEGFAULT with Phalcon 1.3.1 and Xdebug #2239

vladimmi opened this issue Mar 26, 2014 · 7 comments
Labels
bug A bug report status: medium Medium

Comments

@vladimmi
Copy link

Have a SEGFAULT with a Xdebug and Phalcon 1.3 after release (including just compiled 1.3.1) - previous versions seems to haven't this problem.

Some collected info:

  • Arch Linux x64 with 3.13.7 kernel
  • Apache 2.4.9
  • PHP 5.5.10 NTS
  • Zend Engine 2.5.0
  • Zend OPcache 7.0.3
  • Xdebug 2.2.4
  • Phalcon 1.3.1 compiled from master

Tried to collect some information from coredump, bt full - https://gist.github.com/vladimmi/9787642

Looks like, SEGFAULT goes from this part of code:

//$di = new Phalcon\DI\FactoryDefault();
$viewEngines = array(
    ".volt" => function($view, $di) {
        $volt = new \Phalcon\Mvc\View\Engine\Volt($view, $di);
        $volt->setOptions(array(
            'compiledPath' => PATH_APP_CACHE . 'views/',
            'compiledSeparator' => '_',
            'stat' => false,
            'compileAlways' => true
        ));

        //register functions...
        //register filters...

        return $volt;
    }
);

//Volt
$di->set('view', function() use($viewEngines) {
    $view = new \Phalcon\Mvc\View();
    $view->setViewsDir(PATH_APP_VIEWS);
    $view->registerEngines($viewEngines);
    return $view;
});

...just after "return $volt;". At least, step-by-step debug brakes at this point.

If any additional info needed - let me know, I'll try to gather it.


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

@ovr
Copy link
Contributor

ovr commented Mar 27, 2014

I think this bug caused in xdebug
can you build package with

phpize && ./configure CFLAGS="-O2 -g" && make clean && make -B && sudo make install && service php5-fpm restart

and php recompile with +debug option after it and i think the best soulition create bug in xdebug project with full log ^_^

this project can help you to easy compile the php env with debug option
https://github.com/CHH/php-build

@vladimmi
Copy link
Author

Looks like Arch makepkg configuration already has "-g" for "debug" option. I've manually recompiled packages with "debug" option before making coredumps, so, as I understand, PHP, Xdebug and Phalcon are already built with this flags.

Any more info need here or I can start searching Xdebug bug tracker to post it there? :) And what full log do you mean?

@xboston
Copy link
Contributor

xboston commented Mar 27, 2014

Вы можете так же обсудить проблему на русском: http://vk.com/topic-45934290_29610493

@vladimmi
Copy link
Author

http://bugs.xdebug.org/view.php?id=1044 - posted at Xdebug tracker too.

@phalcon
Copy link
Collaborator

phalcon commented Sep 2, 2014

Added a pull request on xdebug to fix the problem: xdebug/xdebug#120

@vladimmi
Copy link
Author

PR is not merged for a 15 days without any activity - maybe you have to collaborate with xdebug developers in some way?

@phalcon
Copy link
Collaborator

phalcon commented Nov 17, 2014

Fixed in Xdebug 2.2.6

@phalcon phalcon closed this as completed Nov 17, 2014
@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

4 participants