I am trying to obatin a meaningful backtrace for some segmentation faults occuring on php-fpm in Debian Buster. Reading Debian's guide , I understand that
deb http://deb.debian.org/debian-debug/ buster-debug main
debian-goodies
so that I can search my debug symbols package with find-dbgsym-packages
But it seems that the php debug symbols are missing from the output of find-dbgsym-packages /usr/bin/php
, these are the packages listed:
libargon2-1-dbgsym
libgcc1-dbg
libicu63-dbgsym
liblzma5-dbgsym
libpcre2-dbg
libsodium23-dbgsym
libssl1.1-dbgsym
libstdc++6-8-dbg
libxml2-dbg
php7.3-cli-dbgsym
zlib1g-dbg
I was excpecting to find a package like php7.3-dbgsym
... what I am missing?
I was excpecting to find a package like php7.3-dbgsym... what I am missing?
You are missing that the debug symbols you need are included in php7.3-cli-dbgsym
.
Install all of the packages find-dbgsym-packages
finds and analyze your core
again.
It seems that you can add an automatic downloader now:
https://wiki.debian.org/HowToGetABacktrace#Automatically_loading_debugging_symbol_from_the_Internet
Just type this in your console:
export DEBUGINFOD_URLS="https://debuginfod.debian.net"
Then run your PHP script:
$ gdb -args /usr/bin/php my_faulty_script.php
(gdb) run
...
(wait for the crash)
...
(gdb) bt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.