forked from dtrace4linux/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbug.sh
More file actions
executable file
·65 lines (62 loc) · 1.54 KB
/
bug.sh
File metadata and controls
executable file
·65 lines (62 loc) · 1.54 KB
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
60
61
62
63
64
65
#! /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: Crisp.Editor@gmail.com
==
== 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
== ======================
==
== Common problems:
== 1. Run tools/get-deps.pl or get-deps-fedora.sh or get-deps-arch.sh
== to ensure everything is needed or a build.
== 2. Currently (Nov 2012) issues on Xen guests (Amazon EC2). Working
== to fix.
(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 /etc/os-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