Welcome to mirror list, hosted at ThFree Co, Russian Federation.

abrt.sh « test - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94aca2116507beb6b7e87fff0c6c364bd9418b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash -x

pid=$1
vpid=$2
sig=$3
comm=$4

exec &>> /tmp/zdtm-core.log

expr match "$comm" zombie00 && {
	cat > /dev/null
	exit 0
}

expr match "$comm" seccomp_filter && {
	cat > /dev/null
	exit 0
}

report="/tmp/zdtm-core-$pid-$comm"
exec &> ${report}.txt

ps axf
ps -p $pid

cat /proc/$pid/status
ls -l /proc/$pid/fd
cat /proc/$pid/maps
exec 33< /proc/$pid/exe
cat > $report.core

echo 'bt
i r
disassemble $rip-0x10,$rip + 0x10
' | gdb -c $report.core /proc/self/fd/33