Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
56
rated 0 times [  56] [ 0]  / answers: 1 / hits: 47528  / 3 Years ago, tue, june 15, 2021, 2:42:00

php-fpm crashed on us and dumped a file in



/var/crash/_usr_sbin_php5-fpm.1002.crash


There is some info in that file but what I'm after is in the section called CoreDump in a base64 encoded format. How can I read what was running at the time of the crash?


More From » apport

 Answers
5

In case if you don't want to install a bunch of sub-dependencies for apport-retrace tool, you can unpack apport format into separate files and to use only CoreDump dump with gdb as usual.



  1. apport-unpack systemGeneratedCrashReportPath.crash yourNewUnpackDirectoryHere



  2. cd yourNewUnpackDirectoryHere/



  3. gdb `cat ExecutablePath` CoreDump (pay attention to backticks here!)



  4. bt (output actual back-trace)


    Note: apport-unpack will sometimes crash itself on unpack operation (apport seems broken all around... xD), but your CoreDump and other files will be there, just ignore it and delete all .crash files in /var/crash after you move them elsewhere in order to allow system to output new crash reports from same apps there.




[#26504] Tuesday, June 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pardsea

Total Points: 290
Total Questions: 115
Total Answers: 98

Location: Svalbard and Jan Mayen
Member since Sun, Sep 25, 2022
2 Years ago
;