/
bug.sh
executable file
·59 lines (56 loc) · 1.3 KB
/
bug.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /bin/sh
if [ "$BUG_RUNNING" = 1 ]; then
exit 1
fi
if [ "$BUG_NOBUG" != "" -o -f .dtrace.nobug ]; then
exit 1
fi
export BUG_RUNNING=1
file=/tmp/dtrace-bug.$$.txt
cat <<EOF | tee $file
======================
== Sorry - but dtrace failed to compile on your system.
== Please forward the following file to:
==
== file: $file
== mail: dtrace@crisp.demon.co.uk
==
== and the information provided will be used to help
== enhance the tool and fix the underlying issue.
==
== Latest news and blog updates on dtrace available here. Please
== check for latest problem reports.
==
== http://crtags.blogspot.com
== http://www.crisp.demon.co.uk/blog/
==
== Latest downloads available from here:
==
== ftp://crisp.dyndns-server.com/pub/release/website/dtrace
== ======================
(generating a make run - this may take a few moments...)
EOF
(
cat .release
pwd
date
echo "\$ uname -a:" ; uname -a
for f in /etc/lsb-release /etc/redhat-release
do
if [ -f $f ]; then
echo "\$ cat $f" ; cat $f
fi
done
echo "\$ cat /etc/motd" ; cat /etc/motd
echo "\$ cat build/port.h" ; cat build/port.h
echo "\$ gcc -v" ; gcc -v
echo "\$ ld -v" ; ld -v
flex --version
bison --version
cat /proc/cpuinfo | grep processor
grep model /proc/cpuinfo | sort -u
echo =========================
make all
) >$file 2>&1
touch .dtrace.nobug
exit 1