We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Segfault in phalcon.so

Hi,

I'm working in PHPEd and have DBG extension enabled in php.ini.

When in debugging mode, I'm getting the following error string in /var/log/syslog:

php kernel: [ 187.433356] php-fpm[1822]: segfault at 0 ip 00007f29d46a7c40 sp 00007fffdaac4c50 error 4 in phalcon.so[7f29d4660000+259000]

If I'm at a breakpoint #1 and continue execution in debugger, I usually arrive at the next breakpoint without a problem. However, first stepping over the next line of code and THEN continuing execution, crashes it for certain.

The behaviour is really erratic and the whole setup is rather hard to reproduce/describe. I'm working on a Phalcon\Mvc\User\Plugin class and I have two listeners attached to Dispatcher's "dispatch" event.

Anything else I can do to help diagnose the problem?

Thanks, Temuri



98.9k

Can you install again compiling from master? (using current changes into it)

Is it possible to generate a core dump?

You may want to try

ulimit -c unlimited
/etc/init.d/php-fpm restart

and then watch for core or core.XXX files



51.2k

Vladimir,

I changed the way my script works, upgraded to 1.2.1 and can no longer reproduce this behaviour.

I suppose, problem's solved. But I'll definitely keep an eye on it.

Thanks again, Temuri