skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search