How to install php debug symbols on Debian Buster?

Viewed 1093

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

  1. I need to add the debug repo deb http://deb.debian.org/debian-debug/ buster-debug main
  2. I need to install 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?

2 Answers

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.

Related