Does anyone know any software that I can install on my Ubuntu server to help me debug a segmentation fault? And also how to use it.
you could try to use gdb. Afaik I know it is pre-installed on Ubuntu, but in the case it is not a simple apt-get install gdb should do. To use it, make sure to compile the program you want to debug with debug (no optimisations). Then just enter the following commands in order: Code: gdb // Note that at this point you will have the gdb "console" file /absolute/path/to/the/executable/with/debug/symbols run -any --args --that might -be needed gdb should detect the segfault and give you a backtrace with function names and pointers
gdb supports any C executable. php is a c executable. Of course you are not going to get a direct php line and function where the segfault happened, but having the backtrace of the php functions should give you insight.
Code: (gdb) file /home/servers/faction/1/plugins/PlexFacCore/src/core/koth/task/RunGameTask.php "/home/servers/faction/1/plugins/PlexFacCore/src/core/koth/task/RunGameTask.php": not in executable format: File format not recognized
php files are not executables. You need to run the php executable through gdb. In your case: Code: gdb // Note that at this point you will have the gdb "console" file /home/servers/faction/1/bin/php7/bin/php run -r /home/servers/faction/1/src/pocketmine/PocketMine.php //This is assuming you have a src, if you have a PocketMine.phar please let me know.