Yesterday, I found that PHP has crashed. The result is that "Segmentationfault" appears when php-v or php-m is used in the terminal ". Similar prompts are also displayed in FPM logs. Bash-3.2 $ gdbusrlocalbinphpGNUgdb6.3.50-20050815 (Appleversiongdb-1700.2) (Th
Yesterday, I found that PHP has crashed. This means that "Segmentation fault" appears when php-v or php-m is used in the terminal ". Similar prompts are also displayed in FPM logs. Bash-3.2 $ gdb/usr/local/bin/php GNU gdb 6.3.50-20050815 (Apple version gdb-1700.2) (Th
Yesterday, I found that PHP has crashed. This means that "Segmentation fault" appears when php-v or php-m is used in the terminal ". Similar prompts are also displayed in FPM logs.
The following content appears after you use gdb to trace:
Bash-3.2 $ gdb/usr/local/bin/php
GNU gdb 6.3.50-20050815 (Apple version gdb-1700.2) (Thu May 19 20:52:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
Welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin "... Reading symbols for shared libraries ....
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/blocksort. o "-no debug information available for" blocksort. c ".
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/huffman. o "-no debug information available for" huffman. c ".
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/crctable. o "-no debug information available for" crctable. c ".
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/randtable. o "-no debug information available for" randtable. c ".
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/compress. o "-no debug information available for" compress. c ".
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/decompress. o "-no debug information available for" decompress. c ".
Warning: cocould not find object file "/Volumes/work/macports/var/macports/build/_ Volumes/bzip2/work/bzip2-1.0.6/bzlib. o "-no debug information available for" bzlib. c ".
...... Done
(Gdb) run-v
Starting program:/usr/local/bin/php-v
Reading symbols for shared libraries ++ ......................... Done
Reading symbols for shared libraries ............... Done
Reading symbols for shared libraries .... Done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries... done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries ...... Done
Reading symbols for shared libraries... done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries... done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries. done
Reading symbols for shared libraries... done
Program received signal EXC_BAD_ACCESS, cocould not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0 ×0000000000000000
0x0000000102f5949e in lpmapd ()
No solution was found after GOOGLE. Also tried to restart the machine, upgrade the version, and other means. It really hurts. Finally accidentally re-installed the module, found that it is caused by php5-oracle. It is normal to delete it. Ah, it's strange that I forgot to run one side after installing the module last time and shut down. Later, I forgot. Therefore, no matter what the situation is, the update is immediately tested and remains unchanged.
Original article address: "Segmentation fault" appears in php-v. Thanks for sharing it with the original author.