Univention Bugzilla – Attachment 7782 Details for
Bug 37314
Improve error reporting: collect useful crash SIGSEGV core file information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
crash-report v3
37314_crash-report (text/plain), 1.10 KB, created by
Philipp Hahn
on 2016-07-01 12:18:41 CEST
(
hide
)
Description:
crash-report v3
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2016-07-01 12:18:41 CEST
Size:
1.10 KB
patch
obsolete
>#!/bin/sh ># ># Dump core file and collect more information about crashed process ># <http://man7.org/linux/man-pages/man5/core.5.html> ># >BASE='/var/spool/univention-crash-report' > >if [ -z "${1:-}" ] >then > install -o 0 -g 0 -m 0700 -d "$BASE" > echo "|$(readlink -f "$0") %u %g %p %s %e" >/proc/sys/kernel/core_pattern > exit 0 >fi > >user="$1" >group="$2" >pid="$3" >signal="$4" >cmd="$5" > >exe=$(readlink -f "/proc/$pid/exe") > >time="$(date +%s)" >base="${BASE}/${user}_${group}-${signal}-${time}" >exec >"${base}.log" 2>&1 >set -x > >ps www -p "$pid" >"${base}.ps" >lsof -n -p "$pid" >"${base}.lsof" >cat >"${base}.core" >exec </dev/null > >if pkg=$(dpkg -S "$exe") >then > apt-cache depends --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-all-versions --recurse "${pkg%%:*}" | > grep '^[^ <]' | > sort -u >"${base}.dpkg-S" >elif ldd "$exe" >"${base}.ldd" >then > while read line > do > for arg in $line > do > [ -f "$arg" ] || continue > dpkg -S "$arg" > done > done <"${base}.ldd" >"${base}.dpkg-S" >fi >cut -d: -f1 <"${base}.dpkg-S" | sort -u | xargs dpkg-query -W >"${base}.dpkg-W" > ># vim:set backupcopy=auto:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 37314
:
7769
|
7782
|
9578
|
9583