Debug hhvm segmentation errors

How to debug segmentation error when running php script using hhvm? When I run it, I get:

Core dumped: Segmentation fault
Segmentation fault

In stacktrace, I get that this is an error when I call a method on the same object.

Is there any code analyzer that can tell me the wrong php code or somehow get more detailed information about errors or stack trace?

When i use

    $r = mysql_query($sql, $link); //crashes
    $r = mysql_query($sql); //does not crash
+4
source share
1 answer

Assembly debugging

To better understand the crash, you need to build an HHVM for debugging.

This can be done by adding -DCMAKE_BUILD_TYPE=Debugto yours cmake.

More information can be found here: https://github.com/facebook/hhvm/wiki/Reporting-Crashes


Stack trace

stacktrace.[number].log /tmp.

, , : https://github.com/facebook/hhvm/issues


seg, .

hhvm.hdf.

+1

Source: https://habr.com/ru/post/1534391/


All Articles