systeminfo: log system package versions (#11946)

This commit is contained in:
Vaxry 2025-10-06 23:20:21 +02:00 committed by GitHub
parent 73f06434a4
commit 02cda6bebf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 60 additions and 5 deletions

View file

@ -165,6 +165,10 @@ void NCrashReporter::createAndSaveCrash(int sig) {
finalCrashReport += "\n\nos-release:\n";
finalCrashReport.writeCmdOutput("cat /etc/os-release | sed 's/^/\t/'");
finalCrashReport += '\n';
finalCrashReport += getBuiltSystemLibraryNames();
finalCrashReport += '\n';
// dladdr1()/backtrace_symbols()/this entire section allocates, and hence is NOT async-signal-safe.
// Make sure that we save the current known crash report information,
// so that if we are caught in a deadlock during a call to malloc(),